From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Christoph Heiss <c.heiss@proxmox.com>
Subject: [pve-devel] applied: [PATCH installer] sys: command: wait for process exit with sub-second granularity
Date: Tue, 27 Feb 2024 15:08:54 +0100 [thread overview]
Message-ID: <9d3c7c2e-e366-483e-976e-65f7cd8a005a@proxmox.com> (raw)
In-Reply-To: <20240226165052.1219597-1-c.heiss@proxmox.com>
Am 26/02/2024 um 17:50 schrieb Christoph Heiss:
> Using full seconds as a granularity for sleeping between waitpid()'s is
> way too much and unnecessarily slows down the installation a lot. Most
> processes take a few moments after closing their stdin/stdout to
> actually exit fully, which means that we would sleep a second in most
> cases.
>
> Lower it to 0.1 second, which immensely improves the situation.
>
> Some values for comparison; tui-installer on the same bog-standard
> 2-core, SeaBIOS, ext4, virtio VM (roughly averaged over multiple runs):
>
> * 8.0 ISO (baseline): ~2:30 min
> * w/o patch: ~9:00 min
> * w/ patch: ~2:30 min
>
> Values measured are from pressing the 'Install' button until the
> autoreboot dialog (aka. install finished) popped up.
>
> Fixes: 152bbef ("sys: command: factor out kill() + waitpid() from run_command()")
> Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> Reported-by: Filip Schauer <f.schauer@proxmox.com>
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> Proxmox/Sys/Command.pm | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
>
applied this already yesterday, thanks!
prev parent reply other threads:[~2024-02-27 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-26 16:50 [pve-devel] " Christoph Heiss
2024-02-27 14:08 ` Thomas Lamprecht [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d3c7c2e-e366-483e-976e-65f7cd8a005a@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=c.heiss@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.