Questions tagged [defragmentation]

The process of decreasing the amount of fragmented files on a computer's system hard drive.

76 questions
25
votes
4 answers

IP Fragmentation and Reassembly

I am currently going through my networking slides and was wondering if someone could help me with the concept of fragmentation and reassembly. I understand how it works, namely how datagrams are split into smaller chunks because network links have…
JimmyK
  • 4,801
  • 8
  • 35
  • 47
21
votes
5 answers

C++ Memory Management for Texture Streaming in Videogames

this is a "hard" question. I've found nothing interesting over the web. I'm developing a Memory Management module for my company. We develop games for next-gen consoles (Xbox 360, PS3 and PC... we consider PC a console!). We'll need in future, for…
ugasoft
  • 3,778
  • 7
  • 27
  • 23
17
votes
3 answers

Mysql OPTIMIZE TABLE for all fragmented tables

I'd like to OPTIMIZE all currently fragmented tables. These tables should have information_schema.DATA_FREE > 0. Is it possible to optimize all tables with this property in one command in SQL or will I have to write external code to do this?
Wienczny
  • 3,958
  • 4
  • 30
  • 35
14
votes
5 answers

Reconstructing data from PCAP sniff

I am trying to sniff HTTP data through libpcap and get all the http contents (header+payload) after processing the TCP payload. As per my discussion at Writing an http sniffer (or any other application level sniffer) , I am facing problems due to…
Ishi
  • 367
  • 2
  • 5
  • 8
10
votes
3 answers

Can I optimize a Mercurial clone?

My Mercurial clone has become incredibly slow, presumably due to on-disk fragmentation. Is there a way to optimize it? The obvious way it to make a new clone, then copy my MQ, saved bundles, hgrc, etc, to the new clone and delete the old one. But it…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
10
votes
2 answers

How to find out fragmented indexes and defragment them in PostgreSQL?

I've found how we can solve this problem in SQL Server here - but how can i do it in PostgreSQL?
Roman Martyshchuk
  • 195
  • 1
  • 2
  • 7
9
votes
5 answers

Defragmenting C++ Heap Allocator & STL

I'm looking to write a self defragmenting memory manager whereby a simple incrementing heap allocator is used in combination with a simple compacting defragmenter. The rough scheme would be to allocate blocks starting at the lowest memory address…
6
votes
5 answers

Logic in Disk Defragmantation & Disk Check

What is the logic behind disk defragmentation and Disk Check in Windows? Can I do it using C# coding?
Sauron
  • 16,668
  • 41
  • 122
  • 174
5
votes
3 answers

How to obtain DefragAnalysis using C#

I am currently developing an application in C# (.NET 4.0) that should have as a part of its functionality the ability to determine the percentage of fragmentation on a particular volume. All the other features have been tested and are working fine…
4
votes
0 answers

Windows Defrag trigger C# filewatcher delete event

We have an internal .NET application that mirrors file directories across a network. On the client-side, we use .NET file watcher class to monitor directories. On one of our 6 client servers, we have noticed that the integrated windows defragmenter…
Newey
  • 123
  • 2
  • 8
4
votes
2 answers

does Firebird defrag? If so, like a clustered index?

I've seen a few (literally, only a few) links and nothing in the documentation that talks about clustering with Firebird, that it can be done. Then, I shot for the moon on this question CLUSTER command for Firebird?, but answerer told me that…
user1382306
4
votes
1 answer

How can I avoid file fragmentation while writing hundreds of multi-megabyte files?

My question is similar to How to avoid hard disc fragmentation?, but I will be generating several hundred files per day that can range in size from 2 MB to 100+ MB (that questioner implied his files were smaller as he was more worried about…
MrPhilTX
  • 113
  • 2
  • 9
3
votes
1 answer

Can defragmentation be done on a Knuth heap?

I am considering is it possible to eliminate external fragmentation on a Knuth memory heap? Before trying to solve this problem, I am not sure whether we can move blocks on a heap. If we can move blocks then I believe solving external fragmentation…
uvdn7
  • 83
  • 4
3
votes
2 answers

Defragmentation with minimum changes

I need to design an algorithm that does a simple defragmentation, but with the "minimum amount of changes" feature. Let's say I have 3 containers with capacity of 10 and following items in them: Container 1: 2 3 3 Container 2: 4 4 Container 3: 1 5 1…
Marek Galinski
  • 435
  • 1
  • 5
  • 16
3
votes
2 answers

How can I find information about a file from logical cluster number in NTFS/FAT32?

I am trying to defragment a single file through Windows defragmentation API ( http://msdn.microsoft.com/en-us/library/aa363911(VS.85).aspx ) but if there is no free space block large enough for my file I would like to move other parts of files to…
Daniel Karling
  • 231
  • 3
  • 7
1
2 3 4 5