Re: [PATCH] Fixing address space lock contention in 2.6.11

From: Andrew Morton
Date: Wed Mar 02 2005 - 21:55:37 EST


Peter Chubb <peterc@xxxxxxxxxxxxxxxxxx> wrote:
>
>
> Hi,
> As part of the Gelato scalability focus group, we've been running
> OSDL's Re-AIM7 benchmark with an I/O intensive load with varying
> numbers of processors. The current kernel shows severe contention on
> the tree_lock in the address space structure when running on tmpfs or
> ext2 on a RAM disk.
>

Yup.

Problem is, an rwlock is a little bit slower than a spinlock on a P4 due to
the buslocked unlock, and a lot of people have p4's.

Could you do some testing on a 2-way p4?

> Anyway, here's the patch to convert the address space lock to a
> rwlock, and allow multiple processes to scan an address-space's radix
> tree at once.

dude, make-tree_lock-an-rwlock.patch has been in -mm since May 2004. I've
just been waiting for someone to justify merging it.

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