Re: [PATCH v7 09/16] SUNRPC/cache: use new hashtable implementation

From: Andrew Morton
Date: Mon Oct 29 2012 - 12:28:06 EST


On Mon, 29 Oct 2012 07:49:42 -0700 Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> Because there's no reason to believe that '9' is in any way a worse
> random number than something page-shift-related, is there?

9 is much better than PAGE_SHIFT. PAGE_SIZE can vary by a factor of
16, depending on config.

Everyone thinks 4k, and tests only for that. There's potential for
very large performance and behavior changes when their code gets run
on a 64k PAGE_SIZE machine.
--
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/