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

Re: xl dmesg buffer too small for Xen 4.18?


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 19 Sep 2023 18:10:38 +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=LzB52rPHSHlGYQSwoPjilvSJKKIzILBLeWefDBCTDgQ=; b=GvbMSMX9dSczPEWQdIWq9NNqUYqaxUgN/r7/wbi8XUPg0E+SgF2H8LfFNlvupmMkHcKu6too6wKeIb7JBX8E2y66zsAFB1SPe74BHxm/QMkPxOUvtHddxqndpZ8jxIwSvXWo8baLWintJQV4wEyBjjdYWVub50EtJK92ird9SwA3oQ4N9++7B92yphTtyToxF8eqAqXgGWQIp5Io93aeLEr+nECdgSsl6xp5BoMIoyW+SJW+yNSIHMctoU0u+l9TiUac3ja8bPjJHFAROW/+lDvsk9ed1lMBiLgGK7OvnipS2WWMp41MCgDuyu1i3vTAYvnLWFA5xH4LoKJ0s2y8RQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WyU2AqH9iv+/bS58sgy7/hfQGJK8dZmeZ3Pn8Y6gk6U20T9sYBzAwtITprrzXuJMd2D7yRW1Ty6Gdj2+0HLQSF6ld8eXFO9cqFmTio5X+dW6LFtB6TbvknThtZ61e6GMQID1YypV1LqzAneVCw1WHu6LqPJ7XrJ7o++Tv5vK8q7V4cGHATdzzVqgPo2zLVsMhQnKWBvcZQG1Oxm785bQZlUpxWD1Nq01AFdmlTkG7L35b0LI/hmnapc509XuhvY40QGneKDyzZtBtFGQipwfGbNkfOawW3ET38k88g1xOg90erEt63RYVxcySS5b+cb1zASZDt8Y0JN64D3X4YT+uQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Chuck Zmudzinski <brchuckz@xxxxxxxxxxxx>
  • Delivery-date: Tue, 19 Sep 2023 16:11:01 +0000
  • Ironport-data: A9a23:0gkVUqK39ta6isPGFE+R6pQlxSXFcZb7ZxGr2PjKsXjdYENS1DcCy 2IZX2+Caf6MZ2L8LY1zadyw8BlU7ZCHn98yHQVlqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAhk/nOHvylULKs1hlZHWdMUD0mhQ9oh9k3i4tphcnRKw6Ws Jb5rta31GWNglaYCUpKrfrZwP9TlK6q4mhA7wVvPasjUGL2zBH5MrpOfcldEFOgKmVkNrbSb /rOyri/4lTY838FYj9yuu+mGqGiaue60Tmm0hK6aYD76vRxjnVaPpIAHOgdcS9qZwChxLid/ jnvWauYEm/FNoWU8AgUvoIx/ytWZcWq85efSZSzXFD6I+QrvBIAzt03ZHzaM7H09c5dE0dN0 8wCBgwXMCKFisPr+Zy9EtNz05FLwMnDZOvzu1lG5BSAVLMMZ8CGRK/Ho9hFwD03m8ZCW+7EY NYUYiZuaxKGZABTPlAQC9Q1m+LAanvXKmUE7g7K4/dnpTGNnGSd05C0WDbRUsaNSshP2F6Ru 0rN/njjAwFcP9uaodaA2iv23bKUxnKhBer+EpWB+/FygwGLmVYUDUYPWFicpf+ZsgmHDoc3x 0s8v3BGQbIJ3E6hQ8T5Xha4iGWZpRNaUN1Ve8U49QWMx6z88wufQG8eQVZpeNEg8cM7WzEu/ luIhM/yQyxitqWPTnCQ/avSqim9UQAfN2QCeCQHXyMD7sX4q4grg1TJQ8oLLUKuptj8GDW1y TbaqiE73uwXlZRSifX9+k3biTWxoJSPVhQy+gjcQmOi6EV+eZKhYIurr1Pc6J6sMbqkc7VIh 1Bc8+D20QzEJcjlePClKAnVIIyU2g==
  • Ironport-hdrordr: A9a23:LDear61V/fRYaMGDs9j3dwqjBEIkLtp133Aq2lEZdPUMSL3lqy iv9M5rsCMc+wxhJ03I+OrwSpVoJEm3yXcb2/hoAV7PZniEhILsFvAe0WKA+UyUJ8SdzJ8n6U 4IScEXY73N5BpB/LzHCWGDcurIq+P3lJxA8N2uqUuFOjsaDJ2IgT0JaDpz0XcbeOCFP/cE/V anifauzlGbCA0qhqXSPAh3YwGfnay7qHusW295O/du0nj/sdpg0tDHLyQ=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, Sep 19, 2023 at 06:00:32PM +0200, Jan Beulich wrote:
> On 19.09.2023 17:56, Julien Grall wrote:
> > On 19/09/2023 16:09, Chuck Zmudzinski wrote:
> >> On 9/19/2023 8:10 AM, Julien Grall wrote:
> >>> On 19/09/2023 08:02, Roger Pau Monné wrote:
> >>>> On Mon, Sep 18, 2023 at 07:49:26PM +0100, Julien Grall wrote:
> >>>>> (+Roger and moving to xen-devel)
> >>>>> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
> >>>>>> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
> >>>>>>> I tested Xen 4.18~rc0 on Alma Linux 9 and my first tests indicate it 
> >>>>>>> works fine for starting the guests I manage but I notice that 
> >>>>>>> immediately after boot and with only dom0 running on the system, I 
> >>>>>>> get:
> >>>>>>>
> >>>>>>> [user@Malmalinux ~]$ sudo xl dmesg
> >>>>>>> 00bee72000-00000bee72fff type=7 attr=000000000000000f
> >>>>>>> (XEN)  00000bee73000-00000bef49fff type=4 attr=000000000000000f
> >>>>>>> (XEN)  00000bef4a000-00000bef4bfff type=7 attr=000000000000000f
> >>>>>>> (XEN)  00000bef4c000-00000befbafff type=4 attr=000000000000000f
> >>>>>>> (XEN)  00000befbb000-00000befbbfff type=7 attr=000000000000000f
> >>>>>>> ...
> >>>>>>>
> >>>>>>> I have noticed the buffer fills up quickly on earlier Xen versions, 
> >>>>>>> but never have I seen it fill up during boot and with only dom0 
> >>>>>>> running.
> >>>>>>>
> >>>>>>> Can increasing the buffer fix this? How would one do that?
> >>>>>>>
> >>>>>>> Thanks
> >>>>>>>
> >>>>>>
> >>>>>> I see the setting is the command line option conring_size:
> >>>>>>
> >>>>>> https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html#conring_size
> >>>>>>
> >>>>>> The default is 16k, I tried 48k and that was big enough to capture all 
> >>>>>> the messages at boot for 4.18 rc0. This is probably not an issue if 
> >>>>>> the release candidate is being more verbose than the actual release 
> >>>>>> will be. But if the release is still this verbose, maybe the default 
> >>>>>> of 16k should be increased.
> >>>>>
> >>>>> Thanks for the report. This remind me the series [1] from Roger which 
> >>>>> tries
> >>>>> to increase the default size to 32K. @Roger, I am wondering if we should
> >>>>> revive it?
> >>>>
> >>>> I think the relevant patch (2/2) will still apply as-is, it's just a
> >>>> Kconfig one line change.  I'm however thinking it might be better to
> >>>> bump it even further, to 128K.  From a system point of view it's still
> >>>> a very small amount of memory.
> >>>
> >>> I don't have a strong opinion about 128K vs 32K.
> >>
> >> I am sure 32k will be big enough on my system, and based on Jan's comment
> >> about release builds being less verbose, the current default of 16k may
> >> still work on my system once the release is out. 
> > 
> > I think it is quite (actually more) important to capture all the logs 
> > even in non-release build. So it would makes sense to increase the 
> > buffer to 32KB.
> > 
> > An alternative option would be to have a different limit for debug and 
> > production build. Not sure what the others thinks.
> 
> I would certainly like a two-way default better than the uniform bumping
> to 128k.

It's not just the output from Xen that goes into such buffer, but also
the output from dom0.  Hence making the decision based on Xen release
vs debug builds doesn't seem reliable to me.

Again 128K is a trivial amount of memory on current systems, I'm quite
sure 32K is already not enough on some of the systems I test with, but
anyway.  Feel free to pick and adjust the patch to 32K if that's the
only option, in any case it's better than the current default of 16K.

Thanks, Roger.



 


Rackspace

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