A place where the Joyent community can gather, help each other out, and stay informed.
You are not logged in.
I need to know what is the size of my accelerator. I'm not sure it is with the size I ordered it.
I need to check the amount of RAM allocated to my Zone.
Offline
There is no way to see from inside of the accelerator your memory limits. Just remember to look at both your Swap and RSS numbers. Manytimes people have plenty of RSS memory but have used up all of their swap memory.
Also note that all files located in /tmp also count as part of your swap.
Offline
I'm always puzzled as to what is the difference between the SIZE and RSS columns for prstat -Z output. As well as summary line SWAP and RSS.. I've read that for RAM-that-my-software-uses I should look at RSS, what is SIZE then ?
Linda, could you please explain ?
Thanks,
Andrzej
Offline
SIZE is total virtual memory (including memory swapped out). What prstat does is add up the RSS usage of all the processes to calculate the RSS summary value, and the same for SIZE (which becomes SWAP). Then you take SWAP, add whatever you store under /tmp and you get your total swap usage. Complicated?
What we're coming up in the next Accelerator template revision is a smart Bash script that pulls such data for you and prints it nicely, e.g.
Memory cap: 1 GiB
Memory used: 211 MiB
Memory free: 813 MiB
Swap cap: 2 GiB
Virtual memory used: 343 MiB
/tmp used: 4 B
Total swap used: 343 MiB
Total swap free: 1 GiB
There is also a machine parseable output format, if you want to plug this into any of your own scripts. And while a new template won't affect any existing Accelerators, we'll make this script downloadable for all.
Edit: Heh, just realized that the math doesn't add up in the example above. Still a work in progress... :)
Offline
Ok, thanks for the clarification. So I have 2GB accelerator and everytime I do prstat I see ALL of my processes having SIZE bigger then RSS ie apache processes like :
SIZE : 58M
RSS : 15M
What does it mean ?
The summarized numbers in the same time are like :
SWAP : 1202M
RSS : 1105M
Does it mean all of my processes are swapping all the time ?
Offline
I would appreciate if someone could answer my questions :)
Thanks a ton !
Offline