microsky
MIS
- May 7, 2001
- 33
Under Solaris 2.6,I found a problem when I calculate the
swap files size ,as following showing ,in the feedback of
command 'swap -l' the swap file size is
3669984*512=1834992(Kbytes) .But in the command 'swap -s'
it show me the swap space is
1621176k+2737240k=4358416(Kbytes) .In command of 'df -k' ,
it show me the location of swap partition is
/dev/md/dsk/d1 and the size is 1.75Gbytes .
Anybody know which one is correct,why ?
Thanks !
=======================================================
$ swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d1 85,1 16 3669984 2936400
$ swap -s
total: 1572336k bytes allocated + 48840k reserved = 1621176k used, 2737240k available
=======================================================
swap files size ,as following showing ,in the feedback of
command 'swap -l' the swap file size is
3669984*512=1834992(Kbytes) .But in the command 'swap -s'
it show me the swap space is
1621176k+2737240k=4358416(Kbytes) .In command of 'df -k' ,
it show me the location of swap partition is
/dev/md/dsk/d1 and the size is 1.75Gbytes .
Anybody know which one is correct,why ?
Thanks !
=======================================================
$ swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d1 85,1 16 3669984 2936400
$ swap -s
total: 1572336k bytes allocated + 48840k reserved = 1621176k used, 2737240k available
=======================================================