On Fri, Sep 29, 2006 at 04:59:36PM +0800, Xu, Anthony wrote:
> >> I'm using rhel4-u2 as guest, by default, rhel4-u2 set rr4.ps=256M.
> >>
> >> For latest kernel who supports hugetlbfs, the biggest page size is 4G.
> >>
> >> The goals from me is supporting 256M, if we can do that, and then
> >> supporting huger tlb
> >like 1G or 4G is trivial. :-)
> >
> >I wanted to say that a implementation for hugetlbfs may be different
> >from a implementation for large page to map kernel.
> >So we should describe not only page-size, but also its purpose.
> >I re-summarize the goals. What do you think?
> >
> >- Support 16MB large page size to map kernel area.
> > Although Linux can be configured to use 64MB page size to map kernel,
> > we won't support 64MB page size. (at least for first prototype)
> > It would be nice to support both kernel mapping page size, 16MB and 64MB,
> > but it might be addressed by second phase.
> > A domain uses only one of them. Potentially different domains may use
> > different kernel mapping page size.
> > e.g. domainA uses 16MB to map kernel, domainB uses 64MB to map kernel.
> >
> >- Support hugetlbfs with 256MB page size.
> > If possible, it would be nice to support 1GB page size or 4GB page size.
> > The huge page size is determined by Linux boot time options and
> > only single page size from 256MB, 1GB, 4GB is used by hugetlbfs of a
> > domain.
> > Potentially different domains may use different huge page size.
> > e.g. domainA uses 256MB huge page size, domainB uses 1GB huge page size.
> > For first prototype, it is reasonable to support only 256MB huge page size.
> >
> >- page fragmentation should be addressed.
> > This isn't addressed at the first step.
> > When large contiguous page allocation fails, fall back path is executed
> > with normal page size, 16KB, possibly at degraded performance.
> > Or try a sort of defragmentation to create a large contiguous memory.
>
>
> How does XEN support 16MB and 256M in the same domain?
This is an issue.
Assuming that fall back path should be implemented eventually
and we want to support more than two page size (64MB, 1GB, 4GB).
we have to distinguish page-size of given gpfn page somehow.
> For HVM side, there is no choice; XEN must allocate 256M contiguous memory
> chunks for HVM domain.
Here I don't agree with you.
If we can detect 265M page use by heuristic, xen/ia64 reallocates
256MB contiguous memory, pause the domain, exchange memory, then
unpause the domain.
This event happens very rare so that it is acceptable to pause/unpase
domain.
Then, how can it be detected?
Currently I have very vague idea though.
For example, tlb insert with 256MB page size on rr4 can be detected.
Does this sound too complex for the first prottype?
> I can't wait to see how much performance XEN/IA64 can get from supporting
> huge page.
> BTW is there any bench march on IA64 using huge page?
I don't know. But such a benchmark is definitively needed.
--
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|