2004-03-07 05:22:15

by Peter Zaitsev

[permalink] [raw]
Subject: Any way to access huge pages ?

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.


--
Peter Zaitsev, Senior Support Engineer
MySQL AB, http://www.mysql.com

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


2004-03-07 05:56:33

by Roland Dreier

[permalink] [raw]
Subject: Re: Any way to access huge pages ?

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

2004-03-07 06:06:22

by Wim Coekaerts

[permalink] [raw]
Subject: Re: Any way to access huge pages ?

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.

On Sat, Mar 06, 2004 at 09:21:28PM -0800, Peter Zaitsev wrote:
> 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.
>
>
> --
> Peter Zaitsev, Senior Support Engineer
> MySQL AB, http://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/