public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] auto ballooning && ksm thresholds both at 80%
@ 2021-12-30 10:47 DERUMIER, Alexandre
  0 siblings, 0 replies; 3+ messages in thread
From: DERUMIER, Alexandre @ 2021-12-30 10:47 UTC (permalink / raw)
  To: pve-devel

Hi,

I'm still working on ha manager ressource aware && loadbalancing (I
have some big improvements to send soon before review)

I currently looking at memory balancing doing a lot of tests,

and I wonder if auto-ballooning threshold shouldn't be a little bit
bigger than ksm.

Currently both are at 80%,
that mean that ballooning is vm reducing memory fast, and ksm don't
have time to run.

as ballooning is a lot more intrusive than ksm, I wonder if it couldn't
be set to something like 90%.

Like this, ksm can try to keep memory at 80%, and if memory is growing
too fast up to 90% or if ksm can't really deduplicate pages anymore, we
have ballooning in action.

What do you think about it ?


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

* Re: [pve-devel] auto ballooning && ksm thresholds both at 80%
  2021-12-31 14:31 Dietmar Maurer
@ 2022-01-03  8:20 ` DERUMIER, Alexandre
  0 siblings, 0 replies; 3+ messages in thread
From: DERUMIER, Alexandre @ 2022-01-03  8:20 UTC (permalink / raw)
  To: pve-devel, dietmar

Le vendredi 31 décembre 2021 à 15:31 +0100, Dietmar Maurer a écrit :
Currently both are at 80%,
that mean that ballooning is vm reducing memory fast, and ksm don't
have time to run.

as ballooning is a lot more intrusive than ksm, I wonder if it couldn't
be set to something like 90%.

That sounds reasonable to me, but can you see that theoretical effect when you run your test?


Hi Dietmar,
Happy new year ! (I'm currently in holiday this week, so, I check that next week)


I'll do more tests to be sure. (I don't use ballooning in production, but I'm a big user of ksm, I have some big nodes with something like 200GB ksm on 700GB servers).


My Idea behind this is to implement auto-balancing, vm migration, when memory threshold is between ksm && autoballoonig).

1) 80%: ksm
2) ~= 85-89% : auto balancing/migration
3) ~= 90% : auto ballonning
4) ~= 100% : swap



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

* Re: [pve-devel] auto ballooning && ksm thresholds both at 80%
@ 2021-12-31 14:31 Dietmar Maurer
  2022-01-03  8:20 ` DERUMIER, Alexandre
  0 siblings, 1 reply; 3+ messages in thread
From: Dietmar Maurer @ 2021-12-31 14:31 UTC (permalink / raw)
  To: Proxmox VE development discussion, DERUMIER, Alexandre

> Currently both are at 80%,
> that mean that ballooning is vm reducing memory fast, and ksm don't
> have time to run.
> 
> as ballooning is a lot more intrusive than ksm, I wonder if it couldn't
> be set to something like 90%.

That sounds reasonable to me, but can you see that theoretical effect when you run your test?




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

end of thread, other threads:[~2022-01-03  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 10:47 [pve-devel] auto ballooning && ksm thresholds both at 80% DERUMIER, Alexandre
2021-12-31 14:31 Dietmar Maurer
2022-01-03  8:20 ` DERUMIER, Alexandre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal