


If i start any sort of a compilation, such as emerging while watching a movie it becomes totally unwatchable, out of sync and choppy. This is on the staircase scheduler. If i put ingosched under the same stress, the movie is actually watchable, though not perfect. This is in mplayer.Wietze wrote:What is ?
Making movies unwatchable ?
(Not offending, just wanting to know what you mean)
I was replying to frostschutzpetrjanda wrote:If i start any sort of a compilation, such as emerging while watching a movie it becomes totally unwatchable, out of sync and choppy. This is on the staircase scheduler. If i put ingosched under the same stress, the movie is actually watchable, though not perfect. This is in mplayer.Wietze wrote:What is ?
Making movies unwatchable ?
(Not offending, just wanting to know what you mean)

Sorry, I was being sarcastic.Wietze wrote:What is ?
Making movies unwatchable ?
(Not offending, just wanting to know what you mean)
*shrug* Who knows? Maybe it's a bug in the scheduler, there have been bugs in the past... no one but the author (or similarly experienced kernel programmer) may know. Maybe staircase is just not cut out for the task you want to use it with. staircase has a few settings that can be changed in /sys/cpusched/staircase/ , like setting compute to 1... you could try fiddling with them and see if it changes anything.petrjanda wrote:wtf is wrong?

frostschutz wrote:Sorry, I was being sarcastic.Wietze wrote:What is ?
Making movies unwatchable ?
(Not offending, just wanting to know what you mean)
The original poster is trying to run two very CPU intensive tasks (compiler and mplayer) at the same time and noticed that results are different when using different cpu schedulers. And that's the whole point of having cpu schedulers - if they all behaved the same way, there would be no point in having them, would there?
*shrug* Who knows? Maybe it's a bug in the scheduler, there have been bugs in the past... no one but the author (or similarly experienced kernel programmer) may know. Maybe staircase is just not cut out for the task you want to use it with. staircase has a few settings that can be changed in /sys/cpusched/staircase/ , like setting compute to 1... you could try fiddling with them and see if it changes anything.petrjanda wrote:wtf is wrong?
Personally, I'd say you already have a scheduler that works, so why not use it?
Or is there any particular reason you want to stick with staircase?
(Just in case, if you want to use it because it's said to improve performance by 130%, forget it. No cpu scheduler can do that.)

Code: Select all
find /sys -name "*sched*"Code: Select all
# find /sys/ -name "*sched*" -print
/sys/block/sda/queue/iosched
/sys/block/sda/queue/scheduler
/sys/block/hdb/queue/iosched
/sys/block/hdb/queue/scheduler
/sys/block/hdc/queue/iosched
/sys/block/hdc/queue/scheduler
/sys/block/hda/queue/iosched
/sys/block/hda/queue/scheduler


well i was interested in WHY Staircaise chops the video to total unwatchability, and ingosched chops it and its still watchable.neuron wrote:cat /sys/block/hdb/queue/scheduler
and original poster, are you running the compiling task on nice level? if your not, that's why.. it should chop, as it should be getting 50% of your resources. (on one of them it might be getting 0 one nanosecond, a 100 the next, then 0 again, and that could also cause chopping).

petrjanda wrote: well i was interested in WHY Staircaise chops the video to total unwatchability, and ingosched chops it and its still watchable.
See? You sound like you are bitching because the two scedulars have different behaviour. Which is EXACTLY what they are supposed to do. They are designed to have different behaviour ON PURPOSE so you can choose which one works best in your situation.petrjanda wrote: Everytime I use a kernel with staircase cpu scheduler, watching movies (mpeg4, divx or xvid) and compiling, the movie becomes absolutely unwatchable. When I use a kernel running ingosched, i can do both at the time. wtf is wrong? both kernels have exactly the same configuration except the cpu scheduler.

Thats ok. I thought its a public knowledge around the gentoo forums that Staircase is desktop/multimedia oriented , more responsiveness etc, thus I assumed (without having much technical knowledge of how Stairase works) that it would give multimedia applications such as mplayer "more" cpu time than to a non-desktop process like compiling. Of course I know I can renice it to make the movie watchable, but why should I when I specifically opted for a desktop scheduler such as staircase?curtis119 wrote:petrjanda wrote: well i was interested in WHY Staircaise chops the video to total unwatchability, and ingosched chops it and its still watchable.
Ahhhh you didn't say that in your original post.
See? You sound like you are bitching because the two scedulars have different behaviour. Which is EXACTLY what they are supposed to do. They are designed to have different behaviour ON PURPOSE so you can choose which one works best in your situation.petrjanda wrote: Everytime I use a kernel with staircase cpu scheduler, watching movies (mpeg4, divx or xvid) and compiling, the movie becomes absolutely unwatchable. When I use a kernel running ingosched, i can do both at the time. wtf is wrong? both kernels have exactly the same configuration except the cpu scheduler.
Sorry if I offended you by laughing at you but I feel I am vindicated.

Shouldnt the correct way to do it be that cpu cycles hungry application like emerge/compiling should not be allowed to overstep(by asking for more) their allocated cpu time at the expense of usability of other applications like mplayer? There should be some kind of automatic nicing. Most people use, even gentoo users, the GUI for GUI applications, and not for compiling unless you do emerge sync; emerge -uD world every 2-3 hours(maybe im dreaming?) I yet have to wait for the time where clicking forward and back in firefox will not make an mp3 playing in the background skip. This occurs on both Staircaise and Ingo sched. Are these problems even related to a scheduler or is it just bad programming on the part of mplayer/beep-media-player respectively or something completely else?neuron wrote:a scheduler can't know what on your system is multimedia and what isn't, all it can try to do is schedule as well as possible, ie spread resources as per nice levels. If you run compile tasks on the same priority as your multimedia tasks, they should get as much resources as them, and if they constantly request more they will get more.
The way staircase works is very simply by giving a process cpu time based on it's nice level if I remember correctly, so if a process is on nice'd 20 it'll get 20 times less resouces than a process that isn't.
A multimedia/desktop scheduler will be more tuned for latency than others will, a server system for example might schedule "slower" and not give you a good desktop experience, but better overall performance (although a tiny improvement if any at all).

Code: Select all
PORTAGE_NICENESS=10

Great! This is something ive been looking for! Thx.ExZombie wrote:As was said before, CPU scheduler can't know what you are running and what your preferences are. You should tell it what you want it to do with a particular program, and niceness is the way to do so. And since it is not practical to call 'nice' for everything you run, you would do best to use something like this. It works nicely for me (pun intended), but is not the only app of it's kind. Find the one that suits you.