public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Per-process-tree memory quotas?
@ 2018-10-20  3:24 Alan Grimes
  2018-10-20  4:13 ` Andrew Udvare
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Grimes @ 2018-10-20  3:24 UTC (permalink / raw
  To: gentoo-user

Hey, guys I'm having trouble here. =\


1. I have a stupifyingly vast amount of memory (32GB)
2. I'm hitting swap with nothing but a few browser windows with maybe a
dozen tabs each, libreoffice, and maybe 6 console windows. I should not
be using more than 2.5gb ram right now but I'm using 14.6gb, not
counting cache.


The two major culprits are the web browsers, seamonkey and Chromium...
They are absolutely out of control preventing me from running more
interesting applications on my machine. I have one code that does number
theory but it needs 25gb of ram to run, I can't run it now with these
goddamned web browsers eating ram like it's free. I would like to
establish hard memory quotas for the entire process tree of each of them
to 2.5gb.

How do I do this?


-- 
Please report bounces from this address to atg@numentics.com

Powers are not rights.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Per-process-tree memory quotas?
  2018-10-20  3:24 [gentoo-user] Per-process-tree memory quotas? Alan Grimes
@ 2018-10-20  4:13 ` Andrew Udvare
  2018-10-20  9:08   ` Mick
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Udvare @ 2018-10-20  4:13 UTC (permalink / raw
  To: gentoo-user



> On 2018-10-19, at 23:24, Alan Grimes <ALONZOTG@verizon.net> wrote:
> 
> How do I do this?

Cgroups were sort of invented for this reason. Yes it requires Systemd.

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.

-- 
Andrew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Per-process-tree memory quotas?
  2018-10-20  4:13 ` Andrew Udvare
@ 2018-10-20  9:08   ` Mick
  2018-10-20 11:47     ` Håkon Alstadheim
  0 siblings, 1 reply; 4+ messages in thread
From: Mick @ 2018-10-20  9:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

On Saturday, 20 October 2018 05:13:13 BST Andrew Udvare wrote:
> > On 2018-10-19, at 23:24, Alan Grimes <ALONZOTG@verizon.net> 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

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Per-process-tree memory quotas?
  2018-10-20  9:08   ` Mick
@ 2018-10-20 11:47     ` Håkon Alstadheim
  0 siblings, 0 replies; 4+ messages in thread
From: Håkon Alstadheim @ 2018-10-20 11:47 UTC (permalink / raw
  To: gentoo-user



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 <ALONZOTG@verizon.net> 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-20 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-20  3:24 [gentoo-user] Per-process-tree memory quotas? Alan Grimes
2018-10-20  4:13 ` Andrew Udvare
2018-10-20  9:08   ` Mick
2018-10-20 11:47     ` Håkon Alstadheim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox