Linked Questions
34 questions linked to/from What is RSS and VSZ in Linux memory management
1130 votes
17 answers
444k views
What is the meaning of "POSIX"?
What exactly is POSIX? I have read the Wikipedia article but I still don't understand.
754 votes
19 answers
1.1m views
What is the maximum recursion depth, and how to increase it?
I have this tail recursive function here: def recursive_function(n, sum): if n < 1: return sum else: return recursive_function(n-1, sum+n) c = 998 print(recursive_function(...
473 votes
12 answers
501k views
Total memory used by Python process?
Is there a way for a Python program to determine how much memory it's currently using? I've seen discussions about memory usage for a single object, but what I need is total memory usage for the ...
306 votes
8 answers
300k views
Virtual Memory Usage from Java under Linux, too much memory used
I have a problem with a Java application running under Linux. When I launch the application, using the default maximum heap size (64 MB), I see using the tops application that 240 MB of virtual ...
138 votes
12 answers
143k views
How do you Force Garbage Collection from the Shell?
So I am looking at a heap with jmap on a remote box and I want to force garbage collection on it. How do you do this without popping into jvisualvm or jconsole and friends? I know you shouldn't be in ...
179 votes
6 answers
67k views
What do the return values of node.js process.memoryUsage() stand for?
From the official documentation (source): process.memoryUsage() Returns an object describing the memory usage of the Node process measured in bytes. var util = require('util'); console.log(...
185 votes
6 answers
98k views
How does SIGINT relate to the other termination signals such as SIGTERM, SIGQUIT and SIGKILL?
On POSIX systems, termination signals usually have the following order (according to many MAN pages and the POSIX Spec): SIGTERM - politely ask a process to terminate. It shall terminate gracefully, ...
64 votes
10 answers
124k views
Maximum memory which malloc can allocate
I was trying to figure out how much memory I can malloc to maximum extent on my machine (1 Gb RAM 160 Gb HD Windows platform). I read that the maximum memory malloc can allocate is limited to ...
122 votes
2 answers
47k views
How does x86 paging work?
This question is meant to fill the vacuum of good free information on the subject. I believe that a good answer will fit into one big SO answer or at least in a few answers. The main goal is to give ...
131 votes
4 answers
191k views
Understanding the Linux oom-killer's logs
My app was killed by the oom-killer. It is Ubuntu 11.10 running on a live USB with no swap and the PC has 1 Gig of RAM. The only app running (other than all the built in Ubuntu stuff) is my program ...
65 votes
10 answers
88k views
A way to determine a process's "real" memory usage, i.e. private dirty RSS?
Tools like 'ps' and 'top' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the "real" memory usage: Program code is shared between ...
51 votes
1 answer
102k views
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning [closed]
I have a CentOS server. System is nginx/php-fpm. It has 16GB RAM. CPUs : 8 CPU Frequency: 2660.203 MHz Why am I getting this error in my error log? php-fpm/error.log: [02-Aug-2014 17:14:04] WARNING: [...
32 votes
6 answers
92k views
Memory usage of current process in C
I need to get the memory usage of the current process in C. Can someone offer a code sample of how to do this on a Linux platform? I'm aware of the cat /proc/<your pid>/status method of getting ...
20 votes
4 answers
17k views
Resident Set Size (RSS) limit has no effect
The following problem occurs on a machine running Ubuntu 10.04 with the 2.6.32-22-generic kernel: Setting a limit for the Resident Set Size (RSS) of a process does not seem to have any effect. I ...
8 votes
4 answers
6k views
Malloc allocates memory more than RAM
I just executed a program that mallocs 13 MB in a 12 MB machine (QEMU Emulated!) . Not just that, i even browsed through the memory and filled junk in it... void large_mem(void) { #define ...