An unefficient usage of disk storage in memory or hard drive.
Questions tagged [fragmentation]
189 questions
5
votes
4 answers
How might one go about implementing a disk fragmenter?
I have a few ideas I would like to try out in the Disk Defragmentation Arena. I came to the conclusion that as a precursor to the implementation, it would be useful, to be able to put a disk into a state where it was fragmented. This seems to me…

EvilTeach
- 28,120
- 21
- 85
- 141
5
votes
2 answers
Where can I find IP fragmented Sample pcaps for WireShark?
Are there any sources where I can find different pcaps samples for IP fragmented data (WireShark compatible)?
user349026
5
votes
1 answer
Memory fragmentation @ boost::asio?
I'm pretty much stuck with a question I never got an answer for, a question which addresses an extremely important issue; memory fragmentation at boost::asio.
Found nothing at the documentation nor here at SO.
The async functions at boost::asio, for…

Poni
- 11,061
- 25
- 80
- 121
5
votes
2 answers
What is the difference between compaction and defragmentation?
My operating systems textbook says that compaction is a process that rearranges disk blocks such that all free disk blocks form a contiguous "chunk" of free disk space.
But I always thought that was what defragmentation does? Are these two terms the…

vladimirm
- 261
- 1
- 2
- 8
5
votes
3 answers
Fail to malloc big block memory after many malloc/free small blocks memory
Here is the code.
First I try to malloc and free a big block memory, then I malloc many small blocks memory till it run out of memory, and I free ALL those small blocks.
After that, I try to malloc a big block memory.
#include
#include…

Celebi
- 1,280
- 3
- 16
- 25
5
votes
5 answers
C#: Is there an Advantage to Disposing Resources in Reverse Order of their Allocation?
Many years ago, I was admonished to, whenever possible, release resources in reverse order to how they were allocated. That is:
block1 = malloc( ... );
block2 = malloc( ... );
... do stuff ...
free( block2 );
free( block1 );
I imagine on a 640K…

Bob Kaufman
- 12,864
- 16
- 78
- 107
4
votes
2 answers
How can I limit file fragmentation while working with .NET?
In my application I am gathering small data bits into a bigger file over time. As a result, the target file becomes excessively fragmented. What can be done to limit fragmentation of the output file with .NET?

GregC
- 7,737
- 2
- 53
- 67
4
votes
4 answers
25k Inserts Daily, 99% Fragmentation on Clustered GUID Index
I have a table that has a primary key as a clustered GUID field; I'm generating GUIDs using NEWSEQUENTIALID() instead of NEWID. Unfortunately, because this table sees ~25k-100k inserts per day, within a few hours the (default: clustered) primary…

ashes999
- 9,925
- 16
- 73
- 124
4
votes
1 answer
Measure (Android) heap fragmentation?
We have an app with lots of bitmaps in memory. It keeps failing with
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
errors. It's possible that we are genuinely using too much memory; it's possible that we are leaking memory; it's also…

Jon Shemitz
- 1,235
- 13
- 29
4
votes
1 answer
How frequently IP packets are fragmented at the source host?
I know that if IP payload > MTU then routers usually fragment the IP packet. Finally all the fragmented packets are assembled at the destination using the fields IP-ID, IP fragment offsets and fragmentation flags. Max length of IP payload is 64K.…

Methos
- 13,608
- 11
- 46
- 49
4
votes
1 answer
Has AAC+ support been fixed on all Android phones?
I'd like to switch from using MP3 encoded audio files to AAC+ for voice sound files stored inside an Android app. This will make the install size smaller.
A problem I encountered is that AAC+ support was broken in the Froyo release of…

Lance Nanek
- 6,377
- 2
- 24
- 19
4
votes
1 answer
Out of memory error android due to fragmentation after 20+days
I made a application that runs on a coffee machine.After 20+ days (can be 60+ days depending on use)
an OutOfMemoryError occurs:
java.lang.OutOfMemoryError: Failed to allocate a 604 byte allocation with 16777216 free bytes and 319MB until OOM;…

Steven Goossens
- 55
- 1
- 10
4
votes
3 answers
C# I/O async (copyAsync): how to avoid file fragmentation?
Within a tool copying big files between disks, I replaced the
System.IO.FileInfo.CopyTo method by System.IO.Stream.CopyToAsync.
This allow a faster copy and a better control during the copy, e.g. I can stop the copy.
But this create even more…

EricBDev
- 1,279
- 13
- 21
4
votes
1 answer
APC Fragmentation
I have APC with my Wordpress website
See my APC summary page here
http://www.animefushigi.com/apc.php
I notice I have a very high amount of fragments (over 10,000)
Is this a bad thing? Will it decrease performance?

Virendar
- 41
- 1
- 2
4
votes
1 answer
How to optimize the tables in information_Schema database
I got the free space (fragmentation issues) in my information_Schema database.
Alert shows that there are 1500% free space in some tables like COLUMNS , ROUTINES.
I am worried how this is possible because i don't have any routines in my database and…

Aman Aggarwal
- 17,619
- 9
- 53
- 81