Re: [RFC] dcache scalability patch (2.4.17)

Maneesh Soni (maneesh@in.ibm.com)
Mon, 15 Jul 2002 13:19:33 +0530


On Fri, Jul 12, 2002 at 10:29:53AM -0400, Alexander Viro wrote:
>
>
> On Fri, 12 Jul 2002, Maneesh Soni wrote:
>
> > Here is the dcache scalability patch (cleaned up) as disscussed in
> > the previous post to lkml by Dipankar. The patch uses RCU for doing fast
> > dcache lookup. It also does lazy updates to lru list of dentries to
> > avoid doing write operations while doing lookup.
>
> Where is
> * version for 2.5.<current>
> * analysis of benefits in real-world situations for 2.5 version?
>
> Patch adds complexity and unless you can show that it gives significant
> benefits outside of pathological situations, it's not going in.
>
> Note: measurements on 2.4 do not make sense; reduction of cacheline
> bouncing between 2.4 and 2.5 will change the results anyway and
> if any of these patches are going to be applied to 2.4, reduction of
> cacheline bouncing on ->d_count is going to go in before that one.

Hi Viro,

The 2.4 tests we did, also has fastwalk patch ported from 2.5. Though
fastwalk has performed better (throughput improved by 1%) than base 2.4
but I think because of increased hold and wait times on dcache_lock, results
are not as good as using only dcache_rcu.
http://marc.theaimsgroup.com/?l=linux-kernel&m=102645767914212&w=2

For 2.5 I tried to merge fastwalk and dcache_rcu but both doesnot seem
to compliment each other. fastwalk takes dcache_lock much earlier than
d_lookup.

On 2.5 we get better results from dcache_rcu when we reomve
fastwalk and put the dcache code back to 2.5.10ish level of code. Probably
this is not the correct way as it involves lots of code changes and we need
to workout some other way.

There are some numbers from 2.5.20-base vs dcache_rcu(no fastwalk) done by
Anton Blanchard with dbench.
http://samba.org/~anton/linux/2.5.20/

Regards,
Maneesh

-- 
Maneesh Soni
IBM Linux Technology Center, 
IBM India Software Lab, Bangalore.
Phone: +91-80-5044999 email: maneesh@in.ibm.com
http://lse.sourceforge.net/locking/rcupdate.html
-
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/