* 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* Re: the trouble with large pages
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
2007-09-07 15:02 ` Anthony Liguori
2 siblings, 0 replies; 5+ messages in thread
From: Izik Eidus @ 2007-09-07 4:53 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-ppc-devel, kvm-devel
Hollis Blanchard wrote:
> 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?
>
there is already kvm patch that move the memory allocation to userspace
you can check it out.
it will be merged to kvm as soon as some swapping issues will be address...
> 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.
>
>
-------------------------------------------------------------------------
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
* Re: the trouble with large pages
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:02 ` Anthony Liguori
2 siblings, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2007-09-07 15:00 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-ppc-devel, 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.
> 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.
That seems like the best plan, for a first shot anyway. Also,
even when you do support backing 256MB pages with 256MB pages,
you probably still want the small-page backing as a backup in
case you run out of large pages.
Segher
-------------------------------------------------------------------------
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* Re: the trouble with large pages
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
@ 2007-09-07 15:02 ` Anthony Liguori
2 siblings, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2007-09-07 15:02 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-ppc-devel, kvm-devel
On Fri, 2007-09-07 at 09:40 -0500, Hollis Blanchard wrote:
> 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.
This is what is done on x86.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
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