Re: [patch 0/6] Guest page hinting version 6.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Thursday, March 13, 2008 - 11:41 am

Hugh Dickins wrote:

I like the idea and it seems basically sound, but unfortunately Xen 
won't be able to make use of it in the near term, because it doesn't 
support any kind of backing for guest domain memory.  There has been 
some thought about adding this kind of functionality to Xen.  Keir, Ian: 
do you think this kind of support in the kernel be useful to us?

One concern I have is that 4k is really a very fine grain.  We're 
thinking about moving Xen's memory management to operate in 2M chunk 
units, which would allow guests to directly use large pages with the 
corresponding reduction in TLB pressure.  One side-effect of this is 
that we'd need to change ballooning to be in 2M rather than 4k units in 
order to prevent physical memory fragmentation.

Page hinting at 4k resolution poses the same problem.  Would this 
technique still be useful operating on 2M chunks?  Certainly it seems 
less likely that you could easily get a whole 2M area with the same 
fine-grained properties that these patches track.  Would some kind of 
page/sub-page tracking be useful?

My other concern is just correctness over time on the Linux side.  We 
already have enough trouble keeping things like the pte and page 
structure state in sync, with resulting rare data-loss bugs.  Adding 
another layer which only applies in specific environments raises the 
possibility for new bugs to be un-noticed for a long time.  How can we 
structure the VM changes to make sure that its robust in the face of 
maintenance?

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Wed Mar 12, 6:21 am)
Re: [patch 0/6] Guest page hinting version 6., Rusty Russell, (Wed Mar 12, 3:41 pm)
Re: [patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Thu Mar 13, 2:47 am)
Re: [patch 0/6] Guest page hinting version 6., Hugh Dickins, (Thu Mar 13, 9:57 am)
Re: [patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Thu Mar 13, 10:14 am)
Re: [patch 0/6] Guest page hinting version 6., Zachary Amsden, (Thu Mar 13, 10:45 am)
Re: [patch 0/6] Guest page hinting version 6., Jeremy Fitzhardinge, (Thu Mar 13, 11:41 am)
Re: [patch 0/6] Guest page hinting version 6., Hugh Dickins, (Thu Mar 13, 11:55 am)
Re: [patch 0/6] Guest page hinting version 6., Andrea Arcangeli, (Thu Mar 13, 12:45 pm)
Re: [patch 0/6] Guest page hinting version 6., Zachary Amsden, (Thu Mar 13, 12:53 pm)
Re: [patch 0/6] Guest page hinting version 6., Zachary Amsden, (Thu Mar 13, 2:41 pm)
Re: [patch 0/6] Guest page hinting version 6., Jeremy Fitzhardinge, (Fri Mar 14, 11:30 am)
Re: [patch 0/6] Guest page hinting version 6., Zachary Amsden, (Fri Mar 14, 2:32 pm)
Re: [patch 0/6] Guest page hinting version 6., Jeremy Fitzhardinge, (Fri Mar 14, 2:37 pm)
Re: [patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Mon Mar 17, 2:21 am)
Re: [patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Tue May 6, 8:33 am)
Re: [patch 0/6] Guest page hinting version 6., Rik van Riel, (Tue May 6, 12:46 pm)
Re: [patch 0/6] Guest page hinting version 6., Zachary Amsden, (Tue May 6, 8:49 pm)
Re: [patch 0/6] Guest page hinting version 6., Martin Schwidefsky, (Wed May 7, 12:00 am)