Questions tagged [memory-fragmentation]

81 questions
1
vote
4 answers

What decides where on the heap memory is allocated?

Let me clear up: I understand how new and delete (and delete[]) work. I understand what the stack is, and I understand when to allocate memory on the stack and on the heap. What I don't understand, however, is: where on the heap is memory allocated.…
1
vote
0 answers

How to avoid virtual fragmentation problem for 32 bit linux kernel?

Everybody knows the problem of virtual memory fragmentation in a system. How can we improve the fragmentation problem from the kernel driver perspective in 32-bit kernel? Since we can't control the application behavior. There are issues where 600 MB…
1
vote
0 answers

What does the CLR do before throwing an OutOfMemoryException?

I would like to know precisely what the CLR does before it throws an OutOfMemoryException (OOME). I understand that the likely cause is not having a contiguous chunk of memory available, but does the CLR proactively do anything before making this…
Kit
  • 15,260
  • 3
  • 47
  • 87
1
vote
1 answer

Does OpenGL takes care of GPU memory fragmentation?

So basically whenever I create buffer objects Opengl allocates some memory on the GPU. Consider scenario 1 where I generate 2 uniform buffers for 2 uniform variables. Now consider scenario 2 where I create a single buffer and enclose the 2 uniform…
gallickgunner
  • 433
  • 3
  • 17
1
vote
0 answers

What is causing an extremely low memory fragmentation ratio?

We are seeing some odd memory issues with our Redis 4.0.2 instances. The master instance has a ratio of 0.12, whereas the slaves have reasonable ratios that hover just above 1. When we restart the master instance, the memory fragmentation ratio goes…
Andrew Eisenberg
  • 26,698
  • 9
  • 84
  • 133
1
vote
1 answer

Internal fragmentation basic concept

Suppose I have two processes of 50 bytes and have only one partition of 100 bytes. Suppose the first process takes up the partition and 50 bytes is remaining . Can the second process reside in the same partition even if free space is available or…
1
vote
1 answer

How to deal with external fragmentation, how paging helps with external fragmentation?

I know that there is a lot of questions regarding the issue I'm pointing here, but I couldn't find any complex answer (neither on StackOverflow nor in other sources). I would like to ask about heap (RAM) fragmentation problem. As I understood there…
1
vote
3 answers

Copying Garbage Collector

How does a copying garbage collector avoid memory fragmentation? Also, what consequences for heap-space use? From my understanding, a copying garbage collector, copies all reachable objects from the heap into another section of the heap. All…
Bobby S
  • 3,786
  • 9
  • 37
  • 58
1
vote
1 answer

Erlang memory fragmentation

Our Erlang server looks have a serious memory leak, the VM memory usage is low but top is high. Env Erlang: R16B02 OS: Ubuntu 12.04.5 LTS \n \l X86_64 Erlang VM > erlang:memory(). [{total,424544992}, {processes,293961840}, …
linbo
  • 2,223
  • 3
  • 18
  • 41
1
vote
1 answer

boost multi_index_container and memory fragmentation

I'm using MIC for my LRU cache in server, it has replaced list/map LRU since I was suspecting that this is what caused some unexplained memory footprint. Memory leaks are out of picture, at least no tool has found any leak as well as code…
kreuzerkrieg
  • 2,357
  • 21
  • 42
1
vote
2 answers

Solution to external fragmentation in contiguous memory allocation

In contiguous memory allocation we have a problem of external fragmentation , but cant we just combine all the available small holes of free memory to create a big one according to our requirement?
varun
  • 1,263
  • 1
  • 8
  • 15
0
votes
0 answers

Out of memory on 32 bit .net application when allocating an 200mb object on the large object heap

I have an application running 32bit on .net 4.7. When the application starts, it loads a bunch of data from a server and caches it in memory. At some point in time, the application receives a 200mb buffered list from the server, and tries to…
MortenGR
  • 764
  • 1
  • 7
  • 18
0
votes
1 answer

Is there any optimization or different API for page aligned memory allocations on the heap?

I am about to write a class representing a double-ended queue, just like std::dequeue, but with the capability to store any trivially destructible type, and without indexing support. Iteration or pop operations will only work knowing the types…
Frede
  • 1
  • 2
0
votes
1 answer

.net application causing memory fragmentation

I understand that only way a .NET application ( that does not use any unamanged code) can cause memory fragmentation is by large object heap. Are there any ways of detecting if your application is fragmenting memory and anyways of avoiding it?
Silverlight Student
  • 3,712
  • 10
  • 34
  • 51
0
votes
1 answer

Does use of hash tables cause memory fragmentation?

My understanding of hash tables is that they use hash functions to relate keys to locations in memory, with a total number of "buckets" pre-allocated in memory. The goal is for there to be enough buckets that I don't have to use chaining, slowing my…