mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Lang <david.lang@digitalinsight.com>
To: Christian Borntraeger <linux-kernel@borntraeger.net>
Cc: linux-kernel@vger.kernel.org,
	Gergely Czuczy <phoemix@harmless.hu>,
	itk-sysadm@ppke.hu
Subject: Re: Linux 2.4 VS 2.6 fork VS thread creation time test
Date: Sun, 23 May 2004 03:00:51 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0405230247450.8199@dlang.diginsite.com> (raw)
In-Reply-To: <200405231139.44096.linux-kernel@borntraeger.net>

On Sun, 23 May 2004, Christian Borntraeger wrote:

> Date: Sun, 23 May 2004 11:39:41 +0200
> From: Christian Borntraeger <linux-kernel@borntraeger.net>
> To: linux-kernel@vger.kernel.org
> Cc: Gergely Czuczy <phoemix@harmless.hu>, itk-sysadm@ppke.hu
> Subject: Re: Linux 2.4 VS 2.6 fork VS thread creation time test
>
> Gergely Czuczy wrote:
> > failed. As I told it above all the processes are teminated right after
> > creation, but there were a lot of defunct processes in the system, and
> > they were only gone when the parent termineted.
>
> Have you heard of wait, waitpid and pthread_join?

there really is some sort of problem with 2.6.6 in this area. I have an
app that I am trying to stress test on a dual opteron system and under a
heavy load something goes haywire and the children become zombies. on a
dual athlon the test manages 2500 forks/sec and can continue forever (Ok,
I only tested it to 11M forks at full speed :-), but the dual opteron box
manages 3500 connections/sec for a few thousand connections and then stops
reaping the children. if I attach strace to the parent at this point the
logjam is broken and strace shows the wait calls receiving and handleing
the sigchild

the prarent deals with sigchild by
handler{
while ( wait(...) >0);
signal(SIGCHLD, handler);
}

unfortunantly trying to leave strace attached while running the test slows
it down to ~1200 forks/sec and the problem never forms.

David Lang

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

  reply	other threads:[~2004-05-23 10:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-23  7:57 Gergely Czuczy
2004-05-23  8:55 ` Nick Piggin
2004-05-23  9:03   ` Gergely Czuczy
2004-05-23  9:38     ` Nick Piggin
2004-05-23 15:08     ` Anton Blanchard
2004-05-23  9:39 ` Christian Borntraeger
2004-05-23 10:00   ` David Lang [this message]
2004-05-23 19:47     ` Christian Borntraeger
2004-05-24  0:06       ` David Lang
     [not found]     ` <1085325156.622.0.camel@boxen>
     [not found]       ` <D53BF43BC70DD511A22500508BB3C0070A73CE83@wlvexc00.diginsite.com>
2004-05-24  7:15         ` David Lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0405230247450.8199@dlang.diginsite.com \
    --to=david.lang@digitalinsight.com \
    --cc=itk-sysadm@ppke.hu \
    --cc=linux-kernel@borntraeger.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phoemix@harmless.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®