Someone please help me figure this out...
"top" shows:
Memory: 128M real, 63M free, 16M swap in use, 113M swap free
"swap -s" shows slightly different numbers than top:
total: 36240k bytes allocated + 15080k reserved = 51320k used,
177004k available
"swap -l" shows: (I'm aware these values are 512byte blocks)
swapfile dev swaplo blocks free
/dev/dsk/c0t3d0s1 32,25 8 262952 230832
"df -k /tmp" shows:
Filesystem kbytes used avail capacity Mounted on
swap 175980 1052 174928 1% /tmp
Although I know that Solaris caches disk data in RAM if possible, how is
it that I have 63MB of RAM available and yet have 16MB of swap in use
(according to 'top') only 1MB of which can be attributed to files in
/tmp?
My system, (2.6 on SS5) right after a reboot, with 1 user logged in
running a CDE session, shows 48M free and 0M swap in use. The next
morning, it shows 63M free but 16M swap in use.
I suspect one of the nightly cron jobs must use all available RAM,
causing some other process to have it's data swapped to disk.
Apparently, since I now have 63M of RAM free, the hog process must have
exited or returned it's memory,
but the process whose data was swapped to disk remains with it's data on
disk.
Does this mean that "once on disk, always on disk"? If this is a
persistent process, will it be slower than necessary forever because of
the hog process that for some small period of time used all available
RAM?
And how can I find out which process has this 16M of swapped data, and
which process used all the RAM?
I tried "fuser /dev/dsk/c0t3d0s1" but that doesn't show anything
useful.
Thanks gurus.
--
Dean Neumann
Neumann & Associates Information Systems Inc.
http://www.neumann-associates.com