Re: [PATCH 2.5.43-mm2] New shared page table patch

From: Dave McCracken (dmccr@us.ibm.com)
Date: Sat Oct 19 2002 - 14:36:17 EST


--On Saturday, October 19, 2002 15:17:31 -0400 Bill Davidsen
<davidsen@tmr.com> wrote:

> Don't tease, what did that do for performance? I see that someone has
> already posted a possible problem, and the code would pass for complex for
> most people, so is the gain worth the pain?

I posted some fork/exec/exit microbenchmark results last week, in which for
large processes fork becomes much faster, and exec/exit become much faster
for processes with lots of shared memory.

As for results from larger benchmarks, those haven't been done. The TPC-H
test we used was primarily for stability testing, and secondarily to see if
we could reduce page table/pte_chain memory overhead, which we did. The
pte_chain overhead was reduced by close to a factor of 100.

This patch isn't primarily a performance patch. It does help for some
things, notably the fork/exec/exit cases mentioned above. But its primary
goal is to reduce the amount of memory wasted in page tables mapping the
same pages into multiple processes. We have seen an application that
consumed on the order of 10 GB of page tables to map a single shared memory
chunk across hundreds of processes. Shared page tables would eliminate
this overhead.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:49 EST