Questions tagged [memory-fragmentation]

81 questions
2
votes
3 answers

output garbage from windbg heap summary

First, My English is not good. So sorry. I'm not living English area. I have a question. I'm working memory fragmentation of Windows server program. Because of out of memory cannot run more than a week. May be problem it is. So, I used to heap…
BIsaac
  • 21
  • 2
2
votes
2 answers

What algorithm to apply for continuious reallocation of small memory chunks?

In C program I face transactions that require to have alot of memory chunks, I need to know if there is an algorithm or best practice teqnique used to handle all these malloc/free, I've used arrays to store these memory chunks but at some point the…
2
votes
1 answer

Redis used_memory_rss is more than the config set 'maxmemory'?

We have Set 120 GB Max Memory in Redis Server. So in info output used_memory is always less than equal to 120GB but used_memory_rss is ~140GB Can Someone Please explain the reason of this?
2
votes
1 answer

SharpDX memory fragmentation

I am working on a .NET 3.5 application which uses SharpDX to render tiled 2D images. Textures (Texture2D) are loaded into a cache on-demand, and are created in the managed pool. Textures are disposed of when no longer required, and I have verified…
Ben Owen
  • 67
  • 7
2
votes
2 answers

How to get the largest available chunk of memory that can be allocated?

How can I get the largest size (continious) in bytes my application can allocate in one malloc call without returning out of memory? (biggest available chunk) P.S.: I would like a general answer for both if I want to allocate it and if I don't want…
Gizmo
  • 1,606
  • 1
  • 19
  • 42
2
votes
1 answer

Excessive Gen 2 Free Blocks in Crash Dump

On inspecting a crash dump file for an out of memory exception reported by a client the results of !DumpHeap -stat showed that 575MB of memory is being taken up by 45,000 objects of type "Free" most of which I assume would have to reside in Gen 2…
2
votes
1 answer

how to avoid strings causing fragmentation into LOH

My application read lot of data from text files that get into large object heap which eventually cause fragmentation issue. Are there any alternative design approaches that can help to not get these to LOH? I know about StringBuilder but it seem…
BKS
  • 1,323
  • 13
  • 29
2
votes
2 answers

Are D arrays fragmented?

Are arrays in D fragmented? Is it safe to pass a pointer to the first argument to a C function taking a C-array? The C function will override the array contents. The C function takes a length parameter so it doesn't need to be NULL terminated. (It's…
Jeroen
  • 11,661
  • 11
  • 46
  • 92
2
votes
1 answer

Memory leak or memory fragmentation?

I'm running following code in Borland Builder C++ 6 and can see increasing memory used by the program in Memory (Private Working Set) , Windows Task Manager which, I believe is a memory leak. for (int i = 0; i < 100000; i++) { try { …
nommyravian
  • 1,246
  • 2
  • 12
  • 27
2
votes
3 answers

Ways to avoid memory fragmentation

I allocate a big memory pool from RTOS (I already know my application memory requirement, it will not grow beyond a certain size). And then my application allocation requests are fulfilled from that pool. Recently I started facing a problem;…
Saqlain
  • 15,990
  • 4
  • 25
  • 33
2
votes
5 answers

What does fragmented memory look like?

I have a mobile application that is suffering from slow-down over time. My hunch, (In part fed by this article,) is that this is due to fragmentation of memory slowing the app down, but I'm not sure. Here's a pretty graph of the app's memory use…
izb
  • 45,586
  • 39
  • 110
  • 165
1
vote
1 answer

OutOfMemory and Memory Fragmentation in SharePoint 2007 32 bit

for some weeks I struggling with the OutOfMemory issue on our SharePoint 2007 (published intranet with many customizations) WFEs (SP 2 and Win 2003 32 Bit Servers). After I received a crashed memory dump I found out that we have a memory…
1
vote
1 answer

Memory Fragmentation with byte[] in C#

The C#/.NET application I am working on makes use of huge byte arrays and is having memory fragmentation issues. Checked memory usage using CLRMemory The Code we use is as follows PdfLoadedDocument loadedDocument = new…
1
vote
3 answers

Custom memory allocation - C v. C++

I have been learning C++, and have come across the topics of custom memory allocators. I have understood that by designing an allocator and using this allocator with standard library containers, we can avoid heap allocation. Also, it seems that we…
1
vote
1 answer

Does malloc allocated fragmented chunks?

I found out there are kernel drivers for Contiguous memory allocations. I though malloc coalesced memory and return best fit and if memory wasn't available it would return 0. If malloc only allocated continuous memory what is the need for a…
user282909
  • 105
  • 6