After numerous launches the Qemu and removing 1G swap zfs-volume with swap -d I 
get the next output from swapinfo.d (snv_131, x86):
# /opt/DTT/Bin/swapinfo.d 
RAM  _______Total  1015 MB
RAM      Unusable     8 MB
RAM        Kernel   849 MB
RAM        Locked     0 MB
RAM          Used 4294967196 MB
RAM          Free   257 MB

Disk _______Total     0 MB
Disk         Resv     0 MB
Disk        Avail     0 MB

Swap _______Total    31 MB
Swap         Resv     0 MB
Swap        Avail    31 MB
Swap    (Minfree)   125 MB

Using C I've got a normal output:
...
numpages = sysconf(_SC_PHYS_PAGES)/1024;
pagesize = sysconf(_SC_PAGESIZE)/1024;
freepages = sysconf( _SC_AVPHYS_PAGES)/1024;
totalsize = numpages * pagesize;
totalfree = pagesize * freepages;
totalused = totalsize - totalfree;
etc
...
# getmem
RAM   Total:  1012 MB 
RAM    Used:   744 MB 
RAM    Free:   268 MB 
Swap  Total:   540 MB 
Swap   Used:   493 MB 
Swap   Free:    46 MB 


--
Cheers,
Alexander
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to