Boot time and 3 sec in warning_print
Hi,
I would like to shorten the boot time in our system if possible.
In xen/common/warning.c there is warning_print() which contains a 3 seconds loop that calls process_pending_softirqs().
What would the potential problems be if that loop is radically shortened?
/Anders
Quoted 7 lines · Anders Törnqvist
Hi,
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
Juergen
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().
Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning. The delay is intentionally this way to annoy the admin and force them to take measures.
Jan
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Jürgen Groß
Quoted 6 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
Quoted 7 lines
Quoted 3 lines
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning. The delay is intentionally this way to annoy the admin and force them to take measures.
OTOH there are some warnings which can't be dealt with via boot parameters or which can be solved by other means, e.g.:
"WARNING: SILO mode is not enabled.\n"
"It has implications on the security of the system,\n" "unless the communications have been forbidden between\n" "untrusted domains.\n"
"WARNING: HMP COMPUTING HAS BEEN ENABLED.\n"
"It has implications on the security and stability of the system,\n" "unless the cpu affinity of all domains is specified.\n"
Juergen
Hi Juergen,
Quoted 16 lines · Jürgen Groß
Quoted 15 lines · Jan Beulich
Quoted 13 lines · Jürgen Groß
Quoted 6 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
Quoted 6 lines
Quoted 3 lines
I don't think I agree - the solution to this is to eliminate the reason leading to the warning. The delay is intentionally this way to annoy the admin and force them to take measures.
OTOH there are some warnings which can't be dealt with via boot parameters or which can be solved by other means, e.g
Both of the warning can be removed...
Quoted 4 lines
"WARNING: SILO mode is not enabled.\n"
"It has implications on the security of the system,\n" "unless the communications have been forbidden between\n" "untrusted domains.\n"
The default Arm config will use SILO mode. You would have needed to tweak your .config in order to get this message.
There are current discussion to allow again FLASK on Armv8.1+ platform (see [1]).
Quoted 4 lines
"WARNING: HMP COMPUTING HAS BEEN ENABLED.\n"
"It has implications on the security and stability of the system,\n" "unless the cpu affinity of all domains is specified.\n"
This is printed if the admin add "hmp-unsafe=yes" on the command line.
Cheers,
[1]
https://lore.kernel.org/xen-devel/[email protected]/
Signature · 1 line
Julien Grall
Hi Jan,
Quoted 15 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
Quoted 5 lines
I don't think I agree - the solution to this is to eliminate the reason leading to the warning.
The delay is intentionally this way
to annoy the admin and force them to take measures.
Given they are warning, an admin may have assessed them and considered there is no remediation necessary.
We encountered the same problem with LiveUpdate. If you happen to have a warning (e.g. sync_console for debugging), then you are adding 3s in your downtime (this can more than double-up the actual one).
What was just an "annoyance" for boot can now completely wreck your guests and system (not many software can tolerate large downtime).
So I think we either want to drop the 3s pause completely or allow the user to decide whether he/she cares about it via a command line option.
I am leaning towards the former at the moment.
Cheers,
Signature · 1 line
Julien Grall
Quoted 19 lines · Julien Grall
Quoted 18 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning.
Quoted 8 lines
Quoted 2 lines
The delay is intentionally this way
to annoy the admin and force them to take measures.Given they are warning, an admin may have assessed them and considered there is no remediation necessary.
We encountered the same problem with LiveUpdate. If you happen to have a warning (e.g.
sync_consolefor debugging), then you are adding 3s in your downtime (this can more than double-up the actual one).
One very explicitly should not run with sync_console in production.
Quoted 7 lines
What was just an "annoyance" for boot can now completely wreck your guests and system (not many software can tolerate large downtime).
So I think we either want to drop the 3s pause completely or allow the user to decide whether he/she cares about it via a command line option.
I am leaning towards the former at the moment.
I'm afraid I'm -2 towards complete removal. I'm at least -1 towards shortening of the pause, as already indicated.
Jan
Hi Jan,
Quoted 22 lines · Jan Beulich
Quoted 21 lines · Julien Grall
Quoted 20 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning.
The delay is intentionally this way
to annoy the admin and force them to take measures.
Quoted 8 lines
Quoted 6 lines
Given they are warning, an admin may have assessed them and considered there is no remediation necessary.
We encountered the same problem with LiveUpdate. If you happen to have a warning (e.g.
sync_consolefor debugging), then you are adding 3s in your downtime (this can more than double-up the actual one).One very explicitly should not run with
sync_consolein production.
I knew it would be misinterpreted ;). I agree that sync_console must not be used in production.
I gave the example of sync_console because this is something impacting debugging of LiveUpdate. If you have a console issue and need to add sync_console, then you may end up to wreck completely your platform when LiveUpdating.
Without the 3s delay, then you have a chance to LiveUpdate and figure out the problem.
Quoted 11 lines
Quoted 8 lines
What was just an "annoyance" for boot can now completely wreck your guests and system (not many software can tolerate large downtime).
So I think we either want to drop the 3s pause completely or allow the user to decide whether he/she cares about it via a command line option.
I am leaning towards the former at the moment.
I'm afraid I'm -2 towards complete removal. I'm at least -1 towards shortening of the pause, as already indicated.
So how do you suggest to approach the issues I discussed above?
Cheers,
Signature · 1 line
Julien Grall
Quoted 37 lines · Julien Grall
Hi Jan,
Quoted 22 lines · Jan Beulich
Quoted 21 lines · Julien Grall
Quoted 20 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning.
The delay is intentionally this way
to annoy the admin and force them to take measures.Quoted 8 lines
Quoted 6 lines
Given they are warning, an admin may have assessed them and considered there is no remediation necessary.
We encountered the same problem with LiveUpdate. If you happen to have a warning (e.g.
sync_consolefor debugging), then you are adding 3s in your downtime (this can more than double-up the actual one).One very explicitly should not run with
sync_consolein production.I knew it would be misinterpreted ;). I agree that
sync_consolemust not be used in production.
Quoted 7 lines
I gave the example of
sync_consolebecause this is something impacting debugging of LiveUpdate. If you have a console issue and need to addsync_console, then you may end up to wreck completely your platform when LiveUpdating.Without the 3s delay, then you have a chance to LiveUpdate and figure out the problem.
I'm afraid I don't see how LU comes into the picture here: We're talking about a boot time delay. The delay doesn't recur at any point at runtime.
Jan
Hi Jan,
Quoted 41 lines · Jan Beulich
Quoted 40 lines · Julien Grall
Quoted 22 lines · Jan Beulich
Quoted 21 lines · Julien Grall
Quoted 20 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Anders Törnqvist
I would like to shorten the boot time in our system if possible.
In
xen/common/warning.cthere iswarning_print()which contains a 3 seconds loop that callsprocess_pending_softirqs().Quoted 7 lines
Quoted 1 line
What would the potential problems be if that loop is radically shortened?
A user might not notice the warning(s) printed.
But I can see your point. I think adding a boot option for setting another timeout value (e.g. 0) would do the job without compromising the default case.
I don't think I agree - the solution to this is to eliminate the reason leading to the warning.
The delay is intentionally this way
to annoy the admin and force them to take measures.Quoted 8 lines
Quoted 6 lines
Given they are warning, an admin may have assessed them and considered there is no remediation necessary.
We encountered the same problem with LiveUpdate. If you happen to have a warning (e.g.
sync_consolefor debugging), then you are adding 3s in your downtime (this can more than double-up the actual one).One very explicitly should not run with
sync_consolein production.I knew it would be misinterpreted ;). I agree that
sync_consolemust not be used in production.I gave the example of
sync_consolebecause this is something impacting debugging of LiveUpdate. If you have a console issue and need to addsync_console, then you may end up to wreck completely your platform when LiveUpdating.
Quoted 6 lines
Quoted 2 lines
Without the 3s delay, then you have a chance to LiveUpdate and figure out the problem.
I'm afraid I don't see how LU comes into the picture here: We're talking about a boot time delay. The delay doesn't recur at any point at runtime.
Live Update is a reboot of the hypervisor. The main difference is we are carrying the state of each domain states to the new Xen along with some strictly necessary global state (e.g. IOMMU).
So the new Xen will mostly followed the same boot path as you would from a "classic" (re)boot. There are only a few twist necessary for LiveUpdate (e.g. reserving memory, creating/restoring multiple domains).
We would need to gate the 3s pause in the case of LiveUpdate. At which point, it seems we may want to take an approach that also benefits other users.
Cheers,
Signature · 1 line
Julien Grall
Quoted 6 lines · Jan Beulich
Quoted 5 lines · Julien Grall
Quoted 1 line · Jan Beulich
On 15.02.2021 09:13, Jürgen Groß wrote:
What was just an "annoyance" for boot can now completely wreck your guests and system (not many software can tolerate large downtime).
Quoted 6 lines
Quoted 4 lines
So I think we either want to drop the 3s pause completely or allow the user to decide whether he/she cares about it via a command line option.
I am leaning towards the former at the moment.
I'm afraid I'm -2 towards complete removal. I'm at least -1 towards shortening of the pause, as already indicated.
A 3s delay on boot doesn't even cause most people to notice. The infrastructure has failed at its intended purpose.
Therefore, we should consider now to replace this largely-failed experiment with something better.
Personally, I think ARM is abusing this in the first place. Adding a 3 second delay for someone who's explicitly chosen hmp_unsafe is petty. So is adding a 3 second delay for anyone who's explicitly chosen a non-default configuration. In retrospect, I think the delay for hvm_fep is also wrong, especially as we also have a taint for it.
The *only* way to make users deal with the warnings is to surface them very obviously in the UI they use to interact with their Xen system. That is XenCenter/XenOrchestra/virt-manager/etc, and possibly the SSH MOTD - not a logfile that approximately noone reads.
To make this happen, warnings need to be available somewhere which isn't the dmesg ring. hypfs would be the obvious candidate at the moment.
~Andrew
Hi Andrew,
Quoted 17 lines · Andrew Cooper
Quoted 6 lines · Jan Beulich
Quoted 5 lines · Julien Grall
Quoted 1 line · Jan Beulich
On 15.02.2021 09:13, Jürgen Groß wrote:
What was just an "annoyance" for boot can now completely wreck your guests and system (not many software can tolerate large downtime).
Quoted 6 lines
Quoted 4 lines
So I think we either want to drop the 3s pause completely or allow the user to decide whether he/she cares about it via a command line option.
I am leaning towards the former at the moment.
I'm afraid I'm -2 towards complete removal. I'm at least -1 towards shortening of the pause, as already indicated.
A 3s delay on boot doesn't even cause most people to notice. The infrastructure has failed at its intended purpose.
Quoted 6 lines
Therefore, we should consider now to replace this largely-failed experiment with something better.
Personally, I think ARM is abusing this in the first place. Adding a 3 second delay for someone who's explicitly chosen
hmp_unsafeis petty.
For Arm, the original goal was to get all the important warning in a single place so they are easy to find.
The 3 seconds is unfortunately an unintended consequence of using warning_add().
Quoted 11 lines
So is adding a 3 second delay for anyone who's explicitly chosen a non-default configuration. In retrospect, I think the delay for
hvm_fepis also wrong, especially as we also have a taint for it. >The *only* way to make users deal with the warnings is to surface them very obviously in the UI they use to interact with their Xen system. That is XenCenter/XenOrchestra/virt-manager/etc, and possibly the SSH MOTD - not a logfile that approximately noone reads.
To make this happen, warnings need to be available somewhere which isn't the dmesg ring. hypfs would be the obvious candidate at the moment.
Could we also taint Xen if there is a major warning?
Cheers,
Signature · 1 line
Julien Grall