On 6/9/2010 7:20 PM, Greg Eanes wrote:
On Wed, Jun 9, 2010 at 8:17 PM, devsk<funt...@yahoo.com>  wrote:
$ swap -s
total: 473164k bytes allocated + 388916k reserved = 862080k used, 6062060k 
available

$ swap -l
swapfile             dev    swaplo   blocks     free
/dev/dsk/c6t0d0s1   215,1         8 12594952 12594952

Can someone please do the math for me here? I am not able to figure the total.

What is "473164k bytes allocated"? Where is it allocated? In some hidden zfs 
swap FS in my root pool?
What's the magic behind the number 473164k?
What is "388916k reserved"?
862080k+6062060k != 12594952/2 - So, where did the rest of it come from? I just 
configured one device in /etc/vfstab.
--

man swap

"        These numbers include swap  space  from  all  configured
          swap  areas  as  listed  by  the -l option, as well swap
          space in the form of physical memory."

This is also a reasonable explanation of what the output of 'swap -s' actually means.

http://www.softpanorama.org/Solaris/Processes_and_memory/swap_space_management.shtml

Look about half-way down the page, under "Monitoring Swap Resources". The whole page is worth a read, though.

--
Erik Trimble
Java System Support
Mailstop:  usca22-123
Phone:  x17195
Santa Clara, CA

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to