From: Jakob Østergaard <jakob@unthought.net>
To: Andrea Arcangeli <andrea@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Petru Paler <ppetru@ppetru.net>,
Jure Pecar <pegasus@telemach.net>,
linux-kernel@vger.kernel.org, thttpd@bomb.acme.com
Subject: Re: linux 2.2.19pre and thttpd (VM-global problem?)
Date: Fri, 29 Dec 2000 23:40:48 +0100 [thread overview]
Message-ID: <20001229234048.B12468@unthought.net> (raw)
In-Reply-To: <20001229165340.C12791@athlon.random> <E14C4bd-0005bM-00@the-village.bc.nu> <20001229200657.B16261@athlon.random>
In-Reply-To: <20001229200657.B16261@athlon.random>; from andrea@suse.de on Fri, Dec 29, 2000 at 08:06:57PM +0100
On Fri, Dec 29, 2000 at 08:06:57PM +0100, Andrea Arcangeli wrote:
> On Fri, Dec 29, 2000 at 06:50:18PM +0000, Alan Cox wrote:
> > Your cgi will keep the other CPU occupied, or run two of them. thttpd has
> > superb scaling properties compared to say apache.
>
> I think with 8 CPUs and 8 NICs (usual benchmark setup) you want more than 1 cpu
> serving static data and it should be more efficient if it's threaded and
> sleeping in accept() instead of running eight of them (starting from sharing
> tlb entries and avoiding flushes probably without the need of CPU binding).
Ok - my point was (and maybe I'm just misunderstanding something):
Multiple threads do send() etc. -> this gets serialized by the kernel
anyway, as TCP checksums are done in the kernel as well as the NIC
driving etc. If the TCP layer cannot parallelize checksum calculation.
One thread does many send()'s -> this also gets serialized by the
kernel.
Or: one thread vs. many threads reading from the disk -> makes no difference
since there is *one* buffer layer, one driver, one disk etc. etc.
My question is: Does it change anything in the way the TCP stack
can crank out packets, if I change the number of threads in user-space
making the system calls ?
Does the fine-grained locking allow multiple user-space threads to
actually have TCP checksums etc. done on multiple CPUs concurrently,
and is it true that this will not happen if I have one user-space
thread doing non-blocking send() calls ?
Thanks,
--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-29 23:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-29 1:32 linux 2.2.19pre and thttpd (VM-global problem?) Jure Pecar
2000-12-29 2:29 ` Andrea Arcangeli
2000-12-29 2:47 ` Andrea Arcangeli
2000-12-29 7:38 ` Petru Paler
2000-12-29 15:53 ` Andrea Arcangeli
2000-12-29 18:04 ` Petru Paler
2000-12-29 18:13 ` Jakob Østergaard
2000-12-29 18:21 ` Petru Paler
2000-12-29 18:56 ` Alan Cox
2000-12-29 19:11 ` Andrea Arcangeli
2000-12-29 18:50 ` Alan Cox
2000-12-29 19:06 ` Andrea Arcangeli
2000-12-29 19:14 ` Andi Kleen
2000-12-29 22:40 ` Jakob Østergaard [this message]
2000-12-30 4:21 ` dean gaudet
2000-12-30 17:43 ` Andrea Arcangeli
2000-12-29 8:40 ` Jure Pecar
2000-12-29 11:37 ` Alan Cox
2000-12-29 15:36 ` Andrea Arcangeli
-- strict thread matches above, loose matches on Subject: below --
2000-12-29 16:38 Daniel R. Kegel
2000-12-29 21:23 ` Aaron Sethman
2000-12-29 19:29 Matt Liotta
2000-12-29 19:43 ` Andrea Arcangeli
2001-01-01 1:04 Jure Pecar
2001-01-01 21:56 Jure Pecar
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=20001229234048.B12468@unthought.net \
--to=jakob@unthought.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pegasus@telemach.net \
--cc=ppetru@ppetru.net \
--cc=thttpd@bomb.acme.com \
/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