check_swap quirk on Solaris

Karl DeBisschop karl at debisschop.net
Thu Jan 16 14:43:04 CET 2003


On Thu, 2003-01-16 at 02:31, Voon, Ton wrote:
> Here's the script. Ideally I think it should be integrated into the C
> check_swap program - probably using solaris specific ifdefs - but it looked
> too difficult for me. Also some people dispute the validity of the check as
> opposed to swap -l. My guide was this reference:
> http://www.sun.com/sun-on-net/itworld/UIR980701perf.html.

Interesting reading...

I looked at linux (2.4.20-2.13 i686) and saw:

[kdebisschop at localhost build-redhat]$ cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  128999424 125702144  3297280        0  4173824 77893632
Swap: 263200768 57708544 205492224
MemTotal:       125976 kB
MemFree:          3220 kB
MemShared:           0 kB
Buffers:          4076 kB
Cached:          49136 kB
SwapCached:      26932 kB
Active:          92372 kB
ActiveAnon:      54180 kB
ActiveCache:     38192 kB
Inact_dirty:      4196 kB
Inact_laundry:   12796 kB
Inact_clean:      2096 kB
Inact_target:    22292 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       125976 kB
LowFree:          3220 kB
SwapTotal:      257032 kB
SwapFree:       200676 kB

I wonder if there's any relation to the SwapCached item...

Anyway, I think what you have can be done in C with just a few changes
to configure.in. If I have a little time on a Solaris machine, I'll look
into it.

--
Karl



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




More information about the Users mailing list