All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.28 and balloon driver
@ 2009-01-06 23:34 Dan Magenheimer
  2009-01-07  0:53 ` More on " Dan Magenheimer
  2009-01-07 10:05 ` Ian Campbell
  0 siblings, 2 replies; 9+ messages in thread
From: Dan Magenheimer @ 2009-01-06 23:34 UTC (permalink / raw)
  To: Xen-Devel (E-mail)

I am playing with 2.6.28 on xen.  Nice!  Thanks Jeremy!

But I have a minor gripe...

The balloon driver now is accessed via a sysfs file, for example:

# SIZE=`cat /sys/devices/system/xen_memory/xen_memory0/target_kb`
# echo $SIZE
# echo $SIZE > /sys/devices/system/xen_memory/xen_memory0/target_kb

SIZE does indeed get current memory size in kbytes, but
if one tries to pass SIZE (or slightly smaller value) back,
all hell breaks loose because:

1) Despite the name, the value written must be in bytes, not kbytes
2) There is no "safety minimum", so writing the same value back
   actually reduces memory by a factor of 1024!

I realize behavior (1) is backwards-compatible with the existing
/proc/xen/balloon behavior, but at least that filename doesn't
imply a unit size.

For (2), as sysadmins grow comfortable with the "safety minimum"
that's been implemented in upstream xen now for nearly a year,
(users can do:

# echo 0 > /proc/xen/balloon

and it still works), some people upgrading to a 2.6.28 kernel
are in for a nasty surprise.

<gripe off>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-01-16 18:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 23:34 2.6.28 and balloon driver Dan Magenheimer
2009-01-07  0:53 ` More on " Dan Magenheimer
2009-01-07 17:40   ` Dan Magenheimer
2009-01-07 19:45     ` Dan Magenheimer
2009-01-16 18:08       ` Jeremy Fitzhardinge
2009-01-07 10:05 ` Ian Campbell
2009-01-07 11:41   ` Ian Jackson
2009-01-07 18:00     ` Dan Magenheimer
2009-01-07 19:11       ` Trolle Selander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.