Re: The performance and behaviour of the anti-fragmentation related patches

Mel Gorman
2007-03-02T16:59:01Z

On (01/03/07 16:44), Linus Torvalds didst pronounce:
>
>
> On Thu, 1 Mar 2007, Andrew Morton wrote:
> >
> > So some urgent questions are: how are we going to do mem hotunplug and
> > per-container RSS?
>
> Also: how are we going to do this in virtualized environments? Usually the
> people who care abotu memory hotunplug are exactly the same people who
> also care (or claim to care, or _will_ care) about virtualization.
>

I sent a mail out with a fairly detailed treatment of how RSS could be done.
Essentially, I feel that containers should simply limit the number of
pages used by the container, and not try and do anything magic with a
poorly defined concept like RSS. It would do this by creating a
"software zone" and taking pages from a "hardware zone" at creation
time. It has a similar affect to RSS limits except it's better defined.

In that setup, a virtualized environment would create it's own software
zone. It would hand that over to the guest OS and the guest OS could do
whatever it liked. It would be responsible for it's own reclaim and so on
and not have to worry about other containers (or virtualized environments
for that matter) or kswapd interfering with it.

> My personal opinion is that while I'm not a huge fan of virtualization,
> these kinds of things really _can_ be handled more cleanly at that layer,
> and not in the kernel at all. Afaik, it's what IBM already does, and has
> been doing for a while. There's no shame in looking at what already works,
> especially if it's simpler.
>
> Linus

--
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab