[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091218093849.8ba69ad9.kamezawa.hiroyu@jp.fujitsu.com>
Date: Fri, 18 Dec 2009 09:38:49 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Cc: Minchan Kim <minchan.kim@...il.com>,
Andi Kleen <andi@...stfloor.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>, cl@...ux-foundation.org,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"mingo@...e.hu" <mingo@...e.hu>
Subject: [RFC 0/4] speculative page fault (Was Re: [mm][RFC][PATCH 0/11] mm
accessor updates.
On Wed, 16 Dec 2009 19:33:15 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> wrote:
> > After we see the further works, let us discuss this patch's value.
> >
> Ok, I'll show new version of speculative page fault.
>
Here is a one-day patch for speculative page fault. Maybe someone can do
better than me.
- For what direction someone fixes mmap_sem, this result seems to be a good
for motivation.
- Because lockless vma lookup can be a big patch, I avoid that and just uses
caching. Then, this just helps page fault.
In that sense, this patch is imcomplete and not very good.
Test program and unified diff is attached. After reading all e-mails,
I'd like to wait for another idea pops up.
This test program is the best case for this patch and doesn't reflects any
real-world application behavior.
tested on x86-64, 8core, 2socket machine.
cache-miss/page fault are 32.67, 11.4, 10.6
[Before patch (2.5.32-mmotm-Dec8)
[root@...extal memory]# /root/bin/perf stat -e page-faults,cache-misses ./multi-fault-all-split 8
Performance counter stats for './multi-fault-all-split 8':
15774882 page-faults
515407936 cache-misses
60.011299493 seconds time elapsed
[After speculative page fault]
[root@...extal memory]# /root/bin/perf stat -e page-faults,cache-misses ./multi-fault-all-split 8
Performance counter stats for './multi-fault-all-split 8':
39800221 page-faults
454331251 cache-misses
60.002859027 seconds time elapsed
[After speculative page fault + per-thread mm_counter (already posted)]
[root@...extal memory]# /root/bin/perf stat -e page-faults,cache-misses ./multi-fault-all-split 8
Performance counter stats for './multi-fault-all-split 8':
41025269 page-faults
436365676 cache-misses
60.007787788 seconds time elapsed
Bye.
-Kame
View attachment "snap.diff" of type "text/plain" (123748 bytes)
View attachment "multi-fault-all-split.c" of type "text/x-csrc" (1850 bytes)
Powered by blists - more mailing lists