Re: [RFC] Arch option to touch newly allocated pages

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Mar 07 2002 - 13:21:50 EST


Pavel Machek wrote:

> Hi!
>
>
>>>You say 'at once'. Does UML somehow give pages back to the host when they're
>>>freed, so the pages that are no longer used by UML can be discarded by the
>>>host instead of getting swapped?
>>>
>>Doesn't seem to but it looks like madvise might be enough to make that
>>happen. That BTW is an issue for more than UML - it has a bearing on
>>running lots of Linux instances on any supervisor/virtualising system
>>like S/390
>>
>
> I just imagined hardware which supports freeing memory -- just do not
> refresh it any more to conserve power ;-))).
>

> Granted, it would probably only make sense in big chunks, like 2MB or
> so... It might make sense for a PDA...
> Pavel

Unlikely. Also, if you're using ECC, then that really screws with you.

However, if it is an issue for more than UML (I still consider the
particular UML case "in case you have a UML on a tmpfs set up by an
idiot admin" completely bogus) then it's another issue. The S/390 issue
is real.

        -hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:01:06 EST