From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6552866560629800960 X-Received: by 2002:a19:c4c5:: with SMTP id u188-v6mr685842lff.12.1526289106436; Mon, 14 May 2018 02:11:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:208b:: with SMTP id g133-v6ls1542341lfg.3.gmail; Mon, 14 May 2018 02:11:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrbMHFRwohrNTVUUBFRZ0CKWP/wm+8/5fcyXttaKg0hPHCZxnNawCJ0vRMa5hLkUyV/dZlB X-Received: by 2002:a19:c997:: with SMTP id z145-v6mr685967lff.44.1526289105779; Mon, 14 May 2018 02:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526289105; cv=none; d=google.com; s=arc-20160816; b=i+JFEajkq9/QJbeFZj0FVIVKysiG7bjBPTCLsJ+q+82khwFPf9kET8gWBYmtms3ah8 rGKdK9O2KlMajlLakb3oXGhx3/MeBOpcNspacTrqeBGb1DZiMJja7UueDz6selp4Keq0 ZXg0z82MxcaRExBydzcfFJ9Km6CYVbR+lyFCWTPld6/w1AY5+LZJllIWE4bxRC3cyqby U8/nW7tsnemIvbGoeHq4B400L076b6OXkZBissF1Y5O6jCe1jEPJOF1U6YPWJxuyng8B rt+M1z4g6MaXxvbPYK2vp0+qZ2w8kg+kp0Mm4+iyslj5PqSQnNJ6JXOaT3dDHShXO9vl qekA== 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:references:to:from:subject :arc-authentication-results; bh=1mzWGqOPk7Dq0dEGy50jlgsH3I/KBNCHNRpK/VYvlHk=; b=vZqbllyepqAUyX9iUGMsF8xI6yAKQDQgKr+mRL0Ho0fFrfOg73W9DWe8Pgvwe9bouh rBYjSUzWQEIaReEsKLjweJPnanDJ46AXIiApmV8I6+66G0PlE8L5BcX1QU86OUPHr0He rYS63CAVzv/PL35jQ2r/t+AFE6QmfbrWIujBpE0ycE+AFvh2mrQ9mBxwEBT+oYrS7Y6x GY2IwBG9q6K2ItN874Ra1FQAVCsZWpreTd3/Doj6r62Z2xqcXv3NGNhz6Pvrrlcvl6ZB B1uj0jncULEFpuPRXRoxkb6wlP2+p+GXdOye/FNll1Pmu8ctGFjqb6hobezP7J2QOSGH pYWg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id b65-v6si382286ljb.1.2018.05.14.02.11.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 02:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w4E9Biaf004992 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 May 2018 11:11:45 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w4E9BiL7019692; Mon, 14 May 2018 11:11:44 +0200 Subject: Re: [PATCH] isar-bootstrap: Increase cache room From: Claudius Heine To: Alexander Smirnov , isar-users@googlegroups.com References: <20180507154836.25738-1-asmirnov@ilbers.de> <65e5d16d-592b-18b2-999f-83bfc13169f0@siemens.com> Message-ID: <3c2e0ed3-a0c2-5aca-37b8-ef5b884f8697@siemens.com> Date: Mon, 14 May 2018 11:11:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <65e5d16d-592b-18b2-999f-83bfc13169f0@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: vfZHadVmq8QB On 2018-05-14 10:54, [ext] Claudius Heine wrote: > Hi Alex, > > On 2018-05-07 17:48, 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. >> >> 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 >> + > > If this is needed, then it might be better to set this option in a > apt-preferences file with the "DISTRO_APT_PREFERENCES" variable. Ah, sorry. I was wrong. I meant setting this is isar-apt.conf. > > Cheers, > Claudius > >>       sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-get dist-upgrade -y \ >>                                         -o Debug::pkgProblemResolver=yes >>   } >> > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de