From: Andrew Morton <akpm@digeo.com>
To: Peter Wong <wpeter@us.ibm.com>
Cc: linux-mm@kvack.org, riel@nl.linux.org, akpm@zip.com.au,
mjbligh@us.ibm.com, wli@holomorphy.com,
dmccr@us.ibm.comgh@us.ibm.com, Bill Hartner <bhartner@us.ibm.com>,
Troy C Wilson <wilsont@us.ibm.com>
Subject: Re: Performance of Readv and the Cost of Revesemaps Under Heavy DB Workloads
Date: Mon, 09 Sep 2002 13:30:34 -0700 [thread overview]
Message-ID: <3D7D04EA.8BC7AF31@digeo.com> (raw)
In-Reply-To: <OFB460955F.DB2A4AF7-ON85256C2F.006CDBB2@pok.ibm.com>
Peter Wong wrote:
>
> All,
>
> I have measured a decision support workload using 2.4.17-based
> kernel, 2.5.31-based kernel, and 2.5.32-based kernel, all of which
> use the readv patch made available by Janet Morgan. Janet's patch is
> also included in Andrew Morton's mm patch, which can be found at
> http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.32/2.5.32-mm2/.
> I got the following results.
>
> ---------------------------------------------------------------
> Database Size: 100 GB
>
> 2417RV: 2.4.17 (kernel.org)
> + lse04-rc1.diffs
> - bounce patch by Jens Axboe
> - io_reqeust_lock patch by Jonathan Lahr
> - rawvary patch by Badari Pulavarty
> - readv patches by Janet Morgan
> + TASK_UNMAPPED_BASE = 0x10000000
> + PAGE_OFFSET = 0xD0000000
>
> 2531RV: 2.5.31 (kernel.org)
> + readv patch from Janet Morgan
> + TASK_UNMAPPED_BASE = 0x10000000
> + PAGE_OFFSET = 0xC0000000
>
> 2532RV: 2.5.32 (kernel.org)
> + mm-2 patch from Andrew Morton which
> includes Janet's readv patch
> + TASK_UNMAPPED_BASE = 0x10000000
> + PAGE_OFFSET = 0xC0000000
>
> Based upon the throughput rate,
> 2531RV is 99.8% of 2417RV;
> 2532RV is 100% of 2417RV.
Well that's a bit sad. I assume the test was IO-bound? Did
you measure the CPU utilisation for the run as well?
What is your overall take on the performance of 2.5 with respect
to 2.4 and, indeed, other operating systems?
> There are 110 prefetchers for the runs, and ~2 GB of shared
> memory space used by the database, i.e., ~500,000 pages. With Andrew's
> mm patch, the maximum number of reversemaps reaches 43.7 millions. That
> is, each page is used by ~87 processes. With 8 bytes per reversemap,
> it costs ~350MB of the kernel memory, which is quite significant. Note
> that the database system used forks processes and does not use
> pthreads.
Look in /proc/slabinfo to know the exact amount of memory which the
reversemaps are using.
You don't mention whether you're using CONFIG_HIGHPTE. Probably
not; I think it was broken in that kernel.
- CONFIG_HIGHPTE will reduce ZONE_NORMAL pressure by moving pagetables
into highmem.
- CONFIG_HIGHPTE+CONFIG_HIGHMEM64G will not be as favourable, because
struct page gains 4 bytes and the reverse mapping objects double
in size.
If your machine has more than 4G (does it?) then you'll need
CONFIG_HIGHMEM64G=y and CONFIG_HIGHPTE=y.
Please, God: don't make us put pte_chains in highmem as well :(
--
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/
next prev parent reply other threads:[~2002-09-09 20:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-09 20:07 Peter Wong
2002-09-09 20:30 ` Andrew Morton [this message]
2002-09-10 18:25 Peter Wong
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=3D7D04EA.8BC7AF31@digeo.com \
--to=akpm@digeo.com \
--cc=akpm@zip.com.au \
--cc=dmccr@us.ibm.comgh \
--cc=linux-mm@kvack.org \
--cc=mjbligh@us.ibm.com \
--cc=riel@nl.linux.org \
--cc=wli@holomorphy.com \
--cc=wpeter@us.ibm.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