All of lore.kernel.org
 help / color / mirror / Atom feed
* xen-balloon thread using 100% of CPU, regression in 5.4.150
@ 2021-10-03  4:47 Marek Marczykowski-Górecki
  2021-10-04  5:31 ` Juergen Gross
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Marczykowski-Górecki @ 2021-10-03  4:47 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Jan Beulich

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

Hi,

After updating a PVH domU to 5.4.150, I see xen-balloon thread using
100% CPU (one thread).
This is a domain started with memory=maxmem=716800KiB (via libvirt). Then,
inside, I see:

# cat /sys/devices/system/xen_memory/xen_memory0/target_kb
716924
# cat /sys/devices/system/xen_memory/xen_memory0/info/current_kb
716400

Doing `cat info/current_kb > target_kb` "fixes" the issue. But still,
something is wrong - on earlier kernel (5.4.143 to be precise), it
wasn't spinning, with exactly the same values reported in sysfs. It
shouldn't run in circles if it can't get that much memory it wants. I
strongly suspect "xen/balloon: use a kernel thread instead a workqueue"
or related commit being responsible, but I haven't verified it.

This specific test is from Xen 4.8.5 (+quite a lot of patches), but I've
got report of the same issue on 4.14.3 too. Anyway, I don't think Xen
version matters here much.

I have _not_ managed to reproduce the issue on 5.10.70, nor 5.14.9. In
both cases, just after starting the domain, I see
current_kb=target_kb=716412. And writing 716924 to target_kb manually
does not cause xen-balloon thread to spin.

-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2021-10-05 13:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03  4:47 xen-balloon thread using 100% of CPU, regression in 5.4.150 Marek Marczykowski-Górecki
2021-10-04  5:31 ` Juergen Gross
2021-10-04  9:14   ` Marek Marczykowski-Górecki
2021-10-05  8:05     ` Juergen Gross
2021-10-05 13:31       ` Marek Marczykowski-Górecki
2021-10-05 13:33       ` Jason Andryuk

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.