From: "J . A . Magallon" <jamagallon@able.es>
To: Fabio Riccardi <fabio@chromium.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: linux scheduler limitations?
Date: Thu, 29 Mar 2001 23:35:21 +0200 [thread overview]
Message-ID: <20010329233521.C6053@werewolf.able.es> (raw)
In-Reply-To: <3AC3A6C9.991472C0@chromium.com>
In-Reply-To: <3AC3A6C9.991472C0@chromium.com>; from fabio@chromium.com on Thu, Mar 29, 2001 at 23:19:05 +0200
On 03.29 Fabio Riccardi wrote:
>
> I've found a (to me) unexplicable system behaviour when the number of
> Apache forked instances goes somewhere beyond 1050, the machine
> suddently slows down almost top a halt and becomes totally unresponsive,
> until I stop the test (SpecWeb).
>
Have you though about pthreads (when you talk about fork, I suppose you
say literally 'fork()') ?
I give a course on Parallel Programming at the university and the practical
work was done with POSIX threads. One of my students caught the idea and
used it to modify his assignment from one other matter on Networks, and
changed the traditional 'fork()' in a simple ftp server he had to implement
by 'pthread_create' and got a 10-30 speedup (conns per second).
And you will get rid of some process-per-user limit. But you will fall into
an threads-per-user limit, if there is any.
And you cal also control its scheduling, to make each thread fight against
the whole system or only its siblings.
--
J.A. Magallon # Let the source
mailto:jamagallon@able.es # be with you, Luke...
Linux werewolf 2.4.2-ac28 #1 SMP Thu Mar 29 16:41:17 CEST 2001 i686
next prev parent reply other threads:[~2001-03-29 21:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-29 21:19 linux scheduler limitations? Fabio Riccardi
2001-03-29 21:26 ` David Lang
2001-03-29 21:55 ` Fabio Riccardi
2001-03-30 1:45 ` Mike Kravetz
2001-03-30 2:58 ` Fabio Riccardi
2001-03-29 21:35 ` J . A . Magallon [this message]
2001-03-29 22:12 ` Fabio Riccardi
2001-03-29 22:33 ` J . A . Magallon
2001-03-29 22:51 ` Fabio Riccardi
2001-03-30 6:52 ` Giuliano Pochini
2001-04-02 22:58 ` Alan Cox
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=20010329233521.C6053@werewolf.able.es \
--to=jamagallon@able.es \
--cc=fabio@chromium.com \
--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