News for hackers. Stuff that matters.
Re:Bought an Ampere Altra System by raverbashing on Monday June 30, 2025 @05:55AM (#44421363)
Yes there are

(as a starting point 4k is a "page size for ants" in 2025 - 4MB might be too much however)

But the bigger the page the less TLB entries you need, and less entries in your OS data structures managing memory, etc

Re:Bought an Ampere Altra System by fc417fc802 on Monday June 30, 2025 @07:46AM (#44422104)
4K seems appropriate for embedded applications. Meanwhile 4M seems like it would be plenty small for my desktop. Nearly every process is currently using more than that. Even the lightest is still coming in at a bit over 1M
Re:Bought an Ampere Altra System by p_ing on Monday June 30, 2025 @12:55PM (#44425462)
1M is a huge waste of memory.

Imagine writing out a one sentence note in notepad and the resulting file being 1M on disk.

Re:Bought an Ampere Altra System by fc417fc802 on Monday June 30, 2025 @06:00PM (#44428367)
Yet when I reference the running processes on my desktop something like 90% of them have more than 16M resident. So it doesn't appear that even an 8M page size would waste much on a modern desktop during typical usage.

If I'm mistaken about some low level detail I'd be interested to learn more.