Questions tagged [heap-fragmentation]
32 questions
43
votes
6 answers
What is a contiguous memory block?
Just like in the title, what is a contiguous memory block?

565471741
- 433
- 1
- 4
- 4
20
votes
4 answers
Memory Fragmentation Profiler
Are there any good memory fragmentation profilers? (linux gcc version would be nice). Valgrind cannot analyze this because it uses custom malloc/free functions.
Thanks,
Andrew

Andrew
- 303
- 3
- 5
15
votes
1 answer
Understanding internal fragmentation properties of Hotspot JVM process
For both on-heap and off-heap allocations. On-heap - in the context of three major garbage collectors: CMS, Parallel Old and and G1.
What I know (or think that I know) to the moment:
all object (on-heap) allocations are rounded up to 8 bytes…

leventov
- 14,760
- 11
- 69
- 98
14
votes
3 answers
Heap fragmentation in 64 bit land
In the past, when I've worked on long-running C++ daemons I've had to deal with heap fragmentation issues. Tricks like keeping a pool of my large allocations were necessary to keep from running out of contiguous heap space.
Is this still an issue…

twk
- 16,760
- 23
- 73
- 97
12
votes
1 answer
How to monitor or visualize memory fragmentation of a delphi application
How can I monitor or visualize memory fragmentation of a delphi application?

Heinz Z.
- 1,537
- 3
- 14
- 29
10
votes
2 answers
managed heap fragmentation
I am trying to understand how heap fragmenation works. What does the following output tell me?
Is this heap overly fragmented?
I have 243010 "free objects" with a total of 53304764 bytes. Are those "free object" spaces in the heap that once…

bitbonk
- 48,890
- 37
- 186
- 278
10
votes
1 answer
Purposely waste all of main memory to learn fragmentation
In my class we have an assignment and one of the questions states:
Memory fragmentation in C: Design, implement, and run a C-program that does the following: it allocated memory for a sequence of of 3m arrays of size 500000 elements each; then it…

CJ van der Smissen
- 541
- 3
- 8
9
votes
1 answer
Is my heap fragmented
0:000> !dumpheap -stat
total 1755874 objects
Statistics:
MT Count TotalSize Class Name
7b9b0c64 1 12 System.Windows.Forms.Layout.TableLayout+ColumnSpanComparer
....
7933303c 14006 4926456…

Keith
- 785
- 1
- 8
- 20
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…

user176168
- 1,294
- 1
- 20
- 30
8
votes
1 answer
Basic heap usage statistics in GCC on 64-bit platform
I need to answer a basic question from inside my C program compiled by GCC for Linux: how much of process heap is currently in use (allocated by malloc) and how much resides if free heap blocks. GNU implementation of standard library has mallinfo…

AnT stands with Russia
- 312,472
- 42
- 525
- 765
8
votes
1 answer
How to avoid heap fragmentation in iOS
Our app creates alot of small objects while running. It mostly comes down to Autoreleased NSString and NSNumber objects. Since the app is designed to run "24/7" in the background heap fragmentation becomes a big issues.
What are the techniques to…

pkuhar
- 581
- 6
- 17
7
votes
1 answer
How to Solve Gen2 Heap Fragmentation
I am running a C# application that services HTTP requests. I have noticed recently that it's taking up more memory then I expect. I grabbed some dumps, popped them in Windbg, and found that most of the memory was marked as Free:
!dumpheap…

shortspider
- 1,045
- 15
- 34
5
votes
1 answer
Where is my iPad runtime memory going?
I'm causing the device (iPad) to run out of memory apparently, so it is jettisoning my app. I'm trying to understand what is going on as Instruments is telling me that I'm using about 80Mb, and there is no other app running on the device.
I found…

Eric
- 151
- 1
- 9
5
votes
6 answers
Memory and pointers
I have need some some help with some thinking around a task.
My task is to create one memory area
void *memory = malloc(320);
and then use pointers to store texts into this storage place: We want to divide this area into data blocks of 32 bytes,…

user265767
- 559
- 3
- 12
- 27
3
votes
2 answers
Flash/ActionScript Memory Fragmentation
In addition to mark-and-sweep, the garbage collectors for .Net and Java both also run a compaction phase to cut down on memory fragmentation. I am not able to find any documentation on a compaction/defragmentation phase for the Flash 9 garbage…

Not Sure
- 5,873
- 3
- 23
- 29