Solaris 2.5.1 swap -s and swap -l commands

RalphTheCow

Senior member
Sep 14, 2000
992
414
136
OK, this is a pretty arcane question, but what significance does the swap -l command have when the FREE number at the end is 0? The swap space (swap -s) gives a number for free space that seems fine 67000k on a 256 MB machine, but after running mkfile 12m /opt/swap, I think, to get a little more, the number for FREE at the end of the output for swap -l went from something like 2048 to 0. Everything seems to be running fine, but don't like this. Any ideas?
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
I've never actually used Solaris 2.5.1, the oldest we have around here is 2.6.

But anyways, swap -l should list the individual swap spaces, while swap -s should list a summary of all swapspace, unless the swap command works differently in 2.5.1.
Sounds strange that you'd only get output for one swapspace with swap -l if you've got two.
 

RalphTheCow

Senior member
Sep 14, 2000
992
414
136
I don't think I ever made it active with swap -a. I wonder if that is confusing the swap -l command.

But more importantly, any tips on how to find the cause of a steady erosion of free swap area?
 

RalphTheCow

Senior member
Sep 14, 2000
992
414
136
No, /tmp is pretty empty. And today the swap -s is still decent at around 44000k (I think that compares to the 66000 before, allowing for 1 or 2 more X sessions open), and there is a little free space (176 blocks free out of 283664 total) shown by swap -l. Is a reboot likely to bring these numbers up? If there is a memory leak, would that also cause a swap leak?