vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| In Solaris 8, when using top, is "swap in use" and "swap free" referring to: 1) overall VM memory ( RAM + total DISK swap ( swap -l ) ) 2) The swap DISK ( Total of swap -l ) 3) RAM only 4) RAM + swap in use? 5) Some other combination? I would assume it is #1 but the numbers don't seem to add up on my system. I have 24GB RAM and 8 GB SWAP DISK, should "swap in use" + "swap free" = 32GB? Or from swap -s : used + available = 32 GB? My system for swap -s is showing 17,803,208k used, 8,014,200k available ( it appears these are the same numbers as top is reporting for "swap in use" and "swap free" ) df -k /tmp = 1,048,576 kb swap -l shows 8 GB. What am I missing? |
| |||
| In comp.unix.solaris Richard <google@richmore.com> wrote: > In Solaris 8, when using top, > is "swap in use" and "swap free" referring to: > 1) overall VM memory ( RAM + total DISK swap ( swap -l ) ) Yes. Same as swap -s. > I have 24GB RAM and 8 GB SWAP DISK, > should "swap in use" + "swap free" = 32GB? Close to it. The kernel allocates space for itself as a percentage of RAM. So on a 24G RAM machine, you lose quite a bit to the kernel. That amount is not in VM. So it's the right order, but it won't be exact. > Or from swap -s : used + available = 32 GB? Right (with the same limitation). > My system for swap -s is showing 17,803,208k used, 8,014,200k > available > ( it appears these are the same numbers as top is reporting for "swap > in use" and "swap free" ) > df -k /tmp = 1,048,576 kb > swap -l shows 8 GB. > What am I missing? Ignore 'df' output. There's no way to reliably interpret that output for swap. That's for a filesystem. Post 'swap -l' and 'swap -s' output. Does 'top' agree with 'swap -s'? -- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > |
| |||
| Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<ZX7mc.45253$D66.664@newssvr29.news.prodigy.c om>... > In comp.unix.solaris Richard <google@richmore.com> wrote: > > In Solaris 8, when using top, > > is "swap in use" and "swap free" referring to: > > 1) overall VM memory ( RAM + total DISK swap ( swap -l ) ) > > Yes. Same as swap -s. > > > I have 24GB RAM and 8 GB SWAP DISK, > > should "swap in use" + "swap free" = 32GB? > > Close to it. The kernel allocates space for itself as a percentage of > RAM. So on a 24G RAM machine, you lose quite a bit to the kernel. That > amount is not in VM. So it's the right order, but it won't be exact. > > > Or from swap -s : used + available = 32 GB? > > Right (with the same limitation). > > > My system for swap -s is showing 17,803,208k used, 8,014,200k > > available > > ( it appears these are the same numbers as top is reporting for "swap > > in use" and "swap free" ) > > > df -k /tmp = 1,048,576 kb > > swap -l shows 8 GB. > > What am I missing? > > Ignore 'df' output. There's no way to reliably interpret that output > for swap. That's for a filesystem. > > Post 'swap -l' and 'swap -s' output. > > Does 'top' agree with 'swap -s'? $ /usr/platform/sun4u/sbin/prtdiag | grep -i memory ; swap -l; swap -s; Memory size: 24576 Megabytes ========================= Memory Configuration =============================== swapfile dev swaplo blocks free /dev/vx/dsk/swapvol 242,6 16 8392048 8140816 /host/vol1/swap.file - 16 4194288 3963488 /host/vol1/swap.file2 - 16 4194288 3959552 total: 14560856k bytes allocated + 2701816k reserved = 17262672k used, 8905216k available top: Memory: 24G real, 3924M free, 16G swap in use, 8757M swap free |
| |||
| In comp.unix.solaris Richard <google@richmore.com> wrote: >> Post 'swap -l' and 'swap -s' output. >> >> Does 'top' agree with 'swap -s'? > $ /usr/platform/sun4u/sbin/prtdiag | grep -i memory ; swap -l; swap > -s; > Memory size: 24576 Megabytes > ========================= Memory Configuration > =============================== > swapfile dev swaplo blocks free > /dev/vx/dsk/swapvol 242,6 16 8392048 8140816 > /host/vol1/swap.file - 16 4194288 3963488 > /host/vol1/swap.file2 - 16 4194288 3959552 > total: 14560856k bytes allocated + 2701816k reserved = 17262672k used, > 8905216k available > top: Memory: 24G real, 3924M free, 16G swap in use, 8757M swap free Yup, it all agrees, even if I don't understand the results. You should have 32GB minus some kernel overhead in VM space. Seems strange that the overhead appears to be 32 - 16 - 8 => 8GB!! If I had a chance, I would 'swap -d <file>' each of the disk swap files until I was down to RAM only and see what swap -s said, but you're close to not having enough space to do that. -- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > |
| ||||
| Was Re: top/vmstat swap in use/swap free Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<TINmc.6104$Zn6.2571@newssvr27.news.prodigy.c om>... > In comp.unix.solaris Richard <google@richmore.com> wrote: > > >> Post 'swap -l' and 'swap -s' output. > >> > >> Does 'top' agree with 'swap -s'? > > > > > $ /usr/platform/sun4u/sbin/prtdiag | grep -i memory ; swap -l; swap > > -s; > > Memory size: 24576 Megabytes > > ========================= Memory Configuration > > =============================== > > swapfile dev swaplo blocks free > > /dev/vx/dsk/swapvol 242,6 16 8392048 8140816 > > /host/vol1/swap.file - 16 4194288 3963488 > > /host/vol1/swap.file2 - 16 4194288 3959552 > > total: 14560856k bytes allocated + 2701816k reserved = 17262672k used, > > 8905216k available > > > top: Memory: 24G real, 3924M free, 16G swap in use, 8757M swap free > > Yup, it all agrees, even if I don't understand the results. > > You should have 32GB minus some kernel overhead in VM space. Seems > strange that the overhead appears to be 32 - 16 - 8 => 8GB!! > > If I had a chance, I would 'swap -d <file>' each of the disk swap files > until I was down to RAM only and see what swap -s said, but you're close > to not having enough space to do that. I don't understand the results either. How could overhead be 8GB?!? ( 25% ). This sounds more like a Windows box than a Solaris box! Rich |
| Thread Tools | |
| Display Modes | |
|
|