From: Ethan Solomita <solo@google.com>
To: pj@sgi.com
Cc: linux-mm@kvack.org
Subject: zonelist cache performance
Date: Fri, 12 Jan 2007 17:40:14 -0800 [thread overview]
Message-ID: <45A8387E.1050705@google.com> (raw)
improve performance with changes to the zonelist cache. But I don't
claim to have tested on an extensive list of platforms and/or
benchmarks, so I was hoping for feedback.
The proposal is, essentially, to rip out the zonelist cache and
replace it with a single int which caches the index i into the
zonelist[i] for the most recently allocated page. Any future attempt to
allocate a page starts at zonelist[i], with a failure reverting to a
full scan of all zonelists. The theory is that this will succeed most of
the time, and as such it should be as lightweight as possible.
zonelist_cache is only fast if zonelist[0] has a free page.
In the context of fake numa where numa=fake=<n> has a large <n>,
zonelist[0] may well fill up quickly yet the system still has a lot of
free memory. As such, starting the allocation at zonelist[i] seems
faster. In the event the allocation fails, we do a slow, full search, so
this only works if that's the rare case.
As to the performance improvement, it improved kernbench by 6% with
numa=fake=64 and 2% without fake numa.
Thanks,
-- Ethan
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2007-01-13 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=45A8387E.1050705@google.com \
--to=solo@google.com \
--cc=linux-mm@kvack.org \
--cc=pj@sgi.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