console/serial: bump buffer from 16K to 128K
PATCH v3 1/1 console/serial: bump buffer from 16K to 128K
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
--
Changes since v2:
- Bump to 128K.
--- xen/drivers/char/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/drivers/char/Kconfig +2 -2
@@ -77,13 +77,13 @@ config HAS_EHCI config SERIAL_TX_BUFSIZE int "Size of the transmit serial buffer" - default 16384 + default 131072 help Controls the default size of the transmit buffer (in bytes) used by the serial driver. Note the value provided will be rounded down to the nearest power of 2. - Default value is 16384 (16kiB). + Default value is 131072 (128KiB). config XHCI bool "XHCI DbC UART driver"
Signature · 1 line
2.42.0
Hi Roger,
Quoted 11 lines · Roger Pau Monne
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
Signed-off-by Roger Pau Monné <[email protected]>
I will commit it in a couple of days if there are no objection.
Cheers,
Signature · 1 line
Julien Grall
Quoted 10 lines · Roger Pau Monne
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
Quoted 4 lines
Signed-off-by Roger Pau Monné <[email protected]>--
Changes since v2:
- Bump to 128K.
Wow, I was hesitant about 32k, and now we're going all the way up to 128? Even the recent report indicated 24k would be fine there ...
Jan
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Roger Pau Monne
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Roger Pau Monné <[email protected]>--
Changes since v2:
- Bump to 128K.Wow, I was hesitant about 32k, and now we're going all the way up to 128? Even the recent report indicated 24k would be fine there ...
24k would be rounded to 32k anyway.
I don't think 32k vs 128k makes that much difference, it's still an infinitesimal part of the memory on any modern computer. Simply the risk of loosing output is IMO not worth us being conservative with the amount here, specially if we are speaking about KiB, not even MiB.
Thanks, Roger.
Quoted 20 lines · Roger Pau Monné
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Roger Pau Monne
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Roger Pau Monné <[email protected]>--
Changes since v2:
- Bump to 128K.Wow, I was hesitant about 32k, and now we're going all the way up to 128? Even the recent report indicated 24k would be fine there ...
Quoted 6 lines
24k would be rounded to 32k anyway.
I don't think 32k vs 128k makes that much difference, it's still an infinitesimal part of the memory on any modern computer. Simply the risk of loosing output is IMO not worth us being conservative with the amount here, specially if we are speaking about KiB, not even MiB.
Well, I've voiced my view on the underlying principle of this before. I don't mean to block the increase, but I wanted to express that when I was halfway okay with 32k, I find 128k excessive.
Jan
Hi Jan,
Quoted 23 lines · Jan Beulich
Quoted 22 lines · Roger Pau Monné
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Roger Pau Monne
Testing on a Kaby Lake box with 8 CPUs leads to the serial buffer being filled halfway during dom0 boot, and thus a non-trivial chunk of Linux boot messages are dropped.
Increasing the buffer to 128K does fix the issue and Linux boot messages are no longer dropped. There's no justification either on why 16K was chosen, and hence bumping to 128K in order to cope with current systems generating output faster does seem appropriate to have a better user experience with the provided defaults.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Roger Pau Monné <[email protected]>--
Changes since v2:
- Bump to 128K.Wow, I was hesitant about 32k, and now we're going all the way up to 128? Even the recent report indicated 24k would be fine there ...
24k would be rounded to 32k anyway.
Quoted 8 lines
Quoted 4 lines
I don't think 32k vs 128k makes that much difference, it's still an infinitesimal part of the memory on any modern computer. Simply the risk of loosing output is IMO not worth us being conservative with the amount here, specially if we are speaking about KiB, not even MiB.
Well, I've voiced my view on the underlying principle of this before. I don't mean to block the increase, but I wanted to express that when I was halfway okay with 32k, I find 128k excessive.
As discussed in [1], I have changed back the size fo 32K and committed patch.
Cheers,
[1] https://lore.kernel.org/xen-devel/[email protected]/
Quoted 2 lines
Jan
Signature · 1 line
Julien Grall