From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6552866560629800960 X-Received: by 2002:a19:d414:: with SMTP id l20-v6mr1426528lfg.36.1525708665574; Mon, 07 May 2018 08:57:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9e03:: with SMTP id e3-v6ls1997311ljk.10.gmail; Mon, 07 May 2018 08:57:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQgSulIeSBC90rQhSiiA8+qd9Z1mVmje6MsHeLS428MVemfCUW+Jsu9OlF/3pAGGQObOOF X-Received: by 2002:a2e:7306:: with SMTP id o6-v6mr2331868ljc.30.1525708664821; Mon, 07 May 2018 08:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525708664; cv=none; d=google.com; s=arc-20160816; b=L1aqBpOy5nm10rGh0ekcG59umqSnP0XXV6KVvVoTrSL+u2kaQcA8FAEAHSSQXd40SW vAG/X7D/z7nlR/tNMQZinwTURjxQzr/Hqj1XneDGsKC+kk/L3xPEiQn7GJDojvtMWsje fKZMzvbCs4jZbBMxiXFq3CqpJ31/Et+MEU/uwtE6QG02YS6LHFXqHIUcxNJZr1YZ84XM MS8/GvrSIuWuB44rr5nEtt9UQdZFexCXZV+n9tVmMZX1pT9YkZsI5tfAa7sNoSlPIDVa ARwMQrcL8cn/gUL9bnvczAlfUBDBVtE3Lfrctx9GreQFh9/HtHE2zj0QCCNj/oq59nLE Zy5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=peTFKjuK8nAlB2dguXEboHHbE+yCziMaGS2ezvO6PWg=; b=mc+EsHyjW4FhPiTq6pxHp5PFTTnLNeUUzg5u+C+z6xcNoZlJuIbzChgSb5/eSBSX1H CgW2yBmJB4oGxrX5r0rueIKRWojflsQIy//HYsMo5kXvykYSsvz6DYrX0CG20yhE1upm vDcj+0CH30Qw1Bq0vYzFzbCB4cwY2XVoByE0M2JKvU8Qr3MX8NASYuGYc61gfF1w1JEu D0+2rcQrZn+xP4A6cbLhc/H9ExBTyeWBnC0aT5BH1bbm+snS579XW2bn3evd84IQ9Utm guXjxNT1bm/6Fnsnb/08ymCFBd1MyAqc7hEOqCh87XgqhiMXs2EW/wEVwmOaYGQLvzCw IzqQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id d11-v6si837002lfa.0.2018.05.07.08.57.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 08:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w47FvfUI021866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 7 May 2018 17:57:43 +0200 Subject: Re: [PATCH] isar-bootstrap: Increase cache room To: isar-users References: <20180507154836.25738-1-asmirnov@ilbers.de> From: Alexander Smirnov Message-ID: <52bdb5c0-5f1f-5efc-5de3-9c5a9253ae3b@ilbers.de> Date: Mon, 7 May 2018 18:57:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180507154836.25738-1-asmirnov@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 7bs36iLbj9oT 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 :-( > 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 > } > -- With best regards, Alexander Smirnov ilbers GmbH Baierbrunner Str. 28c D-81379 Munich +49 (89) 122 67 24-0 http://ilbers.de/ Commercial register Munich, HRB 214197 General manager: Baurzhan Ismagulov