I'm using cgroups with the memory controller to set a memory limit for each user (using the memory.limit_in_bytes setting).
The problem is that this setting also accounts cache usage. Therefore, if the limit is 1GB, and the user merely downloads or copies a 1GB file, their processes get killed.
i am using ubuntu 12.04LTS on my linode vps include core2 cpu, 2gb RAM. I am doing a lot of research on optimizing memory for mysql and apache process -> optimize apache memory use, there i am using two scripts for compute memory per process.
I know how to get memory usage of a process with given pid,
but how to get the memory usage of a task?
If I understand it correctly, a task/application may have multiple processes.
If so, then the question becomes how to know the processes(pids) of a task?
I'm trying to calculate the amount of memory used by AMP in an LAMP stack machine.
top -bn1 | grep -E '(mysql|httpd|php)' | awk '{mem += $(NF-2)} END {print mem}'
But the sum generated using the above command is greater than 100%, but I was expecting something below 100% since individual processes memory usage is already represented in % by top.
Please help me understand whether memory reported
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 want to have a whole list of all the processes with their memory usage.
I want to sum up the memory usage of similar processes (i.e. processes with the same name or the same father process)
How can I do that, e.g. with command line tools?
I'm running Ubuntu server 12.04 on a computer at home, granted it's a netbook so there's not a lot of performance to squeeze out of it, but I'm still wondering about the memory usage I'm seeing from /usr/sbin/mysqld.
When I run htop and sort by memory usage, I get 16 processes on top, all of them running from the mysqluser and pointing at the command /usr/sbin/mysqld.
After installation System monitor shows that memory usage is over 500 MB - pure system after start.
There are no processes which use more 20 MB of memory. Other versions of Ubuntu used about 200 MB. I'm using 64bit version. Intel i7, 16 GB of memory.
What's going on? What process are eating my memory?
dear all,
kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain
i have a server which has 32GB RAM
Total Memory = 33423360 kb
Free Memory = 4172568 kb
Utilized Memory = 29250792 kb
Memory Utilization Percentage = 87.5 %
if Utilized Memory = 29250792 kb how can i make sure which processes eat this amount of memo