Why processes are swapping on solaris 8

From: Petri Asikainen (paca@sci.fi)
Date: Tue Jan 11 2005 - 21:54:21 EST


Hi list, I been testing/googling for solution for this over week but
cant resolve issue or understand why following is happening:

Running Solaris 8 sparc , apache2, postgresql, php on Fire V120 with 2GB
RAM and over 5Gb swapspace.

Apache 2.0.52 (prefork) is swapping, every forked new process seems to
reserve swapspace, but top and vmstat are showing that theres free
memory available. Server is wery slow when it get multiple hits...

Why os allocating swapspace even there's free memory?

Is there way to force solaris 8 to not use swap?

Can I use any specific gcc options when compiling apache to avoid swapping?

Regards,

Petri

Below is some memory statics:

#vmstat -p
      memory page executable anonymous
filesystem
    swap free re mf fr de sr epi epo epf api apo apf fpi
  5659632 1722640 160 73 21 0 0 8 0 0 0 0 0 85

fpo fpf
21 21

# swap -s
total: 249432k bytes allocated + 192736k reserved = 442168k used,
5386720k available
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:59 EDT