Questions tagged [memory-fragmentation]
81 questions
0
votes
0 answers
How to figure out when Android memory is too fragmented
I understand that my question is too vague, but here is the problem. I parse a very large file creating a linked list of my objects (BTW, they are not related to bitmaps). At some moment I get infamous 'OutOfMemoryError'. Right before that I see my…
![](../../users/profiles/583972.webp)
Alex B
- 331
- 3
- 8
0
votes
0 answers
Algorithms for memory allocation which produces low fragmentation
I've read Modern Operating Systems 4th Edition, Andrew Tanenbaum in which are presented some ways to handle the memory management (with bitmaps, with linked lists) and some of the algorithms that can be used to allocate memory (first fit, next fit,…
![](../../users/profiles/9058538.webp)
Ovidiu Firescu
- 353
- 1
- 9
0
votes
1 answer
libc malloc vs linux kernel buddy allocator
Does malloc wory about internal fragmentation in linux kernel?
For example when I want to allocate 5 pages, will malloc round up size to make it power of 2: 5->8 to avoid internal fragmentation in kernel, because linux kernel uses buddy system as…
![](../../users/profiles/3743752.webp)
scopichmu
- 109
- 9
0
votes
0 answers
C#, byte arrays, avoid memory fragmentation
I'm writing a data structure, which main purpose will be containing binary data (byte arrays) organized in such way, that user can insert data in the middle without performance penalties (moving large chunks of memory).
For that purpose, I'll need…
![](../../users/profiles/453803.webp)
Spook
- 22,911
- 14
- 79
- 146
0
votes
1 answer
How to avoid VRAM fragmentation?
I realize there's no way to avoid it for certain, as OpenGL says nothing about VRAM fragmentation.
But all the same, I have fragmentation in my app and I want to try reducing it on common platforms.
The only thing I found on the topic was this:
The…
![](../../users/profiles/122687.webp)
Stefan Monov
- 10,601
- 8
- 50
- 98
0
votes
0 answers
Memory usage in Base64 conversion?
I'm using the base64.b64encode library in python to convert my images into their b64 version. I noticed that while the b64 specs says that it takes 1.3 times the memory of the original data. I observe that it takes almost twice if not more of the…
![](../../users/profiles/703139.webp)
tsar2512
- 2,282
- 2
- 28
- 46
0
votes
2 answers
massif reported heap usage much less than VmRss, what could be wrong?
massif output:
time=3220706
mem_heap_B=393242041
mem_heap_extra_B=73912175
mem_stacks_B=93616
heap_tree=peak
process shows 1.2GB in VmRss, so the huge difference comes from where? (I saw Rss grows up continuously).
![](../../users/profiles/1211764.webp)
bugs king
- 476
- 3
- 10
0
votes
1 answer
Arduino Mega slows down after 4 hours
I'm making a small project that makes some POST request to an webserver and do some tasks based on server response. Server always respond with JSON or an array
Clasic response from server looks like :
POST…
![](../../users/profiles/7143251.webp)
Nick
- 1
- 1
0
votes
0 answers
Linux oom killer - find fragmented process
I am currently facing major issues with OOM after upgrading from Debian 7 to Debian 8 on arm (cubietruck).
I have already read a lot about oom mechanism and causes, still I miss an answer to
How to find memory fragmentation of a running process?
I…
![](../../users/profiles/1921744.webp)
Alex.
- 33
- 4
0
votes
1 answer
How to send files without worrying about memory fragmentation?
I have a simple VB.NET web application that allows users to download particular files on the server's hard drive. However, some of these files are extremely large, up to 1GB in size. Sometimes when the web application tries to send these files, the…
![](../../users/profiles/5369902.webp)
painiyff
- 1,979
- 5
- 18
- 27
0
votes
1 answer
How many bits required for page frame number on 32-bit system with 2^20 Bytes physical memory and 4KB page size?
How many bits required for page frame number on 32-bit system with 2^20 Bytes physical memory and 4KB page size?
is it 11 bits??
Need an answer please help! Thank you.
![](../../users/profiles/4731803.webp)
Sasanka Pabasara
- 45
- 7
0
votes
2 answers
Each single request on server for empty html page makes memoy increase. What could be causing this?
First of all, I am a junior developper and new to asp .Net
Our ASp.Net website should be put in production soon enough. Except that i realized memory was increasing all the time, even if i refresh an empty html page.
It starts with about 140 MO and…
![](../../users/profiles/3401875.webp)
ouss court
- 1
- 1
0
votes
1 answer
A sample test java code which can demonstrate memory fragmentation in heap
I would like to understand on how a memory fragmentation can occur by writing some bad code in the java user space.
Please point out me with some ideas which can help me to understand this.
In my understanding I was thinking like, java heap…
![](../../users/profiles/449378.webp)
Sen
- 5,450
- 9
- 46
- 76
0
votes
1 answer
Design approach, string table data, variables, stl memory usage
I have an old structure class like this: typedef vector> VARTYPE_T; which works as a single variable. This variable can hold from one value over a list to data like a table. Most values are long,double, string or double [3] for…
![](../../users/profiles/288854.webp)
howieh
- 107
- 8
0
votes
1 answer
Is this memory fragmentation? (visual studio and mingw)
I have a problem with memory fragmentation which can be summarized in this small example:
#include
#include
int main(int argc, char* argv[])
{
void *p[8000];int i,j;
p[0]=malloc(0x7F000);
if (p[0]==NULL)
…