From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6552866560629800960 X-Received: by 2002:a2e:8049:: with SMTP id p9-v6mr2176297ljg.39.1525708139537; Mon, 07 May 2018 08:48:59 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9b07:: with SMTP id u7-v6ls2624554lji.16.gmail; Mon, 07 May 2018 08:48:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqWeUg2zmKzFIpWSsqDMH6JfGwpHS5yQXHJkkx2Ecy/qxJC78KHuTWWAQgO6tl0/E9jA1BN X-Received: by 2002:a2e:9bc6:: with SMTP id w6-v6mr1830442ljj.3.1525708138995; Mon, 07 May 2018 08:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525708138; cv=none; d=google.com; s=arc-20160816; b=Iq9mFKy2waAw2TRWGkjmKGnxCrfzA9eVWdL0SMLrH6WM359efMYvmNxPmKJYUPs5Wz 0cALQNHborsFQFqU3hBxyMEx7c9hUetSgTw6bA4bf58ndAxxwBLzwgCpeKk2PpquiWWE +N6c7ZCkwbIEnkIVtaN/YngwHiOOMRVmIcuzAZT/PP04+CrpXfp6UF2uewarImVlvl5s UXtLwP+ejpVPGY5lh3Sa8qaWgjfXYXYBvLi+3b63X8hg0FLEhCuSMoOseDCffPhL7MPe b/K5fxSG2S9TyeeyIyaMica/Qwz8qRSX/I10YwNS/Wc3GdF5ytD3NIgHBc5qqh3TLbrD KHWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=wT45yqjjEOCVhIULeJY7NmGMOWGbzkIJ/HmGrocO09Q=; b=Xt6eZjuSUkZH5cKbBimp/7LkLunrU8XsG9yVYKz1vH88SPqYmVsRQe7Epvv+ud7kaS SVYOjTnJJYAfikmpasjHA1wwLiVXX3bxUNTUtOvePDYkDRaWHkIQXzrSVNgf2agi+rd/ GB8xIlqQzTitKO1GDBmNXoEp+52KUIfs+FMcXH+lGUlMwbfvfZu8K2Lz9DGUsnUPsBDH zlrHcOG/lTk3PTCuCOYxkLUuKImkdLlkVz0vYZALrrqlP2wUxEZ83KPl54u82xlsOMOH 1bDLad401sfo11seWgca0dIVebfZ7XlMy/SsIpc5oXGdWrm2UeADNNm6NVSkWsdiWsvL NqeQ== 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 x13-v6si527112ljh.5.2018.05.07.08.48.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 08:48:58 -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 localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w47Fmhmq021851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 7 May 2018 17:48:49 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH] isar-bootstrap: Increase cache room Date: Mon, 7 May 2018 18:48:36 +0300 Message-Id: <20180507154836.25738-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: PW/jIgcsWKN5 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 + sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-get dist-upgrade -y \ -o Debug::pkgProblemResolver=yes } -- 2.1.4