You realize that if you run enough processes your timeslice for all
proccesses sharing that priority is decreased. Decoding and audio
playing needs at least an N length timeslice and from the sound of it,
you're just running so many running processes that the length of that
priority's timeslice is below N. There is nothing a schedular can do
about that, it's being fair. Of course if you want something to run
with 350 other running processes you'll have to make it a higher
priority, if you let it be fair then it's timeslice is just too small
for it with that many divisions of your cpu. You cant expect the kernel
to autodetect the functionality of the programs it's running and
auto-tune for usable performance, that's the user's job.
What people complain about is a couple processes having the same effect
as running 350 procesess. I dont see that at all with preempt anymore.
There is no need to renice anything in a preempt kernel unless you know
you'll be running so many processes that your timeslice is just going to
be too small for applications that care. This used to be the case in
2.2 back when i used it and before the preempt and new schedular patches
for 2.4.x.
Running a couple apps and having it affect audio playing is something
you shouldn't expect to occur. But running hundreds of programs and
having it affect audio playing is perfectly acceptable if they're all at
the same priority. Would you say that it's the kernel's fault for
skipping on your 486 66Mhz cpu? no, you just dont have the processing
time/s to do what needs to be done, that's all that's happening with
your 350 processes at once on your 1Ghz cpu. it's preemption and
scheduling the way it's supposed to be, before you'd only need one
process that hogged the cpu in kernel to bring your audio to a halt.
An alternative fix would be to run your forkbombs and/or massively
threaded apps at +10 or so since it's a rare case that running so many
running processes is "normal use"
> But that's not so good for the "normal" user. We need some "auto renicing".
>
> BTW My former 2.4.17/2.4.18-pre numbers were much better for throughput and
> somewhat for latency.
>
> I used Andrea's -aa VM and Robert's preemption and lock-break on ReiserFS all
> the time. But together with bootmem-2.4.17-pre6 and waitq-2.4.17-mainline-1.
> Anyone know where I can get newer versions of them?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/