From: "Jan Beulich" Subject: Re: [PATCH v2] console: increase initial conring size Date: Tue, 09 Dec 2014 09:12:21 +0000 Message-ID: <5486CB05020000780004DFF7@mail.emea.novell.com> References: <1417794612-27702-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XyGqH-0006Xb-KJ for xen-devel@lists.xenproject.org; Tue, 09 Dec 2014 09:12:25 +0000 In-Reply-To: <1417794612-27702-1-git-send-email-daniel.kiper@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 05.12.14 at 16:50, wrote: > In general initial conring size is sufficient. However, if log > level is increased on platforms which have e.g. huge number > of memory regions (I have an IBM System x3550 M2 with 8 GiB RAM > which has more than 200 entries in EFI memory map) then some > of earlier messages in console ring are overwritten. It means > that in case of issues deeper analysis can be hindered. Sadly > conring_size argument does not help because new console buffer > is allocated late on heap. It means that it is not possible to > allocate larger ring earlier. So, in this situation initial > conring size should be increased. My experiments showed that > even on not so big machines more than 26 KiB of free space are > needed for initial messages. In theory we could increase conring > size buffer to 32 KiB. However, I think that this value could be > too small for huge machines with large number of ACPI tables and > EFI memory regions. Hence, this patch increases initial conring > size to 64 KiB. > > Signed-off-by: Daniel Kiper Actually meanwhile I spotted a (minor) downside to this approach: It raises the lower limit of the permanent ring size to 64k too. Jan