Re: Ok, making ready for pre-2.4 and code-freeze..

Chris Wedgwood (cw@f00f.org)
Wed, 22 Dec 1999 09:58:07 +1300


> The plan is support larger page sizes for MIPS but not in a way that is
> visible to userspace but only use the available page sizes to reduce
> the number of TLB operations.

So things like:

/* mmap a file, hopefully this will use a small number of
large pages */

ptr = mmap(NULL,262144ul,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0);

/* protect middle part of file -- will probably mean the
pages get remapped into small pages too */

err = mprotect(ptr + 65536,pgsize,PROT_NONE);

will make the mm code to do clever tricks? Surely if this operation
is expensive (perhaps it need not be?) dynamic loaders and such will
pay the price?

-cw

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