"swap -s" and the amount of physical/virtual memory


Sun/Oracle documentation says about "swap -s" :
"The used value plus the available value equals the total swap space on
the system, which includes a portion of physical memory and swap
devices (or files)."

I have 6G of physical RAM and 1G of swap areas on the system:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,2 8 2097144 2066984
$ prtconf | grep Memo
Memory size: 6142 Megabytes

However "swap -s" says that my used+available memory is only about 3G.
Where is all the other memory?

$ swap -s
total: 875968k bytes allocated + 48912k reserved = 924880k used, 2155876k available

I would expect the available virtual memory to be at least the sum
total of the physical RAM + physical swap, where am I wrong?

Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

Relevant Pages

  • Re: whats making executables so large?
    ... each shared library mapped to a separate memory page and memory page ... Swap space, VM, and shared memory usage a _complicated_ swamp. ... 'virtual memory' is more than the disk size of the executable ... The situation is 'sort of' like shared libraries. ...
  • Re: Heaps and Foreigners
    ... >> can ask for the memory and get a pointer to it. ... cause unfathomable deaths when swap space gets low or is exhausted. ... It's probably because there is some reserve memory to print out errors ... of RAM and disk space) and virtual swap (which is just a number managed ...
  • Re: [PATCH] io-controller: Add io group reference handling for request
    ... Find the io group bio belongs to. ... anonymous pages (swap) you still need the page tracking functionality ... so fair to charge the current task for the whole activity. ... is some other memory hungry application which is forcing these swap outs. ...
  • Re: Is Greenspun enough?
    ... Most OSes memory map executables directly from the file system so code doesn't pollute the file cache or swap space. ...
  • Re: [RFC] VM: I have a dream...
    ... > In effect running inside memory cached by physical RAM. ... We *already* treat RAM as a cache for the swap space and other backing store ... the system starts to thrash. ...