🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #386

Bug#1149922: guess-concurrency: Please consider using MemTotal instead of MemAvailable for --require-mem

#386
From: Aurelien Jarno
Date: Sat, 10 Oct 2026 17:50
30 lines
3293 bytes
Hi Helmut,

On 2026-10-10 12:00, Helmut Grohne wrote:
> Hi Aurelien and Adrian,
> 
> On Fri, Oct 09, 2026 at 08:48:40PM +0200, Aurelien Jarno wrote:
> > The memory used by tmpfs, but not yet swapped, appears in "Shmem". 
> > Therefore how about using
> > 
> >   MemAvailable + min(SwapFree, Shmem) ?
> 
> Thank you for this suggestion. I implemented this in
> https://salsa.debian.org/helmutg/guess_concurrency/-/commit/12e7a4d1d72d31fa0c731912985c0069210f3974.
> Would you confirm that it adequately solves your problem?

Yes, this solves the issue. It still return a bit less than the RAM 
available, depending on what is running on the host on the moment 
guess-concurrency is run (e.g. puppet run), but this is already a 
significant improvement.

For the vtk9 case, that will increase the number of jobs on a host with 
16GB RAM from 2 to 3. The next step is to work with the maintainer to 
define the correct required memory size.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Technical Details
Message-ID: <NMJmN-4Jnc-15@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NKrNn-3tTU-1@gated-at.bofh.it> <NLk77-3WQi-15@gated-at.bofh.it> <NMnmh-4xlK-1@gated-at.bofh.it> <NMoBI-4xWS-29@gated-at.bofh.it> <NMCbD-4FI7-1@gated-at.bofh.it> <NKrNn-3tTU-1@gated-at.bofh.it> <NMCbD-4FI7-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Aurelien Jarno <aurel32@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1149922: guess-concurrency: Please consider using MemTotal instead of MemAvailable for --require-mem
Date: Sat, 10 Oct 2026 19:50:01 +0200
Message-ID: <NMJmN-4Jnc-15@gated-at.bofh.it>
References: <NKrNn-3tTU-1@gated-at.bofh.it> <NLk77-3WQi-15@gated-at.bofh.it> <NMnmh-4xlK-1@gated-at.bofh.it> <NMoBI-4xWS-29@gated-at.bofh.it> <NMCbD-4FI7-1@gated-at.bofh.it> <NKrNn-3tTU-1@gated-at.bofh.it> <NMCbD-4FI7-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Oct 10 17:45:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Aurelien Jarno <aurel32@debian.org>, 1149922@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: helmut@subdivi.de
X-Debian-Pr-Message: followup 1149922
X-Debian-Pr-Package: src:guess-concurrency
X-Debian-Pr-Source: guess-concurrency
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/2.4.1 (2026-07-04)
X-Debian-User: aurel32
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996106
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 30
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1149922@bugs.debian.org, bunk@debian.org
X-Original-Date: Sat, 10 Oct 2026 19:42:08 +0200
X-Original-Message-ID: <asp48LffB-nr4o0R@aurel32.net>
X-Original-References: <179110986695.1235681.8806750415812659926.reportbug@ohm.local> <20261004170411.GB3267@subdivi.de> <askt7xcP97t61BFT@aurel32.net> <ask3CL84zWE2dXOh@aurel32.net> <20261010100026.GA2400016@subdivi.de> <179110986695.1235681.8806750415812659926.reportbug@ohm.local> <20261010100026.GA2400016@subdivi.de>