Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 500 in cherokee: Slow restart on FreeBSD

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Jun 21, 2009, 3:05 PM

Post #1 of 7 (756 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD

Status: New
Owner: ----

New issue 500 by superman.jason: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

What steps will reproduce the problem?
1. Shutdown or restart cherokee server via rc script or cherokee-admin.
2.
3.

What is the expected output? What do you see instead?
Quick shutdown expected, however the shutdown phase takes 5-10 seconds
during which no I/O is available.

What version of the product are you using? On what operating system?
0.99.17 on FreeBSD 7.2-RELEASE-p1 (Also reported on 7.2-STABLE.)

Please provide any additional information below.
See this thread:
http://lists.octality.com/pipermail/cherokee/2009-June/010524.html


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jun 22, 2009, 7:49 AM

Post #2 of 7 (695 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Comment #1 on issue 500 by bozzaj: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

As I originally started working on the issue, I have some additional
information.
I'm working on a 64-Bit FreeBSD 7.2-STABLE system. Straight restart takes
upwards
of 20-30 seconds. Graceful restart seems to be about the same.

Compiling is pretty much default options other than --disable-static (no
change
either way) and --enable-trace to allow for debug trace.

Attached are 4 trace files. The first two are using the default compile as
explained above. I've added two TRACE lines to show timing. I've attached
that
patch just to show that it should be non-invasive. Timing was pretty much
the same
with or without this patch.

The second two files (_single_) are compiled with --disable-pthread.
Something
strange happens here. Doing a hard restart comes back almost instantly.
Doing a
graceful restart never comes back! I gave up after about 2 minutes. Trace
is
attached, including where I hit CTRL-C to exit.

Configuration was the default from 0.99.17 package, adding a /tweak
directory to
allow me to turn on tracing. No other changes were made other than what
might have
been made simply by accessing the cherokee-admin interface. Attachs is the
cherokee.conf file just in case.

Let me know if there's anything else you need from me!


Attachments:
cherokee_pthreads_graceful.txt 4.3 KB
cherokee_pthreads_hard.txt 3.8 KB
cherokee_single_graceful.txt 1.7 KB
cherokee_single_hard.txt 1.8 KB
cherokee_trace_additonal_info.txt 407 bytes
cherokee.conf 12.5 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jun 23, 2009, 8:17 AM

Post #3 of 7 (693 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Updates:
Status: WaitingQA
Owner: alobbs
Labels: Type-Enhancement Priority-Medium OpSys-All Component-Logic

Comment #2 on issue 500 by alobbs: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

r3376 should have fixed it:
http://svn.cherokee-project.com/changeset/3376

It's being shipped with Cherokee 0.99.19.
Please, confirm whether the patch actually fixed the problem. Thanks!

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jun 23, 2009, 2:53 PM

Post #4 of 7 (685 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Comment #3 on issue 500 by bozzaj: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

Patch seems to allow hard restart to work within a second or two - doesn't
fix a
graceful restart. On all the systems I've tested, the faster the system,
the longer
the graceful restart takes.

P3-500Mhz, about 2-3 seconds
P4-2.4Ghz, about 5 seconds
Xeon X3220 (Quad Core 2.4HZ Core2Duo), about 20 seconds

Looking at the changeset, you'll looking for wanna_exit, which is only set
with hard
restarts. Graceful restarts work differently.

At the very least, I can use a hard restart if I need to restart the
server. With
0.99.19, that comes back in less than a second.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jun 27, 2009, 7:47 AM

Post #5 of 7 (689 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Comment #4 on issue 500 by alobbs: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

r3392 should fix the graceful restart as well:

http://svn.cherokee-project.com/changeset/3392

Could you guys please give it a try?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jul 1, 2009, 10:29 AM

Post #6 of 7 (665 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Comment #5 on issue 500 by bozzaj: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

Graceful restart comes back very quickly with no one currently connected.
Hard
restart immediate. Looks like we're all set!


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Jul 1, 2009, 10:59 AM

Post #7 of 7 (663 views)
Permalink
Issue 500 in cherokee: Slow restart on FreeBSD [In reply to]

Updates:
Status: Fixed

Comment #6 on issue 500 by alobbs: Slow restart on FreeBSD
http://code.google.com/p/cherokee/issues/detail?id=500

Great!
Thanks for checking :)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.