From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3AAE1158094 for ; Sun, 28 Aug 2022 13:10:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99C82E0942; Sun, 28 Aug 2022 13:10:12 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20A3EE086E for ; Sun, 28 Aug 2022 13:10:11 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id AE6486008C68 for ; Sun, 28 Aug 2022 14:10:10 +0100 (BST) X-ASG-Debug-ID: 1661692209-055413379c31dc6f0001-LfjuLa Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183]) by mailgw01.thundermail.uk with ESMTP id MjGwj7MARk80uvHM (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 28 Aug 2022 14:10:09 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Apparent-Source-IP: 149.255.60.183 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id DD53AC74F39 for ; Sun, 28 Aug 2022 14:10:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1661692210; bh=1VQksGmyCow5TjgwzcTN+Ts1McR5CLCaK0rkxvcpzPQ=; h=From:To:Subject; b=fO7w8YFOfFNzvke7OPsMiykEyZbqpzMSQCItle5TF2o/GnYSPgO+cXRFPv+Q+T2BY TICpLEaFPkeDPDp8R1L2V7ISU/gweaoRJ4HRNTru0GNiJfhSpyr2s7kozLDlLnA5ST H/zDXD923cUHtx+qkz2JgPToYWfFzJnJvK4d3OPA= From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Limiting amount of memory a program can use. Date: Sun, 28 Aug 2022 14:10:08 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Limiting amount of memory a program can use. Message-ID: <3689108.kQq0lBPeGt@lenovo.localdomain> In-Reply-To: <1905896.PYKUYFuaPT@lenovo.localdomain> References: <464b2b22-6c7c-6dd1-c0b0-b4905222943f@gmail.com> <2652448.mvXUDI8C0e@wstn> <1905896.PYKUYFuaPT@lenovo.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3452141.iIbC2pHGDl"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20220828131010.1076570.75220@cloud220.unlimitedwebhosting.co.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Start-Time: 1661692209 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 1092 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.100390 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: f7e24f31-eb51-43ef-9065-57fb5bec0fcf X-Archives-Hash: ccf3ad4c2da2825f0d104df532431742 --nextPart3452141.iIbC2pHGDl Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Date: Sun, 28 Aug 2022 14:10:08 +0100 Message-ID: <3689108.kQq0lBPeGt@lenovo.localdomain> In-Reply-To: <1905896.PYKUYFuaPT@lenovo.localdomain> MIME-Version: 1.0 On Sunday, 28 August 2022 14:03:00 BST you wrote: > On Sunday, 28 August 2022 13:56:09 BST Peter Humphrey wrote: > > On Sunday, 28 August 2022 13:24:46 BST Dale wrote: > > > Is this something I do on the command line or a setting is some file > > > somewhere? I don't even know where to start on this. By the way, I'm > > > maxed out at 32GBs of memory for this mobo. So adding memory isn't a > > > option. Is there even a mobo that has a 64GB option??? :/ > > > > This may not help, but it may set you on the right track: man ulimit. > > > > :) > > I'm not sure how you can set a limit for a single application and any of its > child processes with ulimit. However, Control Groups (cgroups) can do this > easily as long as it has been included in the kernel: > > https://wiki.gentoo.org/wiki/OpenRC/CGroups > > Also, from what I recall at least some torrent applications can limit the > amount of uploading connections and/or throughput - but I haven't used any > for years now. There is also prlimit which may be more appropriate for a single command? --nextPart3452141.iIbC2pHGDl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmMLaTAACgkQseqq9sKV ZxmfOBAAzwHOxif4KexMSPhVCb7dKeAfhZSaE7ICKz/wlb6ojCnQ5aODM80kjS5T H58bVuSlfRuS6suscJNiSNElxDwF5RmOsCCvRg4SDMrf+d61CmVBQphKOF0onGLd SRKlWNsfRghtxOUH36Vtw85itpHn4iZ00cSR7Sp76PiF8hUrCEtr1eCiFOilRSPC RWk/5Oh7TefgiYsAkom4PkEp6lMznto/iEBV4W0s8GrsDHR8A3ek0pOLeeih4t1s K4gklzm2GzhHN2rw/+Mqa8Y4IQUVUzWoIGcTvMle+DxlW4RZ+lfodairp4tQnwZR 3+q2S9fYRHKe9LiXTlbvIX8JTQfNZtDilaA0gtJ8lUufzMNws9nNsVw2f1maZUFD N9IL3u/wjOB54burKfpaztrHIhh19U80PdQ6rOK0bSgQ2dvSEyztrJHjw7RjCv0O xFdMDiF4P2biCkeZlFh19QtaThkmkYnVthE+RnTpTwdqXn0l4CcS3DWtBL/h4XbA Rz5XdBtIsoaKbwaAMGaSBNXX4gCMMXphfZpQN6MifszX9G8uYPd6FuFrTaGlBQaK NU9loRc1f2gdJwUX0qn8kxSMxADhf90+JWz1BI3Gh6C9iAIwBKTyOYdxzavofrAo HFuohn2Q4AiYI3ooSc0okRLRSvqCQhNFpFJV6Sg/MRV88Tsu20U= =yy8J -----END PGP SIGNATURE----- --nextPart3452141.iIbC2pHGDl--