From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6552866560629800960 X-Received: by 2002:adf:e544:: with SMTP id z4-v6mr3270279wrm.6.1525710713227; Mon, 07 May 2018 09:31:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:39c1:: with SMTP id g184-v6ls1962860wma.9.canary-gmail; Mon, 07 May 2018 09:31:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpB/ORCIHhOTR0IpzI3jQN9PoLQci7TfhOEhLS/DrmpFmymTDIy0DgPDYz4m17E46YZGXp/ X-Received: by 10.28.126.65 with SMTP id z62mr180290wmc.29.1525710712799; Mon, 07 May 2018 09:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525710712; cv=none; d=google.com; s=arc-20160816; b=Pz21/E6Ah5w+oP06NvnMnussPG0NHqLYYvchbQryjEOC6CrupuuDgs+r+P/I4gPf64 6qzXlyOFdmKgOxFyczuyiFzcuC+yeRAAZfz6iXtFpd7QlsvSJII6ZnIrrSCHMQDA6vx7 0r1LUrTPRJk32E5imN8yHbngkkepGy9ELNAjYWHHEO4m5w7XuiEQYL8ixvRn43YZfweD ursJ1ye1dee7PZhOtl45Gl9m4gcX9fFuHyQRupr49XRHqLa2FYG35YMxLfTh/ulqIC9N Im6dlDWhJPGip+dS7FNhC4EGyHAEfOqBTvy/BMGS0a0wd9ZTnq94AUVWbSMZE5D7GUhC gBfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=u00qY2lWuRor5IVL4xDU/mih6/pP9N0Wd4pkT7ETQzg=; b=uJcvTvI4RHLhDyxXDtfrWHIq/Riy5ieHDnGGmu2Qk7K4qOptLh09FJYpNsOp0nYLI8 +JjtepL/+e16dTS4zWiUwzel5OEm5bJ56WP38JRy1SoG66hQZecHSdOWPryAuj4TaSyz /JptpAt0FULTlx1wTY+KmLzLlZ5vwuYEKCRZqFKGOjn4zYB56KJ5z4iI+IVWJ8mrRsD2 DexLrRx5NcQhkHt0m1kmelQWSaY8TF81s91221xFxLNsESKed5FOr3iFZEQleLyyIyZJ +cnCzL55aNHhfijtGggQwZjxPwDHyyzlz0Ac2WQDL2XyiL3i0rgiMUyHPU35hAr7I4qo Z10w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id s130-v6si405088wms.0.2018.05.07.09.31.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 09:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w47GVq4o019949 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 May 2018 18:31:52 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w47GVqeH001411; Mon, 7 May 2018 18:31:52 +0200 Date: Mon, 7 May 2018 18:31:51 +0200 From: Henning Schild To: Alexander Smirnov Cc: isar-users Subject: Re: [PATCH] isar-bootstrap: Increase cache room Message-ID: <20180507183151.16ff9387@md1pvb1c.ad001.siemens.net> In-Reply-To: <52bdb5c0-5f1f-5efc-5de3-9c5a9253ae3b@ilbers.de> References: <20180507154836.25738-1-asmirnov@ilbers.de> <52bdb5c0-5f1f-5efc-5de3-9c5a9253ae3b@ilbers.de> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: vlq984X+MPho Am Mon, 7 May 2018 18:57:36 +0300 schrieb Alexander Smirnov : > On 05/07/2018 06:48 PM, Alexander Smirnov wrote: > > According to the man page for 'apt.conf', there are three variables: > > - Cache-Start: initial size of mmap cache room > > - Cache-Grow: gap for dynamic mmap cache growth > > - Cache-Limit: maximal cache size after growth > > > > If dynamic resize of mmap region is not avaialbe, the apt uses > > pre-allocated Cache-Start room [1] for mmap file. > > > > Building Isar on one of the Debian host with kernel 3.4, I got the > > following problem for 'qemuarm64-stretch' configuration: > > > > 8<-- > > Hit:1 http://security.debian.org stretch/updates InRelease > > Ign:2 http://ftp.de.debian.org/debian stretch InRelease > > Hit:3 http://ftp.de.debian.org/debian stretch-updates InRelease > > Hit:4 http://ftp.de.debian.org/debian stretch Release > > E: Dynamic MMap ran out of room. Please increase the size of > > APT::Cache-Start. Current value: 25165824. (man 5 apt.conf) qemu: > > uncaught target signal 11 (Segmentation fault) - core dumped > > Segmentation fault 8<-- > > > > I have no information, why exactly the room could not be re-sized > > on this system, but it would be better to increase the initial room > > size for apt. This patch increases the default apt cache twice. > > > > 1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657085 > > Missed :-( What is your conclusion from that link and what does it mean for the patch? I do not like adding magic numbers and changing the default config, especially if the whole reason is to work around a problem only found on outdated build hosts (3.4 really?) If this patch needs to go in, it is missing the cleanup step. Henning > > Signed-off-by: Alexander Smirnov > > --- > > meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb > > b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb index > > a38dd88..4cdefaa 100644 --- > > a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb +++ > > b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb @@ -187,7 > > +187,9 @@ do_apt_update() { > > E="${@bb.utils.export_proxies(d)}" > > export DEBIAN_FRONTEND=noninteractive > > - sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-get update -y > > + sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-get update -y \ > > + -o APT::Cache-Start=50331648 > > + > > sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-get dist-upgrade > > -y \ -o Debug::pkgProblemResolver=yes > > } > > >