Well, isn't it strange then that the cloudserver zone shows less swap than rss in "prstat -z"? It says SWAP=11GB and RSS=13GB! ---------------------------------------------------------------------------------- Da: Jim Klimov [email protected] Gabriele Bulfon Data: 29 febbraio 2016 14.44.49 CET Oggetto: Re: [discuss] swap spaces and zones 29 ??????? 2016 ?. 12:09:22 CET, Gabriele Bulfon ?????: Hi, I always get confused by the various tools to watch swap spaces and usages. I'll paste some numbers of a global zone plus some zones running, as output from different commands: swap -lhswapfile dev swaplo blocks free/dev/zvol/dsk/rpool1/swap 128,2 4K 12G 11G/dev/zvol/dsk/rpool1/swap2 128,718 4K 12G 12Gswap -shtotal: 13G allocated + 5.1G reserved = 18G used, 19G availableprstat -ZZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE 7 1095 12G 13G 53% 99:33:52 8.7% cloudserver 0 88 1064M 552M 2% 214:28:13 2.7% global 3 166 1600M 948M 3.9% 84:59:15 5% encoserver 109 144 3038M 1676M 6.8% 0:02:07 0.7% www.sonicle.com 5 26 740M 594M 2.4% 24:55:17 0.0% pkgserver 1 23 42M 24M 0.1% 26:03:28 0.0% asterisktopMemory: 24G phys mem, 661M free mem, 24G total swap, 23G free swap Many numbers, apparently not in line with each other....anyone can help me interpret these? Expecially: the SWAP column in prstat, does it say the cloudserver is using 13G in RAM and 12G in swap?? How can it be if the free swap stated by swap -l is 23GB? And why then the swap -s says another bunch of apparently unrelated numbers? Help... :) Gabriele Generally, SWAP is the virtual memory size requested by the process (or job, up to a zone in whole), and RSS is the Resident Memory Size - the RAM consumption. So typically SWAP=RSS. The difference is not necessarily consumed as bits on swap area (si/so columns in vmstat show this traffic), it may be just reserved by overcomitting or requesting that there is a chance to swap out - virtualbox is notorious for that, requesting and rarely using gigabytes of swap in addition to RAM. Also note that via zone controls you can resource-cap, and so see in an LZ less "ram", "swap" and "tmpfs = /tmp" allowance than in the GZ. HTH, Jim -- Typos courtesy of K-9 Mail on my Samsung Android
------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
