Pages: Difference between revisions
| Line 32: | Line 32: | ||
* There appears, as of Linux 2.6.30 and glibc 2.9, to exist no way to use <tt>shm_open(3)</tt> with huge pages under Linux | * There appears, as of Linux 2.6.30 and glibc 2.9, to exist no way to use <tt>shm_open(3)</tt> with huge pages under Linux | ||
** One course, of can, directly <tt>open(2)</tt> and <tt>mmap(2)</tt> a file on a hugetlbfs filesystem | ** One course, of can, directly <tt>open(2)</tt> and <tt>mmap(2)</tt> a file on a hugetlbfs filesystem | ||
* If <tt>[[sysfs]]</tt> is mounted, each supported large pagesize will have a directory in <tt>/sys/kernel/mm/hugepages/</tt>: | |||
<pre>[wopr](0) $ ls /sys/kernel/mm/hugepages/hugepages-2048kB/ | |||
free_hugepages nr_overcommit_hugepages surplus_hugepages | |||
nr_hugepages resv_hugepages | |||
[wopr](0) $</pre> | |||
===Solaris=== | ===Solaris=== | ||
* Essential paper: "[http://www.sun.com/blueprints/0304/817-5917.pdf Supporting Multiple Page Sizes in the Solaris Operating System]" (March 2004) | * Essential paper: "[http://www.sun.com/blueprints/0304/817-5917.pdf Supporting Multiple Page Sizes in the Solaris Operating System]" (March 2004) | ||