[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <492DDC0B.8060804@cosmosbay.com>
Date: Thu, 27 Nov 2008 00:30:19 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: Ingo Molnar <mingo@...e.hu>
CC: David Miller <davem@...emloft.net>,
"Rafael J. Wysocki" <rjw@...k.pl>, linux-kernel@...r.kernel.org,
kernel-testers@...r.kernel.org, Mike Galbraith <efault@....de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Linux Netdev List <netdev@...r.kernel.org>,
Christoph Lameter <cl@...ux-foundation.org>,
Christoph Hellwig <hch@...radead.org>
Subject: [PATCH 1/6] fs: Introduce a per_cpu nr_dentry
Adding a per_cpu nr_dentry avoids cache line ping pongs between
cpus to maintain this metric.
We centralize decrements of nr_dentry in d_free(),
and increments in d_alloc().
d_alloc() can avoid taking dcache_lock if parent is NULL
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
---
fs/dcache.c | 55 ++++++++++++++++++++++++++++---------------
include/linux/fs.h | 2 +
kernel/sysctl.c | 2 -
3 files changed, 40 insertions(+), 19 deletions(-)
View attachment "per_cpu_nr_dentry.patch" of type "text/plain" (4783 bytes)
Powered by blists - more mailing lists