Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cgroups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sun Nov 22, 2015 3:55 pm    Post subject: Cgroups Reply with quote

I'm reading up on cgroups https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/index.html

... and really not getting anywhere. Why should I need cgroups on a desktop machine? Can somebody explain in plain english in what kind of computing cgroups are beneficial?
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 450
Location: Australia

PostPosted: Sun Nov 22, 2015 4:58 pm    Post subject: Re: Cgroups Reply with quote

Buffoon wrote:
I'm reading up on cgroups https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/index.html

... and really not getting anywhere. Why should I need cgroups on a desktop machine? Can somebody explain in plain english in what kind of computing cgroups are beneficial?

On a desktop machine I wouldn't think there's much point, unless you have a bunch of really hungry applications that all need to simultaneously compete for resources and the regular kernel scheduling can't cope for some reason.

I've only come across them first-hand in reducing latency in RT cpu scheduling on a DAW. It might be worth a quick read of audiodefs excellent docs in the pro-audio wiki, here where he uses cgroups to allocate cpu resources amongst processes, as a real-world non-cloud example.

I'd say they're beneficial in any application where you need to prioritize, aggregate or limit resources amongst processes. Clouds of containers etc...
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon Nov 23, 2015 1:46 am    Post subject: Reply with quote

ian.au,

thank you!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6014

PostPosted: Mon Nov 23, 2015 2:58 am    Post subject: Reply with quote

Cgroups and the ecosystem around them are meant for adversarial computing where you have badly behaved programs (crapware, proprietary or enterprise) or badly behaved users (shared hosting).

For nearly everything else... you can just fix the code!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2600

PostPosted: Mon Nov 23, 2015 4:28 am    Post subject: Re: Cgroups Reply with quote

Buffoon wrote:
I'm reading up on cgroups https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/index.html

... and really not getting anywhere. Why should I need cgroups on a desktop machine? Can somebody explain in plain english in what kind of computing cgroups are beneficial?
You wouldn't.

Unless of course you wanted to run some software that a dev had decided to tie to cgroups for reasons.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum