tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Balloon driver.



On 9 July 2010 20:27, Christoph Egger <Christoph_Egger%gmx.de@localhost> wrote:
> On Friday 09 July 2010 16:38:58 Jean-Yves Migeon wrote:
>> On 09.07.2010 10:18, Christoph Egger wrote:
>> > I get this:
>> >
>> > # sysctl kern.xen
>> > kern.xen.balloon.current = 131072
>> > kern.xen.balloon.target = 131072
>> >
>> > So for xentools, this is fine but the values are incorrect
>> > as I boot xen kernel with dom0_mem=512m.
>> > The correct value for both current and target is 524288.
>>
>> Values are in pages not bytes (or multiple thereof).
>
> ugh. The xentools expect the values in bytes or kb.
>
> Christoph
>

The driver does a fairly arbitrary roundoff for incoming memsize in KB
via xenbus local/memory/target. I'm assuming that should be ok here
too. Will whip up a patch in a bit (unless either of you beat me to
it).

-- 
~Cherry


Home | Main Index | Thread Index | Old Index