* [PATCH v3] console/serial: bump buffer from 16K to 128K
@ 2023-09-19 12:51 Roger Pau Monne
2023-09-19 12:53 ` Julien Grall
2023-09-19 13:06 ` Jan Beulich
0 siblings, 2 replies; 6+ messages in thread
From: Roger Pau Monne @ 2023-09-19 12:51 UTC (permalink / raw)
To: xen-devel
Cc: Roger Pau Monne, Andrew Cooper, George Dunlap, Jan Beulich,
Julien Grall, Stefano Stabellini, Wei Liu
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é <roger.pau@citrix.com>
--
Changes since v2:
- Bump to 128K.
---
xen/drivers/char/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig
index 06350c387371..1cd9cddfe1bf 100644
--- a/xen/drivers/char/Kconfig
+++ b/xen/drivers/char/Kconfig
@@ -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"
--
2.42.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3] console/serial: bump buffer from 16K to 128K
2023-09-19 12:51 [PATCH v3] console/serial: bump buffer from 16K to 128K Roger Pau Monne
@ 2023-09-19 12:53 ` Julien Grall
2023-09-19 13:06 ` Jan Beulich
1 sibling, 0 replies; 6+ messages in thread
From: Julien Grall @ 2023-09-19 12:53 UTC (permalink / raw)
To: Roger Pau Monne, xen-devel
Cc: Andrew Cooper, George Dunlap, Jan Beulich, Stefano Stabellini,
Wei Liu
Hi Roger,
On 19/09/2023 13:51, Roger Pau Monne wrote:
> 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é <roger.pau@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
I will commit it in a couple of days if there are no objection.
Cheers,
--
Julien Grall
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] console/serial: bump buffer from 16K to 128K
2023-09-19 12:51 [PATCH v3] console/serial: bump buffer from 16K to 128K Roger Pau Monne
2023-09-19 12:53 ` Julien Grall
@ 2023-09-19 13:06 ` Jan Beulich
2023-09-19 14:14 ` Roger Pau Monné
1 sibling, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2023-09-19 13:06 UTC (permalink / raw)
To: Roger Pau Monne
Cc: Andrew Cooper, George Dunlap, Julien Grall, Stefano Stabellini,
Wei Liu, xen-devel
On 19.09.2023 14:51, Roger Pau Monne wrote:
> 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é <roger.pau@citrix.com>
> --
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] console/serial: bump buffer from 16K to 128K
2023-09-19 13:06 ` Jan Beulich
@ 2023-09-19 14:14 ` Roger Pau Monné
2023-09-19 14:26 ` Jan Beulich
0 siblings, 1 reply; 6+ messages in thread
From: Roger Pau Monné @ 2023-09-19 14:14 UTC (permalink / raw)
To: Jan Beulich
Cc: Andrew Cooper, George Dunlap, Julien Grall, Stefano Stabellini,
Wei Liu, xen-devel
On Tue, Sep 19, 2023 at 03:06:45PM +0200, Jan Beulich wrote:
> On 19.09.2023 14:51, Roger Pau Monne wrote:
> > 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é <roger.pau@citrix.com>
> > --
> > 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] console/serial: bump buffer from 16K to 128K
2023-09-19 14:14 ` Roger Pau Monné
@ 2023-09-19 14:26 ` Jan Beulich
2023-09-22 8:04 ` Julien Grall
0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2023-09-19 14:26 UTC (permalink / raw)
To: Roger Pau Monné
Cc: Andrew Cooper, George Dunlap, Julien Grall, Stefano Stabellini,
Wei Liu, xen-devel
On 19.09.2023 16:14, Roger Pau Monné wrote:
> On Tue, Sep 19, 2023 at 03:06:45PM +0200, Jan Beulich wrote:
>> On 19.09.2023 14:51, Roger Pau Monne wrote:
>>> 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é <roger.pau@citrix.com>
>>> --
>>> 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.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] console/serial: bump buffer from 16K to 128K
2023-09-19 14:26 ` Jan Beulich
@ 2023-09-22 8:04 ` Julien Grall
0 siblings, 0 replies; 6+ messages in thread
From: Julien Grall @ 2023-09-22 8:04 UTC (permalink / raw)
To: Jan Beulich, Roger Pau Monné
Cc: Andrew Cooper, George Dunlap, Stefano Stabellini, Wei Liu,
xen-devel
Hi Jan,
On 19/09/2023 15:26, Jan Beulich wrote:
> On 19.09.2023 16:14, Roger Pau Monné wrote:
>> On Tue, Sep 19, 2023 at 03:06:45PM +0200, Jan Beulich wrote:
>>> On 19.09.2023 14:51, Roger Pau Monne wrote:
>>>> 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é <roger.pau@citrix.com>
>>>> --
>>>> 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.
>
> 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/55d92655-6fd8-430a-8b16-3f56693def9c@xen.org/
>
> Jan
--
Julien Grall
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-09-22 8:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 12:51 [PATCH v3] console/serial: bump buffer from 16K to 128K Roger Pau Monne
2023-09-19 12:53 ` Julien Grall
2023-09-19 13:06 ` Jan Beulich
2023-09-19 14:14 ` Roger Pau Monné
2023-09-19 14:26 ` Jan Beulich
2023-09-22 8:04 ` Julien Grall
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.