3 ms·
Nah, usually can't have huge pages. Almost certainly can't have giant pages. Can't even fit all L3$ capacity into the L2 TLB if done via 4k pages...
by namibj 8mo ago
Nah, usually can't have huge pages. Almost certainly can't have giant pages.
Can't even fit all L3$ capacity into the L2 TLB if done via 4k pages...
- nixon_why69 8mo agoI hadn't thought of that but apparently Linux at least has had support for a while, according to manpage? https://man7.org/linux/man-pages/man2/mmap.2.html https://man7.org/linux/man-pages/man2/mmap.2.html
- namibj 7mo agommap is also for non-disk-backed memory: Your link refers to https://www.kernel.org/doc/Documentation/admin-guide/mm/hugetlbpage.rst https://www.kernel.org/doc/Documentation/admin-guide/mm/huge... , which contains this tidbit: > If the user applications are going to request huge pages using mmap system call, then it is required that system administrator mount a file system of type hugetlbfs:: Note this otherwise has semantics similar to tmpfs; notably, it's usage is mutually exclusive with being able to supply a disk file fd to mmap!