Re: [PATCH 05/26] hypervisor: add support for delay interval during autostart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 30, 2025 at 01:12:15PM +0100, Peter Krempa wrote:
> On Wed, Jan 08, 2025 at 19:42:38 +0000, Daniel P. Berrangé wrote:
> > This delay can reduce the CPU/IO load storm when autostarting many
> > guests.
> > 
> > Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> > ---
> >  src/hypervisor/domain_driver.c | 20 +++++++++++++++++---
> >  src/hypervisor/domain_driver.h |  1 +
> >  2 files changed, 18 insertions(+), 3 deletions(-)
> 
> [...]
> 
> > diff --git a/src/hypervisor/domain_driver.h b/src/hypervisor/domain_driver.h
> > index c27ed9155e..d695e26f90 100644
> > --- a/src/hypervisor/domain_driver.h
> > +++ b/src/hypervisor/domain_driver.h
> > @@ -84,6 +84,7 @@ typedef struct _virDomainDriverAutoStartConfig {
> >      char *stateDir;
> >      virDomainDriverAutoStartCallback callback;
> >      void *opaque;
> > +    int delayMS; /* milliseconds between starting each guest */
> 
> As negative delay doesn't make sense consider declaring this as
> unsigned.

Yep, makes sense.

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux