Michael wrote:
> On Sunday, 25 August 2024 16:20:19 BST Dale wrote:
>> Walter Dnes wrote:
>>> On Fri, Aug 23, 2024 at 07:42:05PM -0500, Dale wrote
>>>
>>>> I still use openrc.  I'll look around and see what I can find.  Now I
>>>> know what to look for.  Thing is, not sure I use cgroups either, unless
>>>> it is on by default.   o_O
>>>>
>>>   The bottom half of file /etc/rc.conf is devoted to cgroups settings.
>>>
>>> Look for the line...
>>> # LINUX CGROUPS RESOURCE MANAGEMENT
>> I have searched for info on this.  I did find the settings in rc.conf. 
>> I see a lot of discussion about running services, like cups, mysql and
>> such, and controlling them.  What I don't see is how to set up a regular
>> program like Firefox or any other program that a user runs directly.  I
>> suspect it can be done but I can't find a howto that shows how to do it. 
>>
>> I'll keep digging but if anyone has a link they have ran up on before
>> and would like to share, it would be nice.  It seems what I want to do
>> is not very common.  Thing is, Firefox sometimes goes nuts and when it
>> does, it is determined to crash my system if I don't catch it.  Even if
>> I had the full 128GBs, it would just take longer to consume it as well. 
>> The best way I see to deal with this, limit its access to memory.  It
>> seems there is a tool to do this, now to figure out how to use it. 
>>
>> Thanks to all for the help. 
>>
>> Dale
>>
>> :-)  :-) 
> I have not dived into cgroups in any big way.  I would think setting up a 
> dekstop application with many complicated & complex userspace dependencies is 
> not a simple task.
>
> Perhaps a way to approach this is by launching firefox as a different user 
> and 
> setting a memory limit for that user.


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. 

It's rare so I may just have to close Firefox and such before I nap or
leave for a while.  Avoid the problem that way.

Dale

:-)  :-) 

Reply via email to