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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7298B158083 for ; Sun, 1 Sep 2024 09:35:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3D97E2A9F; Sun, 1 Sep 2024 09:35:54 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B46DE2A95 for ; Sun, 1 Sep 2024 09:35:54 +0000 (UTC) Received: from host81-136-75-24.range81-136.btcentralplus.com ([81.136.75.24] helo=[192.168.1.99]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1skgzw-000000008XV-7xiE for gentoo-user@lists.gentoo.org; Sun, 01 Sep 2024 10:35:53 +0100 Message-ID: <428b05d4-0828-45f2-add6-48123ba9073e@youngman.org.uk> Date: Sun, 1 Sep 2024 10:35:52 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Firefox, Seamonkey to if I can, and memory limits. To: gentoo-user@lists.gentoo.org References: <6442a869-f24c-5fc7-ef03-34b01bd85dcb@gmail.com> <9330460.CDJkKcVGEf@rogueboard> Content-Language: en-GB From: Wols Lists In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 36d937f3-9431-4b4a-847a-197c36993c62 X-Archives-Hash: e0930f56028672ad487196e8dc975536 On 31/08/2024 19:39, Dale wrote: > I did a lot of searching and almost all of it relates to using cgroups > for services, like mysql or something.  I haven't found anything that > explains how to do it for a program started by a user.  It may be doable > but I've yet to find it. I did a quick search and found this ... https://unix.stackexchange.com/questions/555080/using-cgroup-to-limit-program-memory-as-its-running reading through it, it appears to tell you (a) how to set up the cgroup, (b) how to put a running program into a cgroup, and (c) (most importantly) how to start a program in a cgroup. So what you'd do is create the cgroup, then edit the firefox and seamonkey desktop files to use cgexec to start them. Beyond that tip, you're on your own but it looks promising. I've not done it, so I don't know ... Cheers, Wol