Linked by Thom Holwerda on Wed 13th Oct 2010 09:55 UTC, submitted by diegocg
Linux Well, this is quite interesting. This is one of those items where I have to make sure everybody realises I'm no developer as to not make myself look like an idiot. Having said that - LinSched. It's a user-space program that hosts the Linux kernel scheduler, so you can create and test scheduling policies on arbitrary hardware topologies - without actually having to work with the real hardware.
Thread beginning with comment 445030
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: The Problem...
by helpfulhelper on Thu 14th Oct 2010 09:47 UTC in reply to "RE[2]: The Problem..."
helpfulhelper
Member since:
2009-01-18

Given current operating systems, this can could probably be done in user space either with some daemon handling coarse-grain priorities or sitting down for fifteen minutes, figuring out which tasks get priorities, and then wrapping the commands with 'nice'. I don't think you need to reinvent the scheduler.

I've heard so many stories about music players skipping but I've never seen it (heard it?) happen in practice except through virtualization.

Reply Parent Score: 1

RE[4]: The Problem...
by oiaohm on Thu 14th Oct 2010 10:59 in reply to "RE[3]: The Problem..."
oiaohm Member since:
2009-05-30

Given current operating systems, this can could probably be done in user space either with some daemon handling coarse-grain priorities or sitting down for fifteen minutes, figuring out which tasks get priorities, and then wrapping the commands with 'nice'. I don't think you need to reinvent the scheduler.

I've heard so many stories about music players skipping but I've never seen it (heard it?) happen in practice except through virtualization.


The Nice command has a issue. cgroup fixs. service/application spits out subprocesses. cgroups applies the limitation to the service as whole. Where nice applies the limitation piece by piece.

Basically cgroups beats services with 1000 PID doing suffocation on processes with 1 PID.

Yes the tech to handle it right exists. Linux upper levels are just not using it fully yet.

Reply Parent Score: 1