From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6552866560629800960 X-Received: by 2002:a1c:4188:: with SMTP id o130-v6mr1021966wma.26.1526288049489; Mon, 14 May 2018 01:54:09 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ea87:: with SMTP id s7-v6ls4310727wrm.14.gmail; Mon, 14 May 2018 01:54:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2WnQBjsl+4hAcXMeo6LtRlBkEkWTNjOPYwSFt2D7B3lw3px2HzKX2HLWLhCpJsTx+wLiC X-Received: by 2002:adf:bc03:: with SMTP id s3-v6mr625364wrg.27.1526288049060; Mon, 14 May 2018 01:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526288049; cv=none; d=google.com; s=arc-20160816; b=XeJDft4LLYN/Ut207JmgSTRDgiRdg21VODrryQikD2GXAm3cIkEpP+lQ1L+FeHqjOP LKs2v/XAwi8PlzVCwnTRImMzCiEB5LXHg7b8xxjfsxHOUX9FV4FdFHjsH9MfTi2lVAWd puCS160UMMrAh5jprK4zQWJ5NfGFAYx16Y8yulu2HSLX+9M4i12aqrsq4mTZSJaTxFUo hMqsGxoHFr9gEFcNifOletb+aXx1md2yCdQz8nS/W2afEUI1X9VRBldWMvSBBOPYYJNu GFNGEnQxoRm1aIq2slBA7a6VECuVG/janBVNhEMkqA1Firzzi2w/DIlgD9g1hrLE/G8s AtPw== 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=Yx8U9Yv+Qqj+EqqxCotAGiVQz0D3g27cigOkTsHZwyw=; b=clAfMi0NtfSAN0bNrdP/F9keR9RwvmN6OEu9ldNhnwh03l/KLvgp12MwvRFAW3e/m4 oRdBXtX6fEPt6DSrUTdm1O42hgM+mKm07ga7G9ExQ3u/Hbrt4h9YaHFN4nn5ZzFjBA5U LbkOBxGqkwxeOT7J5ogqCuQ5wYRqySpnHfM1/vpPgP+DPxo0769uXtTnFTDyiQgB/tzK ZHDYY4GHC8JZ0RnsJSo2u9CAmNb0oIcgbjuMs9zJG0PrwXookXDPrz1sU9ca1BWvmdOJ GLbv8dQSCnwjpsHPfpP7t2Bhtd62QGQf0XRMYIKfyvMLSx4l9t5D1gK7pQxGtl/Pzp4Y fZMQ== 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 g12-v6si297581wrm.4.2018.05.14.01.54.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 01:54:09 -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 mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w4E8s8Wk004070 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 May 2018 10:54:08 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4E8s8hk012638; Mon, 14 May 2018 10:54:08 +0200 Subject: Re: [PATCH] isar-bootstrap: Increase cache room To: Alexander Smirnov , isar-users@googlegroups.com References: <20180507154836.25738-1-asmirnov@ilbers.de> From: Claudius Heine Message-ID: <65e5d16d-592b-18b2-999f-83bfc13169f0@siemens.com> Date: Mon, 14 May 2018 10:54:08 +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: <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: 9jrPVD5O0SqU 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. 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