← Back to team overview

kernel-packages team mailing list archive

[Bug 1304001] Re: xen:balloon errors in 14.04 beta

 

This looks like to be requiring even more. I found the following patch
which supposedly was queued for 3.18 but I cannot find it in upstream
git, yet: "xen/balloon: Don't continue ballooning when BP_ECANCELED is
encountered".

Commit 3dcf63677d4e ("xen/balloon: cancel ballooning if adding new
memory failed") makes reserve_additional_memory() return BP_ECANCELED
when an error is encountered. This error, however, is ignored by the
caller (balloon_process()) since it is overwritten by subsequent call
to update_schedule(). This results in continuous attempts to add more
memory, all of which are likely to fail again.

We should stop trying to schedule next iteration of ballooning when
the current one has failed.

** Changed in: linux (Ubuntu Utopic)
       Status: Fix Released => Triaged

** Changed in: linux (Ubuntu Trusty)
       Status: Fix Released => Triaged

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1304001

Title:
   xen:balloon errors in 14.04 beta

Status in “linux” package in Ubuntu:
  Triaged
Status in “linux” source package in Trusty:
  Triaged
Status in “linux” source package in Utopic:
  Triaged

Bug description:
  SRU Justification:
  [Impact]
  The following errors may occur on HVM instances on EC2: xen:balloon: reserve_additional_memory: add_memory() failed: -17

  [Test Case]
  Boot Ubuntu Trusty 3.13 series HVM instances and check dmesg for this error message.

  [Fix]
  A minimal fix for this bug can be found here:
  https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3dcf63677d4eb7fdfc13290c8558c301d2588fe8
  This allows the ballooning to be cancelled if adding new memory failed which means that the error message is printed once instead of repeatedly.

  There should still be effort to root cause this issue and determine
  how to avoid the ballooning errors in the first place. I still think
  this patch should be applied to alleviate symptoms until root cause is
  discovered.

  --

  Xen balloon errors on HVM instances on EC2 (Xen 4.2.amazon):

  ubuntu@ip-10-63-20-99:~$ uname -a
  Linux ip-10-63-20-99 3.13.0-23-generic #45-Ubuntu SMP Fri Apr 4 06:58:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
  ubuntu@ip-10-63-20-99:~$ dmesg  |grep xen
  [    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled
  [    0.494613] xen:balloon: Initialising balloon driver
  [    0.496046] xen_balloon: Initialising balloon driver
  [    0.500077] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [    0.541047] Switched to clocksource xen
  [    0.562579] xen: --> pirq=16 -> irq=8 (gsi=8)
  [    0.562622] xen: --> pirq=17 -> irq=12 (gsi=12)
  [    0.562649] xen: --> pirq=18 -> irq=1 (gsi=1)
  [    0.562673] xen: --> pirq=19 -> irq=6 (gsi=6)
  [    0.562705] xen: --> pirq=20 -> irq=4 (gsi=4)
  [    0.920527] xen: --> pirq=21 -> irq=47 (gsi=47)
  [    0.920596] xen:grant_table: Grant tables using version 1 layout
  [    1.029661] xen_netfront: Initialising Xen virtual ethernet driver
  [    1.236083] xenbus_probe_frontend: Device with no driver: device/vfb/0
  [    2.516067] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [    6.533941] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [   14.560075] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [   30.592064] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [   62.688153] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [   94.752164] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  126.816161] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  158.880084] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  190.944069] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  223.008141] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  255.072112] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  287.136190] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  319.200053] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  351.264164] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  383.328080] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  415.392077] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  447.456112] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  479.520128] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  511.584110] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  543.648181] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  575.712070] xen:balloon: reserve_additional_memory: add_memory() failed: -17
  [  607.776178] xen:balloon: reserve_additional_memory: add_memory() failed: -17

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1304001/+subscriptions


References