Hi,
to know exactly what % of memory used for buffer files in your system, whitch is mybe the cause of your swapping, just type the following commands :
vmo -L minperm
The display will look like this
NAME CUR DEF BOOT MIN MAX UNIT TYPE
DEPENDENCIES
--------------------------------------------------------------------------------
minperm 200426 200426 S
--------------------------------------------------------------------------------
200426 is the minimum number of 4K pages reserved for buffer files in memory(about 10% of my 8388608 Kbyte memory )
To know the max % used for buffer files :
vmo -L maxperm
NAME CUR DEF BOOT MIN MAX UNIT TYPE
DEPENDENCIES
--------------------------------------------------------------------------------
maxperm 1565K 1565K S
--------------------------------------------------------------------------------
1565K is the max number of 4Kbyte pages reserved for buffer files.
Another important very parameter to know about is strict_maxperm :
vmo -L strict_maxperm
NAME CUR DEF BOOT MIN MAX UNIT TYPE
DEPENDENCIES
--------------------------------------------------------------------------------
strict_maxperm 1 0 1 0 1 boolean D
--------------------------------------------------------------------------------
Explanation : strict_maxperm is a boolean, when set to false (0), it tells the system to use more than maxperm parameter if needed, this way 100% of memory may be used for buffer files, leading to system crash in some situations.
when this parameter is set to true (1) maxperm % of memory will never be overpassed, buffer files in memory will be flushed out to disk evrytime they reach maxperm pages.
To change this parameters, commands will be like :
changing minperm : vmo -p -o minperm%=20
changing maxperm : vmo -p -o maxperm%=60
changing strict_maxperm : vmo -p -o strict_maxperm=1
minperm and maxperm are Static, the changes will take effect in next boot.
strict_maxperm is dynamic, the change takes effect immediatly.
man vmo for more deatails on other tunable parameters.
Ali