Pablo,

One last question - Are you operating under an SMP kernel or is it just a 
single core processor?

Jaime


From: Pablo Hernan Saro [mailto:[email protected]]
Sent: Monday, June 22, 2009 4:02 PM
To: Jaime Bozza
Cc: [email protected]
Subject: Re: [Cherokee] Strange issue with threads

Hello Jaime,

I followed your instructions carefully and got the same result. I got only one 
time the message "Waiting for PIDS" and the restart took just a couple of 
seconds.
I don't see any problem on this...
Hope it helps. Don't hesitate to contact me for further testing.

Pablo
On Mon, Jun 22, 2009 at 11:10 AM, Jaime Bozza 
<[email protected]<mailto:[email protected]>> wrote:

Pablo,



Can you try the following?



1)      Install Cherokee using the default cherokee.conf file.  This just 
serves up the default cherokee page.

2)      Start the server using the FreeBSD RC script

3)      Wait a minute, restart the server using /usr/local/etc/rc.d/cherokee 
restart

4)      Observe the number of times the system is "Waiting for PIDS"



Typically, it shouldn't have to wait hardly at all.



It's possible that adding PHP to the mix may "fix" the issue, which I'll test 
in a little bit, but I've just been testing core functionality first.



Jaime





From: Pablo Hernan Saro [mailto:[email protected]<mailto:[email protected]>]
Sent: Saturday, June 20, 2009 7:53 PM
To: [email protected]<mailto:[email protected]>

Subject: Re: [Cherokee] Strange issue with threads



Hi Jaime,

I hope you're doing fine.
I just tested cherokee on FreeBSD 7.2-STABLE running on a i386 box. I installed 
your port just out of the box and configured a virtual host with PHP as 
FastCGI, everything by default (in fact, I've used the wizard). Good news: 
after opening several http sessions requesting php files, I performed a hard 
restart and it tooks 2 seconds. Then I tried a graceful restart and it tooks a 
couple additional seconds because of the gracefulness.
I'm also running cherokee on Linux, so I compared both. To be honest, there is 
no visible difference.
Well, I hope it helps. Let me know if I can help you further.
Cheers

Pablo

On Fri, Jun 19, 2009 at 9:31 PM, Pablo Hernan Saro 
<[email protected]<mailto:[email protected]>> wrote:

Hi Jaime,

Thanks for sharing your port. I'll look into it over the weekend. My box is for 
testing purposes and runs 7.2-STABLE x86. I'll let you know as soon as test it.
Cheers

Pablo



On Fri, Jun 19, 2009 at 9:01 PM, Jaime Bozza 
<[email protected]<mailto:[email protected]>> wrote:

Pablo,

Attached is the port.  I'm using 7.2-STABLE Amd64.  I'm starting Cherokee just 
with the default config, but I'm keeping it in the foreground so I can see 
what's happening.  Using Cherokee-Admin and doing a graceful restart causing 
the Cherokee process to immediately show that it received the graceful restart, 
but for several seconds it sits there before bringing up the information banner 
(showing that the process restarted) again.

Load while Cherokee is running doesn't seem to be an issue - Just the restart.

Thanks for your help!

Jaime


> -----Original Message-----
> From: Pablo Hernan Saro 
> [mailto:[email protected]<mailto:[email protected]>]
> Sent: Friday, June 19, 2009 6:39 PM
> To: Jaime Bozza; [email protected]<mailto:[email protected]>
> Subject: Re: [Cherokee] Strange issue with threads
>
> I'm using Cherokee in slackware, compiling it my way. I've tested it
> with no considerable load and I've never experienced such problem.
> If you can send me your port in private I'll look if this happens to
> me (I have a FreeBSD box).
> Cheers
>
> Pablo
>
>
>
> On 6/19/09, Jaime Bozza <[email protected]<mailto:[email protected]>> 
> wrote:
> > Another day, another issue.  In testing my new FreeBSD port, I've had
> to
> > start and restart the server several times.   I noticed that the
> server was
> > taking a long time to stop.  It didn't matter if it was a hard
> restart or a
> > graceful restart.
> >
> > After turning on tracing, I found that pthread_join() was taking
> several
> > seconds to stop some of the threads.
> >
> > My question - Has anyone else noticed slowness (in the order of over
> 5-10
> > seconds and more!) when restarting Cherokee?   During this time, all
> IO is
> > blocked, so nothing can be served, which is a bit of a problem.
> While
> > restarting rarely happens, it makes it difficult for making quick
> changes.
> >
> > I'm trying to figure out if it's just something with FreeBSD or if
> it's
> > happening with other OS's as well, so input from anyone is welcome.
> >
> > Jaime
> >
> >
> >
>
> --
> Sent from Gmail for mobile | mobile.google.com<http://mobile.google.com>





_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to