public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* the trouble with large pages
@ 2007-09-07 14:40 Hollis Blanchard
  2007-09-07  4:53 ` Izik Eidus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hollis Blanchard @ 2007-09-07 14:40 UTC (permalink / raw)
  To: kvm-ppc-devel; +Cc: kvm-devel

The PowerPC 440 Linux kernel uses 256MB pages for the linear mapping.
When we run that as a guest, those pages would of course need to be
physically contiguous in the host.

I think long-term the KVM plan is to move memory allocation out of the
kernel (where it currently uses vmalloc) into userspace, with the idea
being that userspace could allocate memory via hugetlbfs. Anybody tried
hugetlbfs on 440 or e500?

A poor-man's equivalent might be to limit the host memory to e.g. 256MB,
then have userspace mmap(/dev/ram) starting there.

Another possibility is to fake out guest large pages by actually using
small pages on the host, and handle the extra faults in KVM without
notifying the guest.

-- 
Hollis Blanchard
IBM Linux Technology Center


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

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

end of thread, other threads:[~2007-09-07 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-07 14:40 the trouble with large pages Hollis Blanchard
2007-09-07  4:53 ` Izik Eidus
2007-09-07 15:00 ` Segher Boessenkool
     [not found]   ` <cbb4e3dae13d87254c87d7d6746e4403-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2007-09-07 15:04     ` Anthony Liguori
2007-09-07 15:02 ` Anthony Liguori

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