It is the kernel's job to manage one in relation to another. ![]() That only actually has 512 MB of physical memory).ĭata cannot actually be stored or retrieved from virtual address space real data requires real, Have dozens or hundreds of processes, each with its own 2-4 GB virtual address space, on a system This map is the same for each processes (generally, 2-4 GB), and it is not accumulated (ie, you may It's basically a map of all the memory currently allocated to a process. As the name implies, virtual address space is not real Interpreting some of the above statistics. It is important to understand the difference between virtual address space and physical memory in ![]() I'll cite something I wrote in the man page for an application that does analysis similar to top and drawing information from the same sources as pmap (e.g. Do we have anything under /proc that will give this info? ~]# pmap -x 10436 | grep total My question is: Is the value under coloumn Dirty is the 'real' amount of memory actively used by that process? If its not, then how can we find out the real memory usage of a process? Not ps and top for the same reasons above. As seen in the example show below, the Dirty coloumn shows 15M as opposed to 379M in the first coloumn. Now, when we use pmap -x, I see an extra coloumn Dirty which shows far less memory usage for the process. Now these values definitely are not the current memory usage of those two processes, since if it were it would've exceeded the 512M ram on my system and I understand the fact that these are the size of the pages assigned to these two processes and not really the size of the memory actively used by them. ~]# pmap 10436 | grep totalĬomparing this with the output of top, I see the values are almost matching. As per the output of pmap say, mysql is using about 379M and apache is using 277M. ![]() The following are the memory usage of mysql and apache respectively on my server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |