mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Any way to access huge pages ?
@ 2004-03-07  5:21 Peter Zaitsev
  2004-03-07  5:56 ` Roland Dreier
  2004-03-07  6:06 ` Wim Coekaerts
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Zaitsev @ 2004-03-07  5:21 UTC (permalink / raw)
  To: linux-kernel

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, www.mysql.com

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any way to access huge pages ?
  2004-03-07  5:21 Any way to access huge pages ? Peter Zaitsev
@ 2004-03-07  5:56 ` Roland Dreier
  2004-03-07  6:06 ` Wim Coekaerts
  1 sibling, 0 replies; 3+ messages in thread
From: Roland Dreier @ 2004-03-07  5:56 UTC (permalink / raw)
  To: Peter Zaitsev; +Cc: linux-kernel

    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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any way to access huge pages ?
  2004-03-07  5:21 Any way to access huge pages ? Peter Zaitsev
  2004-03-07  5:56 ` Roland Dreier
@ 2004-03-07  6:06 ` Wim Coekaerts
  1 sibling, 0 replies; 3+ messages in thread
From: Wim Coekaerts @ 2004-03-07  6:06 UTC (permalink / raw)
  To: Peter Zaitsev; +Cc: linux-kernel

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, 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-07  6:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-07  5:21 Any way to access huge pages ? Peter Zaitsev
2004-03-07  5:56 ` Roland Dreier
2004-03-07  6:06 ` Wim Coekaerts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®