Re: [gentoo-user] Per-process-tree memory quotas?

2018-10-20 Thread HÃ¥kon Alstadheim



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.




Re: [gentoo-user] Per-process-tree memory quotas?

2018-10-20 Thread 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

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Per-process-tree memory quotas?

2018-10-19 Thread Andrew Udvare



> 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.

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


[gentoo-user] Per-process-tree memory quotas?

2018-10-19 Thread Alan Grimes
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 a...@numentics.com

Powers are not rights.