[linux-mm-cc] [PATCH] module param size too big fix up

Nitin Gupta nitingupta910 at gmail.com
Tue Apr 29 00:30:27 EDT 2008


On Tue, Apr 29, 2008 at 12:31 AM, John McCabe-Dansted <gmatht at gmail.com> wrote:
> On Mon, Apr 28, 2008 at 5:36 PM, Nai Xia <nai.xia at gmail.com> wrote:
>


> We could probably eliminate the need for compcache.size by going direct from
> _kbytes to num_pages, allowing ~4TB devices. Using only num_pages  would
> increase the max size of compcache to ~16TB and simplify the compcache code
> somewhat. Unfortunately it seem  hard to get at PAGE_SIZE from userspace.
>


There are lot more issues with increasing size to such huge values.
For e.g. table[] is currently a simple array which will eat all memory
for such large
compcache device sizes but is obviously very fast and reasonably
memory efficient for
small sizes.

- Nitin


More information about the linux-mm-cc mailing list