* Selecting MMU page size for an architecture
@ 2021-12-22 22:34 Sergey Organov
2022-01-24 2:05 ` Jon Masters
0 siblings, 1 reply; 3+ messages in thread
From: Sergey Organov @ 2021-12-22 22:34 UTC (permalink / raw)
To: linux-kernel
Hello,
We are building custom CPU and have an option to choose either 4K or 16K
MMU minimum page size that will then be fixed in the hardware. For
reasons unrelated to the Linux kernel we'd prefer 16K, but I have some
doubts.
What pros and cons for kernel and user-space operation 16K pages will
have over more usual 4K pages? Anything we should worry about?
Thanks,
-- Sergey Organov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Selecting MMU page size for an architecture
2021-12-22 22:34 Selecting MMU page size for an architecture Sergey Organov
@ 2022-01-24 2:05 ` Jon Masters
2022-01-24 13:41 ` Sergey Organov
0 siblings, 1 reply; 3+ messages in thread
From: Jon Masters @ 2022-01-24 2:05 UTC (permalink / raw)
To: Sergey Organov; +Cc: lkml
Hey Sergey,
On Thu, Dec 23, 2021 at 8:15 AM Sergey Organov <sorganov@gmail.com> wrote:
> We are building custom CPU and have an option to choose either 4K or 16K
> MMU minimum page size that will then be fixed in the hardware. For
> reasons unrelated to the Linux kernel we'd prefer 16K, but I have some
> doubts.
>
> What pros and cons for kernel and user-space operation 16K pages will
> have over more usual 4K pages? Anything we should worry about?
If you want maximum compatibility with existing source written for
industry at large (e.g. x86/Arm) and even the assumptions in other
devices (and their firmware) you might connect (PCI, or even on-SoC)
then you'll want to go with 4K. However, if I were designing a brand
new architecture today and didn't care about legacy, I would
definitely consider following Apple into 16K.
Jon.
--
Computer Architect
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Selecting MMU page size for an architecture
2022-01-24 2:05 ` Jon Masters
@ 2022-01-24 13:41 ` Sergey Organov
0 siblings, 0 replies; 3+ messages in thread
From: Sergey Organov @ 2022-01-24 13:41 UTC (permalink / raw)
To: Jon Masters; +Cc: lkml
Hi Jon,
Jon Masters <jcm@jonmasters.org> writes:
> Hey Sergey,
>
> On Thu, Dec 23, 2021 at 8:15 AM Sergey Organov <sorganov@gmail.com> wrote:
>
>> We are building custom CPU and have an option to choose either 4K or 16K
>> MMU minimum page size that will then be fixed in the hardware. For
>> reasons unrelated to the Linux kernel we'd prefer 16K, but I have some
>> doubts.
>>
>> What pros and cons for kernel and user-space operation 16K pages will
>> have over more usual 4K pages? Anything we should worry about?
>
> If you want maximum compatibility with existing source written for
> industry at large (e.g. x86/Arm) and even the assumptions in other
> devices (and their firmware) you might connect (PCI, or even on-SoC)
> then you'll want to go with 4K. However, if I were designing a brand
> new architecture today and didn't care about legacy, I would
> definitely consider following Apple into 16K.
I don't think we will have issues with device drivers because of this,
but even if so, I believe we'll be able to fix that, so I get your
advice as +1 in favor of 16K pages.
Thanks for sharing!
-- Sergey Organov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-24 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 22:34 Selecting MMU page size for an architecture Sergey Organov
2022-01-24 2:05 ` Jon Masters
2022-01-24 13:41 ` Sergey Organov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.