[From nobody Sun Oct  4 20:51:07 2026
Received: (at submit) by bugs.debian.org; 18 Dec 2016 17:33:19 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-16.1 required=4.0 tests=BAYES_00,HAS_PACKAGE,
 RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS,X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 138; neutral, 45; spammy,
 0. spammytokens: hammytokens:0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila, 
 0.000-+--H*RU:sanvila@unex.es,
 0.000-+--Hx-spam-relays-external:sanvila@unex.es, 0.000-+--H*RU:sk:zproxy0
Return-path: &lt;sanvila@unex.es&gt;
Received: from zmta02.unex.es ([158.49.17.56])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from &lt;sanvila@unex.es&gt;) id 1cIfKd-00042y-34
 for submit@bugs.debian.org; Sun, 18 Dec 2016 17:33:19 +0000
Received: from localhost (localhost [127.0.0.1])
 by zmta02.unex.es (Postfix) with ESMTP id A7BBC60F53
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:33:02 +0100 (CET)
Received: from zmta02.unex.es ([127.0.0.1])
 by localhost (zmta02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id pJuFW3Cm88Kc for &lt;submit@bugs.debian.org&gt;;
 Sun, 18 Dec 2016 18:33:00 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by zmta02.unex.es (Postfix) with ESMTP id 511C360F9D
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:33:00 +0100 (CET)
X-Virus-Scanned: amavisd-new at zmta02.siue
Received: from zmta02.unex.es ([127.0.0.1])
 by localhost (zmta02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 12Do2idDHCpy for &lt;submit@bugs.debian.org&gt;;
 Sun, 18 Dec 2016 18:33:00 +0100 (CET)
Received: from zproxy02.unex.es (zproxy02.servicios.unex.es [10.254.208.62])
 by zmta02.unex.es (Postfix) with ESMTPS id 285C560F53
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:33:00 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by zproxy02.unex.es (Postfix) with ESMTP id 1DFD360FF6
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:33:00 +0100 (CET)
Received: from zproxy02.unex.es ([127.0.0.1])
 by localhost (zproxy02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 8WPeyFwnWqxj for &lt;submit@bugs.debian.org&gt;;
 Sun, 18 Dec 2016 18:32:59 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by zproxy02.unex.es (Postfix) with ESMTP id 8A91B60F48
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:32:59 +0100 (CET)
X-Virus-Scanned: amavisd-new at zproxy02.siue
Received: from zproxy02.unex.es ([127.0.0.1])
 by localhost (zproxy02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id RQrYl2lFumwY for &lt;submit@bugs.debian.org&gt;;
 Sun, 18 Dec 2016 18:32:59 +0100 (CET)
Received: from tulipan.isla-invisible.es (tulipan.isla-invisible.es
 [185.92.222.134])
 by zproxy02.unex.es (Postfix) with ESMTPSA id 523B360F33
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:32:59 +0100 (CET)
Received: by tulipan.isla-invisible.es (Postfix, from userid 1000)
 id 50133A8E; Sun, 18 Dec 2016 18:32:51 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by tulipan.isla-invisible.es (Postfix) with ESMTP id 493BB183
 for &lt;submit@bugs.debian.org&gt;; Sun, 18 Dec 2016 18:32:51 +0100 (CET)
Date: Sun, 18 Dec 2016 18:32:51 +0100 (CET)
From: Santiago Vila &lt;sanvila@unex.es&gt;
To: Debian BTS &lt;submit@bugs.debian.org&gt;
Subject: snap-aligner: Build requires 188 GB of memory (fortunately not used, 
 just allocated)
Message-ID: &lt;alpine.DEB.2.11.1612181807380.32263@tulipan.isla-invisible.es&gt;
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
X-Debbugs-Cc: sanvila@debian.org
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: submit@bugs.debian.org

Package: src:snap-aligner
Version: 1.0~beta.18+dfsg-1

Hello Andreas et al.

Building this package allocates 188 GB of memory.

To see how this could be a problem, take a machine with a lot of
memory, say, 64 GB of RAM, which btw is more than three times the
amount required to build any other Debian package, and disable memory
overcommiting by creating /etc/sysctl.d/10-no-overcommit.conf with
this contents:

vm.overcommit_ratio = 100
vm.overcommit_memory = 2

Then write &quot;sysctl --system&quot; to load those values.

Then try to build this package in such machine, and it will fail.

It is normally assumed that applications overcommit as a normal
thing, but this package builds fine in a machine having as little
as 1 GB of RAM, so the overcommit ratio is about 188:1.

Maybe this package does actually require such high amount of memory to
work, but as far as building is concerned, every other Debian package
which I know (well, except gpgme which requires 230 GB, the only other anomaly
I found) could be built with only 20 GB of RAM, so this package is
really an outlier.

Thanks.
]