mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Weinehall <tao@acc.umu.se>
To: "Heusden, Folkert van" <f.v.heusden@ftr.nl>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: random PIDs
Date: Wed, 4 Apr 2001 16:24:23 +0200	[thread overview]
Message-ID: <20010404162423.C24478@khan.acc.umu.se> (raw)
In-Reply-To: <27525795B28BD311B28D00500481B7601F115A@ftrs1.intranet.ftr.nl>
In-Reply-To: <27525795B28BD311B28D00500481B7601F115A@ftrs1.intranet.ftr.nl>; from f.v.heusden@ftr.nl on Wed, Apr 04, 2001 at 04:17:45PM +0200

On Wed, Apr 04, 2001 at 04:17:45PM +0200, Heusden, Folkert van wrote:
> Finished & tested my random PID kernel/fork.c:get_pid() replacement.
> This one keeps track of the last N (default is 64) pids who have exited.
> These are then not used. So, one cannot have more then 32767 - (64 + 1
> (init) + 1 (idle)) = 32761 processes :o)

Huh, should be 32701, right?!

> I know that it was all implemented before, but this patch is very small 
> and I couldn't stand the idea the fact that my last announcement was for
> a patch which didn't work at all :o)
> 
> One can find it at: http://www.vanheusden.com/Linux/kernel_patches.php3
> (or: http://www.vanheusden.com/Linux/fp-2.2.19.patch.gz but then you
> miss the list of other patches ;-])
> Patch is against kernel 2.2.19.
> 
> I did not do any performance tests, but the machine I tested it on
> (300MHz dec alpha) felt (felt?) as smooth as before :o)
> 
> 
> Folkert van Heusden
> 
> [ www.vanheusden.com ]
> 
> p.s. the patch mentioned above also raises the number of pool-words
> from 128 to 2048, adds code to do_exit which tells you if the idle
> task is killed (as in 2.4.x), and replaces
> net/core/utils.c:net_[s]random() with something which uses
> get_random_bytes().


/David
  _                                                                 _
 // David Weinehall <tao@acc.umu.se> /> Northern lights wander      \\
//  Project MCA Linux hacker        //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </

  reply	other threads:[~2001-04-04 14:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-04 14:17 Heusden, Folkert van
2001-04-04 14:24 ` David Weinehall [this message]
2001-04-04 14:53 Heusden, Folkert van
2001-04-05  9:06 Studierende der Universitaet des Saarlandes
2001-04-05  9:15 Heusden, Folkert van
2001-04-05  9:46 alad
2001-04-05  9:58 Studierende der Universitaet des Saarlandes

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=20010404162423.C24478@khan.acc.umu.se \
    --to=tao@acc.umu.se \
    --cc=f.v.heusden@ftr.nl \
    --cc=linux-kernel@vger.kernel.org \
    /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®