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

Re: [PATCH 2/2] console/serial: bump buffer from 16K to 32K


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 30 Jun 2022 10:07:45 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/cv2DunFRSB8qTBkbROka8eJZHPCMPRgJF6AjxqMOXg=; b=jPL2/LsrtBv8mEmkLLU6wXsn9QbKI1BDTNDNfX9tL7gnQOPwdTOtQL7sy+wHvEtqmulgKzs9M7uCLn4aKHGcwSG1xwOp+DPquGMJioucrUcHzGDwJ23pOyzvLgRL8c1FZSByd8uO2ZYRmtTu1vWVZzNdHzeuAbiVRcX31BD2Gz3gxusG0D1LUZOOlFTp9z9l0feixbYh0nsNuNfV3/o/kZJDEDTmiNYZ8Q5cYG/Bsg1fjHkT0UXpKQ5VGU7NMVnzQmjjtFA4az1XqzMwbAFbpalzrwI0/yz6K8im6J+/SjJX8OwvSwOBj6P4olCPh0cfrOwkhfUWE+OGzxx4ZE7DyA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iAa0q+5/J80Aj9tAkXE5qd3vId3UNCQzme56w87RJGYHpvMDd3cgOGLODUX4UATEO72ZA2Co1loLHHEOJZOaOHmzV7BtN/F4VRnZisjvdijk5DLxRpLg0Xmzub720DQa3USWdDbo5OcAh3600FVhNgN3abgrmRi52/6dyi5EjA6PuGGZaYhpr/AcmDTbaa4Gu+rFCidiAd0DIKXTIfALU62q5K23oZO8jXYlniegBMDCx7vy7UafqOCp9hqMo6hU0XG3AR2N/spZMzz3IC253nXtjSXnp9f2DmKVUkJqzpiuwUDY+NJk3WACDIsqPwQvOcPmp81uywL/cP1/X+LPKA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 30 Jun 2022 08:08:18 +0000
  • Ironport-data: A9a23:HNoD/qxhrxrTz9PhaO16t+crxyrEfRIJ4+MujC+fZmUNrF6WrkUBz WUdWzrXM6zcNzH2c9kkbIzjoR5VscKGzNFnSgU4pCAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnj/0bv656yMUOZigHtIQMsadUsxKbVIiGX1JZS5LwbZj2NY22oDhWmthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ NplqqWRZiIKP/zwifU+Vh1jQiYhBYFn0eqSSZS/mZT7I0zuVVLJmqwrJmdmeIoS96BwHH1E8 uEeJHYVdBefiumqwbW9DO5xmsAkK8qtN4Qa0p1i5WiBUbB6HtaeE+OTu48wMDQY36iiGd7EY MUUc3x3ZQnoaBxTIFYHTpk5mY9Eg1GgL2UJ9QjL9MLb5UDSzi1D8bHNauDwIOGQXMVPwFeZm UDvqjGR7hYycYb3JSC+2nCmi/LLnCj7cJkPD7D+/flv6HWDy2pWBBAIWF+TpfiillX4S99ZM 1YT+Cclse417kPDZtvgWxy1plaUsxhaXMBfe8Uh8x2EwKfQ5wefB0AHQyRHZdhgs9U5LRQ10 neZktWvAiZg2IB5UlqY/7aQ6Dm0aS4cKDZbYTdeFFVVpd7+vIs0kxTDCM55F7K4hcH0Hje2x C2WqC85hPMYistjO7iHwG0rSgmE/vDhJjPZLC2ONo55xmuVvLKYWrE=
  • Ironport-hdrordr: A9a23:oqThjKrDLie/MTudz2ml+kMaV5uwL9V00zEX/kB9WHVpm5Oj+v xGzc5w6farsl0ssREb9uxo9pPwJE800aQFmbX5Wo3SJzUO2VHYVb2KiLGP/9SOIU3DH4JmpM Rdmu1FeafN5DtB/LnHCWuDYrEdKbC8mcjH5Ns2jU0dKz2CA5sQkzuRYTzrdnGeKjM2Z6bQQ/ Gnl7d6TnebCAIqR/X+IkNAc/nIptXNmp6jSRkaByQ/4A3LqT+z8rb1HzWRwx9bClp0sP8f2F mAtza8yrSosvm9xBOZ/2jP765OkN+k7tdYHsSDhuUcNz2poAe1Y4ZKXaGEoVkO0aiSwWdvtO OJjwYrPsx15X+UVmapoSH10w2l6zoq42+K8y7svVLT5ejCAB4qActIgoxUNjHD7VA7gd162K VXm0qEqpt+F3r77WjAzumNcysvulu/oHIkn+JWpWdYS5EiZLhYqpFa1F9JEa0HADnx5OkcYa RT5fnnlbhrmG6hHjHkVjEF+q3tYp1zJGbNfqE6gL3b79AM90oJjHfxx6Qk7wU9HdwGOtt5Dt //Q9VVfYF1P7ErhJ1GdZc8qOuMexjwqEH3QRWvCGWiMp07EFTwjLOyyIkJxYiRCe81Jd0J6d /8bG8=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Jun 29, 2022 at 06:30:18PM +0200, Jan Beulich wrote:
> On 29.06.2022 18:19, Roger Pau Monné wrote:
> > On Wed, Jun 29, 2022 at 06:03:34PM +0200, Jan Beulich wrote:
> >> On 29.06.2022 17:23, Roger Pau Monné wrote:
> >>> On Thu, Jun 23, 2022 at 03:32:30PM +0200, Jan Beulich wrote:
> >>>> On 23.06.2022 11:08, 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 32K 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 32K in order to cope with
> >>>>> current systems generating output faster does seem appropriate to have
> >>>>> a better user experience with the provided defaults.
> >>>>
> >>>> Just to record what was part of an earlier discussion: I'm not going
> >>>> to nak such a change, but I think the justification is insufficient:
> >>>> On this same basis someone else could come a few days later and bump
> >>>> to 64k, then 128k, etc.
> >>>
> >>> Indeed, and that would be fine IMO.  We should aim to provide defaults
> >>> that work fine for most situations, and here I don't see what drawback
> >>> it has to increase the default buffer size from 16kiB to 32kiB, and
> >>> I would be fine with increasing to 128kiB if that's required for some
> >>> use case, albeit I have a hard time seeing how we could fill that
> >>> buffer.
> >>>
> >>> If I can ask, what kind of justification you would see fit for
> >>> granting an increase to the default buffer size?
> >>
> >> Making plausible that for a majority of contemporary systems the buffer
> >> is not large enough would be one aspect. But then there's imo always
> >> going to be an issue: What if non-Linux Dom0 would be far more chatty?
> >> What if Linux, down the road, was made less verbose (by default)? What
> >> if people expect large enough a buffer to also suffice when Linux runs
> >> in e.g. ignore_loglevel mode? We simply can't fit all use cases and at
> >> the same time also not go overboard with the default size. That's why
> >> there's a way to control this via command line option.
> > 
> > Maybe I should clarify that the current buffer size is not enough on
> > this system with the default Linux log level. I think we can expect
> > someone that changes the default Linux log level to also consider
> > changing the Xen buffer size.  OTOH when using the default Linux log
> > level the default Xen serial buffer should be enough.
> > 
> > I haven't tested with FreeBSD on that system, other systems I have
> > seem to be fine when booting FreeBSD with the default Xen serial
> > buffer size.
> > 
> > I think we should exercise caution if someone proposed to increase to
> > 1M for example, but I don't see why so much controversy for going from
> > 16K to 32K, it's IMO a reasonable value and has proven to prevent
> > serial log loss when using the default Linux log level.
> 
> But see - that's exactly my point. Where do you draw the line between
> "we should accept" and "exercise caution"? Is it 256k? Or 512k?

Hard to tell, it would depend on the justification/use case for needed
those buffer sizes.

To be fair 16K seems equally random to me, I tried to backtrack to the
commit it was introduced, but I haven't been able to find any
justification.

I think we can at least agree that making the buffer size configurable
from Kconfig is a desirable move.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.