> From: Jeff Gleixner <[EMAIL PROTECTED]>
> Date: Tue, 27 Jun 2000 14:23:20 -0500
> Subject: FreeBSD: semwai state Help..
> To: [EMAIL PROTECTED]
> 
> Hi All,
> 
> I'm having a very strange problem and am hoping someone on here can
> help.  I'm running a typical Apache(1.3.6), mod_perl(1.21), Mason(0.81),
> mySQL set-up on 4 big RAM machines (database is on other machines).  I
> start up the servers and after a few minutes the state of the processes
> ends up as "semwai" and the apache processes just stop taking requests.
> 
> Here's a quick glance at some output from top:
> 
> 50201 www       -4   0 15544K 10352K semwai   0:00  0.00%  0.00% apache
> 50249 www       -4   0 15432K 10280K semwai   0:00  0.00%  0.00% apache
> 50227 www       -4   0 15428K  9808K semwai   0:00  0.00%  0.00% apache

I am not familiar with that state from top, but it looks like it is waiting for a
semaphore. I would suggest reading up on shared memory segments and semaphores, in
whatever kernel manuals you have for your OS. I know that on Solaris, I have to up
the default values quite a bit to get things to work with Oracle properly.

This makes sense too, as an OS should not be tuned for db access unless necessary, so
the default config is fine for non-db access apps. :):)



David McCabe  Unix System Administrator
Le Groupe Videotron [EMAIL PROTECTED]   (514) 380 4433

When in doubt, parenthesize. At the very least it will let
some poor schmuck bounce on the % key in vi.
       Programming Perl, Chapter 8, Programming with Style

Reply via email to