4 ms·
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
by raverbashing 1y ago
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
- fc417fc802 1y ago4K 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
- p_ing 1y ago1M is a huge waste of memory. Imagine writing out a one sentence note in notepad and the resulting file being 1M on disk.
- fc417fc802 1y agoYet 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.