Hi, How do we know that how much memory allocated for a process and how to set a limit on it? Thanks, Pratap
On 2014年06月05日 14:35, Pratap kommula wrote:
Hi,
How do we know that how much memory allocated for a process and how to set a limit on it?
1. top RES column 2. setrlimit or mem cgroup
Thanks, Pratap
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- 八百里秦川尘土飞扬,三千万老陕齐吼秦腔。 --bill
On Thu, Jun 5, 2014 at 1:35 PM, Pratap kommula <pratapkommula@gmail.com> wrote:
Hi,
How do we know that how much memory allocated for a process and how to set a limit on it?
Are you referring to resident set size or committed memory size? Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
I am referring to the committed memory size not RSS. Thanks, Rammohan On Thu, Jun 5, 2014 at 12:20 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
On Thu, Jun 5, 2014 at 1:35 PM, Pratap kommula <pratapkommula@gmail.com> wrote:
Hi,
How do we know that how much memory allocated for a process and how to set a limit on it?
Are you referring to resident set size or committed memory size?
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
I am referring to the committed memory size not RSS.
IMU - you could get the committed_as for the entire system easily (using "grep Committed_AS /proc/meminfo"), normally its the kernel responsibility to keep track of the over-committed memory, the process will not get to see an actual increase in RSS unless the process starts using the requested / malloc()-ed memory. It should be possibly to notice an increase in VIRT (from top) or VSZ (valgrind) when the committed_AS for a process goes up. On Thu, Jun 5, 2014 at 3:40 PM, Pratap kommula <pratapkommula@gmail.com> wrote:
I am referring to the committed memory size not RSS.
Thanks, Rammohan
On Thu, Jun 5, 2014 at 12:20 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
On Thu, Jun 5, 2014 at 1:35 PM, Pratap kommula <pratapkommula@gmail.com> wrote:
Hi,
How do we know that how much memory allocated for a process and how to set a limit on it?
Are you referring to resident set size or committed memory size?
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (4)
-
Anil SB -
bill4carson -
Mulyadi Santosa -
Pratap kommula