Re: [PATCH] Allow to disable shmem.o

From: Hugh Dickins
Date: Sun Aug 08 2004 - 14:02:53 EST


On Sun, 8 Aug 2004, Andrew Morton wrote:
> Hugh Dickins <hugh@xxxxxxxxxxx> wrote:
> >
> > But somehow I still prefer Matt's patch, which offers a lot more.
>
> Me too - it's sneaky.
>
> I suspect it's more SMp scalable than shmem.c too?

I bet it is (unless it falls into generic filepage overheads
which shmem is skating past e.g. attempts to readahead).

Though I hope not notably more so by the time I've finished
reworking shmem_getpage (was on the right track yesterday,
but other issues have intervened today).

They should both come down to find_get_page (find_lock_page in
shmem.c's case, only an issue when contention on same page),
alloc_page, add_to_page_cache: contention on tree_lock.

Its main deficiency (aside from the lack of swap use, which in
some contexts is a plus) is its lack of resource limiting.

Hugh

-
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/