From: Dan Kegel <dank@alumni.caltech.edu>
To: manfred@colorfullife.com, linux-kernel@vger.kernel.org
Subject: re: [PATCH] up to 50% faster sys_poll()
Date: Sat, 06 Jan 2001 13:58:32 -0800 [thread overview]
Message-ID: <3A579508.CF755874@alumni.caltech.edu> (raw)
Manfred (manfred@colorfullife.com) wrote:
> sys_poll spends around 1/2 of the execution time allocating / freeing a
> few bytes temporary memory.
> The attached patch tries to avoid these allocation by using the stack -
> usually only a few bytes are needed, kmalloc is used for the rest.
> The result: one poll of stdin is down from 1736 cpu ticks to 865 cpu
> ticks (Pentium II/350 SMP, SMP kernel)
Tested with poll() microbenchmark from
http://www.kegel.com/dkftpbench/Poller_bench.html
time in microsec to find a single active pipe among N pipes
on a 650 MHz dual Pentium III using poll():
number of pipes
kernel 100 1000 10000
---------------------------------
2.4.0-t10pre4 49 1184 14660
2.4.0 48 1162 14702
2.4.0-pp 48 1103 14205
2.4.0-pp is with Manfred's patch. Seems to be a 4-6% improvement
for large numbers of pipes, no change for 100 pipes.
Hope that was an appropriate test.
- Dan
-
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 reply other threads:[~2001-01-06 21:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-06 21:58 Dan Kegel [this message]
[not found] ` <3A57A668.7D4D8E46@colorfullife.com>
2001-01-07 0:13 ` [PATCH] up to 50% faster sys_poll() Dan Kegel
-- strict thread matches above, loose matches on Subject: below --
2001-01-05 13:28 Manfred
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=3A579508.CF755874@alumni.caltech.edu \
--to=dank@alumni.caltech.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.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