Skip to contentSkip to conversation

RFC: initial libxl support for xenpaging

PATCH Andres Lagar-Cavilla 2 participants 2 messages Feb 17, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 35 lines

Date: Fri, 17 Feb 2012 16:43:18 +0000
From: Ian Campbell <[email protected]>
To: Olaf Hering <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [Xen-devel] [PATCH] RFC: initial libxl support for
xenpaging
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"

Quoted 8 lines · Olaf Hering
Quoted 2 lines · Ian Campbell

That's exactly the sort of complexity we should not be exposing to the end user!

Of course not as is!
Right now one has to understand two values, maxmem and the size of the memhog called "guest balloon driver". Paging adds a third one.

Right, but that third one should not be "paging size" or anything like that, just like they should not really have to understand what "a memhog called "guest balloon driver"" is. Even today the thing we actually expose is just called "memory" in the configuration.

The user cares about three things:
1. The maximum amount of memory a guest can use.
2. The amount of memory which the guest thinks it has.
3. The actual amount of memory the guest has

The fact that these are implemented by some combination of paging and/or ballooning is not really of interest to the user. They only need to be aware that if #3 < #2 then there is a performance cost and that even if #2==#3 a guest which tries to use more memory than that will be suffer a performance penalty.

Quoted 5 lines

My point is that the memory knobs should be exposed to the user of xl as semantically meaningful options without the need to refer to "the paging target" or "the balloon target" which is why there should not IMHO be "xl commands to adjust just ballooning and/or paging".

May I suggest you call these things 'memory' and 'footprint'? Users can adjust the memory the guest thinks it has (#2 above), and the footprint the domain will actually occupy (#3).

Then footprint can be adjusted by paging or something else. I don't want to begin to think about how PoD would jive there. It only seems to affect 'footprint' during bootup.

Andres

Quoted 2 lines

Ian.

#2 lore raw
Quoted 3 lines · Andres Lagar-Cavilla

May I suggest you call these things 'memory' and 'footprint'? Users can adjust the memory the guest thinks it has (#2 above), and the footprint the domain will actually occupy (#3).

Footprint isn't a bad idea for that name.

Quoted 3 lines

Then footprint can be adjusted by paging or something else. I don't want to begin to think about how PoD would jive there. It only seems to affect 'footprint' during bootup.

Yeah, it's basically a special case pager.

Ian.