From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] hashed waitqueues, somewhat cleaner
Date: Sun, 6 Jan 2002 18:34:17 -0800 [thread overview]
Message-ID: <20020106183417.L10326@holomorphy.com> (raw)
Some new versions of the hashed waitqueues are now available:
ftp://ftp.kernel.org/pub/linux/kernel/people/wli/vm/struct_page/waitq-2.4.17-rmap10c-1
This includes:
(1) Manual common subexpression elimination of page_waitqueue() calls
(2) Use a 64-bit Fibonacci hashing prime conditional on BITS_PER_LONG
(3) Storing wait_table_shift instead of wait_table_bits to reduce
arithmetic within the hash function
(4) Eliminating the masking operation within the hash function, as
the shifting already zeroes the high-order bits.
(5) Eliminating explicit references to struct page ->wait outside
of the VM.
Future directions:
(1) Using a non-linear function to size the waitqueue table given the
size of a zone, as the demand for waitqueues does not appear to
scale linearly with the size of memory.
(2) Finding bit-sparse Fibonacci hashing multipliers for machines with
slow integer multiplies (so it can be optimized to shift/add
sequences on those machines).
I'll followup shortly after rediffing against 2.4.17-mainline.
Cheers,
Bill
next reply other threads:[~2002-01-07 2:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-07 2:34 William Lee Irwin III [this message]
2002-01-07 12:33 ` [PATCH] hashed waitqueues, somewhat cleaner William Lee Irwin III
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=20020106183417.L10326@holomorphy.com \
--to=wli@holomorphy.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