Re: Is it possible to use 8K page size on a i386 pc?

From: H. Peter Anvin (hpa@zytor.com)
Date: Tue Aug 27 2002 - 19:26:05 EST


Luck, Tony wrote:
> H. Peter Anvin wrote:
>
>>Followup to: <200208271914.g7RJEQE07821@devserv.devel.redhat.com>
>>By author: Pete Zaitcev <zaitcev@redhat.com>
>>In newsgroup: linux.dev.kernel
>>
>>>You may run into trouble with something that calls mmap with
>>>a fixed address, with executables which have text sizes of
>>>odd number of small pages. I was told that these problems are
>>>fairly rare.
>>
>>Only 50% of all binaries are affected... that's fairly rare :)
>
> The majority of x86 linux binaries run on ia64 with a 16K
> pagesize (admittedly with some not-so-pretty code to fudge
> mmap/munmap addresses ... but it is proof that you can reduce
> the problems to "fairly rare").
>

It's proof that you can kluge around it. Part of the issue is with the
handling of the code versus data segment, which means you have to treat
(part of) the code segment as data.

Changing the i386 port to use > 4K pages would have to go through
similar contortions.

        -hpa

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



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:21 EST