Skip to contentSkip to conversation

Any way to access huge pages ?

DISCUSSION Peter Zaitsev 3 participants 3 messages Mar 7, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I'm wondering is there any way to access "large pages" (4MB) memory other than using shared memory ? For example can you do anonymous mmap to get access to large pages.

I would like to utilize large pages for MySQL buffer pool and other large caches, but would not like to use Shared memory for this purpose as it will complicate things for users.

Signature · 5 lines
Peter Zaitsev, Senior Support Engineer
MySQL AB, www.mysql.com

Meet the MySQL Team at User Conference 2004! (April 14-16, Orlando,FL)
  http://www.mysql.com/uc2004/
#1 lore raw

Peter> Hello, I'm wondering is there any way to access "large Peter> pages" (4MB) memory other than using shared memory ? For Peter> example can you do anonymous mmap to get access to large Peter> pages.

Peter> I would like to utilize large pages for MySQL buffer pool Peter> and other large caches, but would not like to use Shared Peter> memory for this purpose as it will complicate things for Peter> users.

Does mmap() on hugetlbfs do what you want? See
Documentation/vm/hugetlbpage.txt for details.

- Roland

#2 lore raw
In reply to Peter Zaitsev

well thats where you have hugetlbfs
and you mmap a file in /dev/hugetlbfs or whever it goes works fine

or shmfs but the its not large pages I guess, unless you have the bigpages feature in the vendor versions. like bigpages in rhas21 can be for shmfs.

Quoted 23 lines · Peter Zaitsev

Hello,

I'm wondering is there any way to access "large pages" (4MB) memory other than using shared memory ? For example can you do anonymous mmap to get access to large pages.

I would like to utilize large pages for MySQL buffer pool and other large caches, but would not like to use Shared memory for this purpose as it will complicate things for users.

Signature · 11 lines
Peter Zaitsev, Senior Support Engineer
MySQL AB, www.mysql.com

Meet the MySQL Team at User Conference 2004! (April 14-16, Orlando,FL)
  http://www.mysql.com/uc2004/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/