Hi,
I have a question about how to find a memory leak in the slab.
I am using a Windriver linux distribution and noticed that free memory was going down. After I enabled slub_debug, I noticed that the buf_acquire is allocating the memory and skb_release_data is freeing it (see below).
There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of PHP-FPM age.
Imagine we have pm.max_children = 10, and have a PHP script consuming 10M memory. One expects needing 100MB of MB. This is correct for the first 10 processes.
I have written this code in C which reads a very large collection of text files and does some processing. The problem with this code is that there are memory leaks which I am not able to figure out as to where the problem is.
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special requirement, the access to the variables should be as quick as posible, which means that variables should be
We have a java application where towards the last part of the codes we wrote these lines
Runtime runtime = Runtime.getRuntime();
long memory = runtime.totalMemory() - runtime.freeMemory();
System.out.println("\n\nUsed memory is bytes: " + memory);
What we notice is that over time the top shows increase in the memory(%) column for the application but the java memory(from runtime variables) valu
I am running a C program on Linux 2.6.16 kernel. I do not think there are memory leaks in my program however the memory consumption for the program remains stable after certain operations and does not decrease. I use the 'ps v ' command to monitor the RSS value of my program.
The valgrind massif tool shows a large portion of heap is allocated by mmap in my process.
I have the following questions regarding Linux memory:
I know that the active memory is the portion of memory which is most frequently accessed. But can someone explain me how linux considers a memory location to be utilised for active memory or inactive memory.
What all components does active memory comprises of ?
Sometimes I feel my computer is slowing down after being used for several hours. I am using Windows XP Sp3. Every program is running very slow and non responsive. Then I try to use this free memory booster software called Uniture Memory Booster.
My HTC Incredible is always telling me I am low on memory. I will delete up to 20 MB, but it will still say I'm low on memory. I cannot send or receive picture messages, (I do not know if this has to do with the memory or not). It says I have 151MB free in my SD card, 6.14GB free in my internal memory, and 433MB free in my phone memory. What's up with this?