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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 554B0138334 for ; Sat, 20 Oct 2018 11:52:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDCBEE08A6; Sat, 20 Oct 2018 11:52:00 +0000 (UTC) Received: from asav21.altibox.net (asav21.altibox.net [109.247.116.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45D1DE0897 for ; Sat, 20 Oct 2018 11:51:58 +0000 (UTC) Received: from postfix-relay.alstadheim.priv.no (148-252-110.181.3p.ntebredband.no [148.252.110.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: hakon.alstadheim@ntebb.no) by asav21.altibox.net (Postfix) with ESMTPSA id 3CE1A801AC for ; Sat, 20 Oct 2018 13:51:56 +0200 (CEST) X-Finnesikke-B-A-I-T: finnesikke@alstadheim.priv.no Received: from smtps.alstadheim.priv.no (localhost [127.0.0.1]) by postfix-relay.alstadheim.priv.no (Postfix) with ESMTP id 4EEC7624E898 for ; Sat, 20 Oct 2018 13:47:37 +0200 (CEST) Received: from [192.168.2.201] (unknown [192.168.2.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hakon) by smtps.alstadheim.priv.no (Postfix) with ESMTPSA id 1368B244BC00 for ; Sat, 20 Oct 2018 13:47:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alstadheim.priv.no; s=smtp; t=1540036057; bh=nRFWzofPvu+QoPZLCp9jckBNnZLDD0viGcmYFVC1XX0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Hx6qJVrJNXvVjHIkL1boKjyPhzp79AL9KGF1E5+XTVKJsNRWwJuV9092JJ0dKwuSk f0fPyEbl5IdKtE79gTKmzW+W3sEltipEFHNpFSdFC+C+9ukDSGOWXo3cNjtsXjqsF0 KKvYlu88vMLsDhdHMTl8eWb/igFWU7La10JaOg3s= Subject: Re: [gentoo-user] Per-process-tree memory quotas? To: gentoo-user@lists.gentoo.org References: <5D5ADB55-E5A2-4F93-9936-06B8C175AAD5@gmail.com> <1675715.XLAjVGFizX@dell_xps> From: =?UTF-8?Q?H=c3=a5kon_Alstadheim?= Message-ID: <1a216b1c-3ff3-9a11-637d-041ec19c899d@alstadheim.priv.no> Date: Sat, 20 Oct 2018 13:47:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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 MIME-Version: 1.0 In-Reply-To: <1675715.XLAjVGFizX@dell_xps> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=ZI75Z0zb c=1 sm=1 tr=0 a=nKBCZnvRSnKQV5aoQPnoIA==:117 a=nKBCZnvRSnKQV5aoQPnoIA==:17 a=IkcTkHD0fZMA:10 a=smKx5t2vBNcA:10 a=o1OHuDzbAAAA:8 a=Br9LfDWDAAAA:8 a=7mOBRU54AAAA:8 a=BHIC09OxNJvgnvqDrmAA:9 a=QEXdDO2ut3YA:10 a=_tHamj0Rg94A:10 a=5YQ6H4ZxyGn-KoBYtt8s:22 a=gR_RJRYUad_6_ruzA8cR:22 a=wa9RWnbW_A1YIeRBVszw:22 X-Archives-Salt: 5d0b5076-522a-4c20-b1e4-b09029d99cb1 X-Archives-Hash: 4190d1a9d0405306f9889bb1c5feefcd Den 20. okt. 2018 11:08, skrev Mick: > On Saturday, 20 October 2018 05:13:13 BST Andrew Udvare wrote: >>> On 2018-10-19, at 23:24, Alan Grimes wrote: >>> >>> How do I do this? >> Cgroups were sort of invented for this reason. Yes it requires Systemd. > No, I don't think systemd is obligatory, although it may be for archlinux? > > >> https://wiki.archlinux.org/index.php/cgroups >> >> I too have 32 GiB of RAM and I'm curious how Chromium acts under a >> constrained environment, or what limits can be placed especially on the >> CPU. In my experience using Chrome inside VMs, it acts very poorly. > Have a look here instead for the Gentoo alternative: > > https://wiki.gentoo.org/wiki/OpenRC/CGroups > "support for userlevel cgroups" is on the list of possible improvements there. This means some reading and manual setup to limit your browser processes. Definitely doable though. Start with turning on CGroups in /etc/rc.conf, and take it from there.