All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: xl dmesg buffer too small for Xen 4.18?
       [not found]   ` <9baf6bec-49c6-474b-a5e3-5f0473aaffc7@netscape.net>
@ 2023-09-18 18:49     ` Julien Grall
  2023-09-18 19:28       ` Chuck Zmudzinski
                         ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Julien Grall @ 2023-09-18 18:49 UTC (permalink / raw)
  To: Chuck Zmudzinski; +Cc: xen-devel, Roger Pau Monné

(+Roger and moving to xen-devel)

Hi,

On 18/09/2023 19:17, Chuck Zmudzinski wrote:
> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
>> Hello,
>>
>> 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?

Cheers,

[1] 
https://lore.kernel.org/xen-devel/20220630082330.82706-1-roger.pau@citrix.com/

-- 
Julien Grall


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-18 18:49     ` xl dmesg buffer too small for Xen 4.18? Julien Grall
@ 2023-09-18 19:28       ` Chuck Zmudzinski
  2023-09-19  6:47       ` Jan Beulich
  2023-09-19  7:02       ` Roger Pau Monné
  2 siblings, 0 replies; 11+ messages in thread
From: Chuck Zmudzinski @ 2023-09-18 19:28 UTC (permalink / raw)
  To: Julien Grall; +Cc: xen-devel, Roger Pau Monné

On 9/18/2023 2:49 PM, Julien Grall wrote:
> (+Roger and moving to xen-devel)
> 
> Hi,
> 
> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
>> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
>>> Hello,
>>>
>>> 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?
> 
> Cheers,
> 
> [1] 
> https://lore.kernel.org/xen-devel/20220630082330.82706-1-roger.pau@citrix.com/
> 

I just tested with 24k, and that is also big enough. So 32k would also be good. But the default of 16k appears to be too small for Xen 4.18 rc0 on my machine.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-18 18:49     ` xl dmesg buffer too small for Xen 4.18? Julien Grall
  2023-09-18 19:28       ` Chuck Zmudzinski
@ 2023-09-19  6:47       ` Jan Beulich
  2023-09-19  7:02       ` Roger Pau Monné
  2 siblings, 0 replies; 11+ messages in thread
From: Jan Beulich @ 2023-09-19  6:47 UTC (permalink / raw)
  To: Chuck Zmudzinski; +Cc: xen-devel, Roger Pau Monné, Julien Grall

On 18.09.2023 20:49, Julien Grall wrote:
> 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.

Just to mention it: Log-level defaults are different for debug and release builds,
which means release builds are typically less verbose.

Jan


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-18 18:49     ` xl dmesg buffer too small for Xen 4.18? Julien Grall
  2023-09-18 19:28       ` Chuck Zmudzinski
  2023-09-19  6:47       ` Jan Beulich
@ 2023-09-19  7:02       ` Roger Pau Monné
  2023-09-19 12:10         ` Julien Grall
  2 siblings, 1 reply; 11+ messages in thread
From: Roger Pau Monné @ 2023-09-19  7:02 UTC (permalink / raw)
  To: Julien Grall; +Cc: Chuck Zmudzinski, xen-devel

On Mon, Sep 18, 2023 at 07:49:26PM +0100, Julien Grall wrote:
> (+Roger and moving to xen-devel)
> 
> Hi,
> 
> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
> > On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
> > > Hello,
> > > 
> > > 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'm happy to repost with an increased buffer size, but only if there's
someone willing to Ack it, otherwise it's not worth spending time on
it.

Thanks, Roger.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19  7:02       ` Roger Pau Monné
@ 2023-09-19 12:10         ` Julien Grall
  2023-09-19 15:09           ` Chuck Zmudzinski
  0 siblings, 1 reply; 11+ messages in thread
From: Julien Grall @ 2023-09-19 12:10 UTC (permalink / raw)
  To: Roger Pau Monné; +Cc: Chuck Zmudzinski, xen-devel

Hi Roger,

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)
>>
>> Hi,
>>
>> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
>>> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
>>>> Hello,
>>>>
>>>> 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'm happy to repost with an increased buffer size, but only if there's
> someone willing to Ack it, otherwise it's not worth spending time on
> it.

Sorry that patch fell through the cracks. I would be happy to ack the patch.

Cheers,

-- 
Julien Grall


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 12:10         ` Julien Grall
@ 2023-09-19 15:09           ` Chuck Zmudzinski
  2023-09-19 15:56             ` Julien Grall
  0 siblings, 1 reply; 11+ messages in thread
From: Chuck Zmudzinski @ 2023-09-19 15:09 UTC (permalink / raw)
  To: Julien Grall, Roger Pau Monné, Jan Beulich; +Cc: xen-devel

On 9/19/2023 8:10 AM, Julien Grall wrote:
> Hi Roger,
> 
> 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)
>>>
>>> Hi,
>>>
>>> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
>>>> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
>>>>> Hello,
>>>>>
>>>>> 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 am willing to defer to
whatever the developers decide according to the ordinary process for deciding
such questions.

> 
>> 
>> I'm happy to repost with an increased buffer size, but only if there's
>> someone willing to Ack it, otherwise it's not worth spending time on
>> it.
> 
> Sorry that patch fell through the cracks. I would be happy to ack the patch.
> 
> Cheers,
> 



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 15:09           ` Chuck Zmudzinski
@ 2023-09-19 15:56             ` Julien Grall
  2023-09-19 16:00               ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Julien Grall @ 2023-09-19 15:56 UTC (permalink / raw)
  To: Chuck Zmudzinski, Roger Pau Monné, Jan Beulich; +Cc: xen-devel

Hi Chuck,

On 19/09/2023 16:09, Chuck Zmudzinski wrote:
> On 9/19/2023 8:10 AM, Julien Grall wrote:
>> Hi Roger,
>>
>> 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)
>>>>
>>>> Hi,
>>>>
>>>> On 18/09/2023 19:17, Chuck Zmudzinski wrote:
>>>>> On 9/18/2023 9:00 AM, Chuck Zmudzinski wrote:
>>>>>> Hello,
>>>>>>
>>>>>> 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.

Cheers,

-- 
Julien Grall


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 15:56             ` Julien Grall
@ 2023-09-19 16:00               ` Jan Beulich
  2023-09-19 16:07                 ` Chuck Zmudzinski
  2023-09-19 16:10                 ` Roger Pau Monné
  0 siblings, 2 replies; 11+ messages in thread
From: Jan Beulich @ 2023-09-19 16:00 UTC (permalink / raw)
  To: Julien Grall; +Cc: xen-devel, Chuck Zmudzinski, Roger Pau Monné

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.

Jan


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 16:00               ` Jan Beulich
@ 2023-09-19 16:07                 ` Chuck Zmudzinski
  2023-09-19 16:10                 ` Roger Pau Monné
  1 sibling, 0 replies; 11+ messages in thread
From: Chuck Zmudzinski @ 2023-09-19 16:07 UTC (permalink / raw)
  To: Jan Beulich, Julien Grall; +Cc: xen-devel, Roger Pau Monné

On 9/19/2023 12:00 PM, 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.
> 
> Jan

I think for release builds (production) minimize it as much as possible without
losing the less verbose logs. For debug builds, make it as big as needed for
the convenience of developers and the more verbose logs.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 16:00               ` Jan Beulich
  2023-09-19 16:07                 ` Chuck Zmudzinski
@ 2023-09-19 16:10                 ` Roger Pau Monné
  2023-09-20 12:06                   ` Julien Grall
  1 sibling, 1 reply; 11+ messages in thread
From: Roger Pau Monné @ 2023-09-19 16:10 UTC (permalink / raw)
  To: Jan Beulich; +Cc: Julien Grall, xen-devel, Chuck Zmudzinski

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: xl dmesg buffer too small for Xen 4.18?
  2023-09-19 16:10                 ` Roger Pau Monné
@ 2023-09-20 12:06                   ` Julien Grall
  0 siblings, 0 replies; 11+ messages in thread
From: Julien Grall @ 2023-09-20 12:06 UTC (permalink / raw)
  To: Roger Pau Monné, Jan Beulich; +Cc: xen-devel, Chuck Zmudzinski

Hi Roger,

On 19/09/2023 17:10, Roger Pau Monné wrote:
> 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.

Fair point. It seems to me you want to have a size that cover pretty 
much everyone. Which is fine, but may have unintented impact on user 
that want to reduce the footprint of Xen.

> 
> Again 128K is a trivial amount of memory on current systems

I am not sure I would call it trivial. For Arm, this is about 12% of the 
size of Xen (currently about 1MB). Right now, I am not aware of users 
that may try to have a very slim down Xen. But I wouldn't suprised if 
this will come up in the future and therefore reserving 128K for the 
console may not be desirable.

Admittly those users would likely try to tailor Xen. So a bigger default 
would not matter. But this is showing that there are conflicting 
requirements and we need to find a middle ground.

> , 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.

Jan seems to be more happy with 32K. So I will adjust the patch to 32K. 
We can refine it if we notice that this is not sufficient for most of 
the systems.

Cheers,

---
Julien Grall


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-09-20 12:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <b20bdc7e-4c07-4bde-b206-4142310211d4.ref@netscape.net>
     [not found] ` <b20bdc7e-4c07-4bde-b206-4142310211d4@netscape.net>
     [not found]   ` <9baf6bec-49c6-474b-a5e3-5f0473aaffc7@netscape.net>
2023-09-18 18:49     ` xl dmesg buffer too small for Xen 4.18? Julien Grall
2023-09-18 19:28       ` Chuck Zmudzinski
2023-09-19  6:47       ` Jan Beulich
2023-09-19  7:02       ` Roger Pau Monné
2023-09-19 12:10         ` Julien Grall
2023-09-19 15:09           ` Chuck Zmudzinski
2023-09-19 15:56             ` Julien Grall
2023-09-19 16:00               ` Jan Beulich
2023-09-19 16:07                 ` Chuck Zmudzinski
2023-09-19 16:10                 ` Roger Pau Monné
2023-09-20 12:06                   ` 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.