Re: [TOMOYO #10 (linux-next) 4/8] Memory and pathname managementfunctions.
From: Kentaro Takeda
Date: Thu Oct 09 2008 - 03:18:09 EST
KAMEZAWA Hiroyuki wrote:
>> +
>> +#define MAX_HASH 256
>> +
> Maybe based on typical workload and usage but
> It's better to write why hash size is fixed size of "256", when you
> use hash.
TOMOYO uses this hash only when appending a string into the string
table. Frequency of appending strings is very low. So we don't need
large (e.g. 64k) hash size. 256 will be sufficient.
I'll append above as a comment.
Regards,
--
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/