Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Con Kolivas
Jack O'Quin wrote: Werner Almesberger <[EMAIL PROTECTED]> writes: [ Cc:s trimmed, added abiss-general ] Con Kolivas wrote: Possibly reiserfs journal related. That has larger non-preemptible code sections. If I understand your workload right, it should consist mainly of computation, networking

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Jack O'Quin
Werner Almesberger <[EMAIL PROTECTED]> writes: > [ Cc:s trimmed, added abiss-general ] > > Con Kolivas wrote: >> Possibly reiserfs journal related. That has larger non-preemptible code >> sections. > > If I understand your workload right, it should consist mainly of > computation, networking

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Werner Almesberger
[ Cc:s trimmed, added abiss-general ] Con Kolivas wrote: > Possibly reiserfs journal related. That has larger non-preemptible code > sections. If I understand your workload right, it should consist mainly of computation, networking (?), and disk reads. I don't know much about ReiserFS, but in

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Werner Almesberger
[ Cc:s trimmed, added abiss-general ] Con Kolivas wrote: Possibly reiserfs journal related. That has larger non-preemptible code sections. If I understand your workload right, it should consist mainly of computation, networking (?), and disk reads. I don't know much about ReiserFS, but in

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Jack O'Quin
Werner Almesberger [EMAIL PROTECTED] writes: [ Cc:s trimmed, added abiss-general ] Con Kolivas wrote: Possibly reiserfs journal related. That has larger non-preemptible code sections. If I understand your workload right, it should consist mainly of computation, networking (?), and disk

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-02-06 Thread Con Kolivas
Jack O'Quin wrote: Werner Almesberger [EMAIL PROTECTED] writes: [ Cc:s trimmed, added abiss-general ] Con Kolivas wrote: Possibly reiserfs journal related. That has larger non-preemptible code sections. If I understand your workload right, it should consist mainly of computation, networking (?),

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Rui Nuno Capela
Jack O'Quin wrote: > > If you grep your log file for 'client failure:', you'll probably find > that JACK has reacted to the deteriorating situation by shutting down > some of its clients. The number of 'client failure:' messages is > *not* the number of clients shut down, there is some repetition

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > There were numerous bugs in the SCHED_ISO design prior to now, so it > really was not performing as expected. What is most interesting is > that the DSP load goes to much higher levels now if xruns are avoided > and stay at those high levels. If I push

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Ingo Molnar
* Jack O'Quin <[EMAIL PROTECTED]> wrote: > I was just pointing out that saying nice(-20) works as well as > SCHED_ISO, though true, doesn't mean much since neither of them > (currently) work well enough to be useful. ok. While i still think nice--20 can be quite good for some purposes, it will

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Con Kolivas
Con Kolivas wrote: There were numerous bugs in the SCHED_ISO design prior to now, so it really was not performing as expected. What is most interesting is that the DSP load goes to much higher levels now if xruns are avoided and stay at those high levels. If I push the cpu load too much so that

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Con Kolivas
There were numerous bugs in the SCHED_ISO design prior to now, so it really was not performing as expected. What is most interesting is that the DSP load goes to much higher levels now if xruns are avoided and stay at those high levels. If I push the cpu load too much so that they get

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Con Kolivas
There were numerous bugs in the SCHED_ISO design prior to now, so it really was not performing as expected. What is most interesting is that the DSP load goes to much higher levels now if xruns are avoided and stay at those high levels. If I push the cpu load too much so that they get

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Con Kolivas
Con Kolivas wrote: There were numerous bugs in the SCHED_ISO design prior to now, so it really was not performing as expected. What is most interesting is that the DSP load goes to much higher levels now if xruns are avoided and stay at those high levels. If I push the cpu load too much so that

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Ingo Molnar
* Jack O'Quin [EMAIL PROTECTED] wrote: I was just pointing out that saying nice(-20) works as well as SCHED_ISO, though true, doesn't mean much since neither of them (currently) work well enough to be useful. ok. While i still think nice--20 can be quite good for some purposes, it will

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: There were numerous bugs in the SCHED_ISO design prior to now, so it really was not performing as expected. What is most interesting is that the DSP load goes to much higher levels now if xruns are avoided and stay at those high levels. If I push the cpu

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-25 Thread Rui Nuno Capela
Jack O'Quin wrote: If you grep your log file for 'client failure:', you'll probably find that JACK has reacted to the deteriorating situation by shutting down some of its clients. The number of 'client failure:' messages is *not* the number of clients shut down, there is some repetition (not

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Jack O'Quin
Ingo Molnar <[EMAIL PROTECTED]> writes: > * Jack O'Quin <[EMAIL PROTECTED]> wrote: > >> First, only SCHED_FIFO worked reliably in my tests. In Con's tests >> even that did not work. My system is probably better tuned for low >> latency than his. Until we can determine why there were so

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
Con Kolivas wrote: -cc list trimmed to those who have recently responded. Here is a patch to go on top of 2.6.11-rc2-mm1 that fixes some bugs in the general SCHED_ISO code, fixes the priority support between ISO threads, and implements SCHED_ISO_RR and SCHED_ISO_FIFO as separate policies. Note

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
-cc list trimmed to those who have recently responded. Here is a patch to go on top of 2.6.11-rc2-mm1 that fixes some bugs in the general SCHED_ISO code, fixes the priority support between ISO threads, and implements SCHED_ISO_RR and SCHED_ISO_FIFO as separate policies. Note the bugfixes and

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
Jack O'Quin wrote: I still wonder if some coding error might occasionally be letting a lower priority process continue running after an interrupt when it ought to be preempted. Well not surprisingly I did find a bug in my patch which did not honour priority support between ISO threads. So

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Jack O'Quin <[EMAIL PROTECTED]> wrote: > Has anyone done this kind of realtime testing on an SMP system? I'd > love to know how they compare. Unfortunately, I don't have access to > one at the moment. Are they generally better or worse for this kind > of work? I'm not asking about

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Paolo Ciarrocchi <[EMAIL PROTECTED]> wrote: > On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar <[EMAIL PROTECTED]> wrote: > [...] > > - CKRM is another possibility, and has nonzero costs as well, but solves > > a wider range of problems. > > BTW, do you know what's the status of CKRM ? If I'm

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Nick Piggin
Paolo Ciarrocchi wrote: On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar <[EMAIL PROTECTED]> wrote: [...] - CKRM is another possibility, and has nonzero costs as well, but solves a wider range of problems. BTW, do you know what's the status of CKRM ? If I'm not wrong it is already widely used, is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Paolo Ciarrocchi
On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar <[EMAIL PROTECTED]> wrote: [...] > - CKRM is another possibility, and has nonzero costs as well, but solves > a wider range of problems. BTW, do you know what's the status of CKRM ? If I'm not wrong it is already widely used, is there any plan to

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Jack O'Quin <[EMAIL PROTECTED]> wrote: > First, only SCHED_FIFO worked reliably in my tests. In Con's tests > even that did not work. My system is probably better tuned for low > latency than his. Until we can determine why there were so many > xruns, it is premature to declare

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Jack O'Quin [EMAIL PROTECTED] wrote: Has anyone done this kind of realtime testing on an SMP system? I'd love to know how they compare. Unfortunately, I don't have access to one at the moment. Are they generally better or worse for this kind of work? I'm not asking about partitioning

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
Jack O'Quin wrote: I still wonder if some coding error might occasionally be letting a lower priority process continue running after an interrupt when it ought to be preempted. Well not surprisingly I did find a bug in my patch which did not honour priority support between ISO threads. So

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
-cc list trimmed to those who have recently responded. Here is a patch to go on top of 2.6.11-rc2-mm1 that fixes some bugs in the general SCHED_ISO code, fixes the priority support between ISO threads, and implements SCHED_ISO_RR and SCHED_ISO_FIFO as separate policies. Note the bugfixes and

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Con Kolivas
Con Kolivas wrote: -cc list trimmed to those who have recently responded. Here is a patch to go on top of 2.6.11-rc2-mm1 that fixes some bugs in the general SCHED_ISO code, fixes the priority support between ISO threads, and implements SCHED_ISO_RR and SCHED_ISO_FIFO as separate policies. Note

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Jack O'Quin
Ingo Molnar [EMAIL PROTECTED] writes: * Jack O'Quin [EMAIL PROTECTED] wrote: First, only SCHED_FIFO worked reliably in my tests. In Con's tests even that did not work. My system is probably better tuned for low latency than his. Until we can determine why there were so many

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Jack O'Quin [EMAIL PROTECTED] wrote: First, only SCHED_FIFO worked reliably in my tests. In Con's tests even that did not work. My system is probably better tuned for low latency than his. Until we can determine why there were so many xruns, it is premature to declare victory

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Paolo Ciarrocchi
On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar [EMAIL PROTECTED] wrote: [...] - CKRM is another possibility, and has nonzero costs as well, but solves a wider range of problems. BTW, do you know what's the status of CKRM ? If I'm not wrong it is already widely used, is there any plan to push

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Nick Piggin
Paolo Ciarrocchi wrote: On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar [EMAIL PROTECTED] wrote: [...] - CKRM is another possibility, and has nonzero costs as well, but solves a wider range of problems. BTW, do you know what's the status of CKRM ? If I'm not wrong it is already widely used, is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-24 Thread Ingo Molnar
* Paolo Ciarrocchi [EMAIL PROTECTED] wrote: On Mon, 24 Jan 2005 09:59:02 +0100, Ingo Molnar [EMAIL PROTECTED] wrote: [...] - CKRM is another possibility, and has nonzero costs as well, but solves a wider range of problems. BTW, do you know what's the status of CKRM ? If I'm not wrong

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > Jack O'Quin wrote: >> I'll try building a SCHED_RR version of JACK. I still don't think it >> will make any difference. But my intuition isn't working very well >> right now, so I need more data. > > Could be that despite what it appears, FIFO behaviour

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Ingo Molnar <[EMAIL PROTECTED]> writes: > just finished a short testrun with nice--20 compared to SCHED_FIFO, on a > relatively slow 466 MHz box: Has anyone done this kind of realtime testing on an SMP system? I'd love to know how they compare. Unfortunately, I don't have access to one at the

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: I'll try building a SCHED_RR version of JACK. I still don't think it will make any difference. But my intuition isn't working very well right now, so I need more data. Could be that despite what it appears, FIFO behaviour may be desirable to RR. Also the RR in SCHED_ISO is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Jack O'Quin <[EMAIL PROTECTED]> writes: > Will post the correct numbers shortly. Sorry for the screw-up. Here they are... http://www.joq.us/jack/benchmarks/sched-isoprio http://www.joq.us/jack/benchmarks/sched-isoprio+compile I moved the previous runs to the sched-fifo* directories where

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Jack O'Quin <[EMAIL PROTECTED]> writes: > These results are indistinguishable from SCHED_FIFO... Disregard my previous message, it was an idiotic mistake. The results were indistinguishable form SCHED_FIFO because they *were* SCHED_FIFO. I'm running everything again, this time with the correct

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: >>>Second the patch I sent you is fine for testing; I was hoping you >>>would try it. What you can't do with it is spawn lots of userspace >>>apps safely SCHED_ISO with it - it will crash, but it not take down >>>your hard disk. I've had significantly

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: There are two things that the SCHED_ISO you tried is not that SCHED_FIFO is - As you mentioned there is no priority support, and it is RR, not FIFO. I am not sure whether it is one and or the other responsible. Both can be added to

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > There are two things that the SCHED_ISO you tried is not that > SCHED_FIFO is - As you mentioned there is no priority support, and it > is RR, not FIFO. I am not sure whether it is one and or the other > responsible. Both can be added to SCHED_ISO. I

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: Looked at this way, there really is no question. The new scheduler prototypes are falling short significantly. Could this be due to their lack of priority distinctions between realtime threads? Maybe. I can't say for sure. I'll be interested to see what happens when Con is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Ingo Molnar <[EMAIL PROTECTED]> writes: > thanks for the testing. The important result is that nice--20 > performance is roughly the same as SCHED_ISO. This somewhat > reduces the urgency of the introduction of SCHED_ISO. Doing more runs and a more thorough analysis has driven me to a different

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Paul Davis
>Yup, modern must be the key. Even Ingo can't help my little ole PIII/500 >with YMF-740C. Dang thing can't handle -p64 (alsa rejects that, causing >jackd to become terminally upset), and it can't even handle 4 clients at >SCHED_FIFO despite latest/greatest RT preempt kernel without xruns. >

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Paul Davis
Yup, modern must be the key. Even Ingo can't help my little ole PIII/500 with YMF-740C. Dang thing can't handle -p64 (alsa rejects that, causing jackd to become terminally upset), and it can't even handle 4 clients at SCHED_FIFO despite latest/greatest RT preempt kernel without xruns.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Ingo Molnar [EMAIL PROTECTED] writes: thanks for the testing. The important result is that nice--20 performance is roughly the same as SCHED_ISO. This somewhat reduces the urgency of the introduction of SCHED_ISO. Doing more runs and a more thorough analysis has driven me to a different

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: Looked at this way, there really is no question. The new scheduler prototypes are falling short significantly. Could this be due to their lack of priority distinctions between realtime threads? Maybe. I can't say for sure. I'll be interested to see what happens when Con is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: There are two things that the SCHED_ISO you tried is not that SCHED_FIFO is - As you mentioned there is no priority support, and it is RR, not FIFO. I am not sure whether it is one and or the other responsible. Both can be added to SCHED_ISO. I haven't

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas [EMAIL PROTECTED] writes: There are two things that the SCHED_ISO you tried is not that SCHED_FIFO is - As you mentioned there is no priority support, and it is RR, not FIFO. I am not sure whether it is one and or the other responsible. Both can be added to

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: Second the patch I sent you is fine for testing; I was hoping you would try it. What you can't do with it is spawn lots of userspace apps safely SCHED_ISO with it - it will crash, but it not take down your hard disk. I've had significantly better results with

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Jack O'Quin [EMAIL PROTECTED] writes: These results are indistinguishable from SCHED_FIFO... Disregard my previous message, it was an idiotic mistake. The results were indistinguishable form SCHED_FIFO because they *were* SCHED_FIFO. I'm running everything again, this time with the correct

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Jack O'Quin [EMAIL PROTECTED] writes: Will post the correct numbers shortly. Sorry for the screw-up. Here they are... http://www.joq.us/jack/benchmarks/sched-isoprio http://www.joq.us/jack/benchmarks/sched-isoprio+compile I moved the previous runs to the sched-fifo* directories where

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Con Kolivas
Jack O'Quin wrote: I'll try building a SCHED_RR version of JACK. I still don't think it will make any difference. But my intuition isn't working very well right now, so I need more data. Could be that despite what it appears, FIFO behaviour may be desirable to RR. Also the RR in SCHED_ISO is

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Ingo Molnar [EMAIL PROTECTED] writes: just finished a short testrun with nice--20 compared to SCHED_FIFO, on a relatively slow 466 MHz box: Has anyone done this kind of realtime testing on an SMP system? I'd love to know how they compare. Unfortunately, I don't have access to one at the

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-23 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: Jack O'Quin wrote: I'll try building a SCHED_RR version of JACK. I still don't think it will make any difference. But my intuition isn't working very well right now, so I need more data. Could be that despite what it appears, FIFO behaviour may be

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Mike Galbraith
At 03:50 PM 1/23/2005 +1100, Con Kolivas wrote: Looks like the number of steps to convert a modern "standard setup" desktop to a low latency one on linux aren't that big after all :) Yup, modern must be the key. Even Ingo can't help my little ole PIII/500 with YMF-740C. Dang thing can't handle

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: I'm wondering now if the lack of priority support in the two prototypes might explain the problems I'm seeing. Distinctly possible since my results got better with priority support. However I'm still bugfixing what I've got. Just as a data point here is an incremental patch

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Jack O'Quin <[EMAIL PROTECTED]> writes: > > I ran three sets of tests with three or more 5 minute runs for each > case. The results (log files and graphs) are in these directories... > > 1) sched-fifo -- as a baseline > http://www.joq.us/jack/benchmarks/sched-fifo > > 2) sched-iso --

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: Jack O'Quin wrote: [snip lots of valid points] suggest some things to try. First, make sure the JACK tmp directory is mounted on a tmpfs[1]. Then, try the test with ext2, instead of Looks like the tmpfs is probably the biggest problem.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > Meanwhile, I have the priority support working (but not bug free), and > the preliminary results suggest that the results are better. Do I > recall someone mentioning jackd uses threads at different priority? Yes, it does. I'm not sure whether that

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > Jack O'Quin wrote: > [snip lots of valid points] >> suggest some things to try. First, make sure the JACK tmp directory >> is mounted on a tmpfs[1]. Then, try the test with ext2, instead of > > Looks like the tmpfs is probably the biggest problem.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: [snip lots of valid points] suggest some things to try. First, make sure the JACK tmp directory is mounted on a tmpfs[1]. Then, try the test with ext2, instead of Looks like the tmpfs is probably the biggest problem. Here's SCHED_ISO with just the /tmp mounted on tmpfs change

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > Jack O'Quin wrote: >> Neither run exhibits reliable audio performance. There is some low >> latency performance problem with your system. Maybe ReiserFS is >> causing trouble even with logging turned off. Perhaps the problem is >> somewhere else.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Chris Wright
* Nick Piggin ([EMAIL PROTECTED]) wrote: > Jack O'Quin wrote: > > > Chris Wright and Arjan van de Ven have outlined a proposal to address > > the privilege issue using rlimits. This is still the only workable > > alternative to the realtime LSM on the table. If the decision were up > > to me, I

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Nick Piggin
Jack O'Quin wrote: Chris Wright and Arjan van de Ven have outlined a proposal to address the privilege issue using rlimits. This is still the only workable alternative to the realtime LSM on the table. If the decision were up to me, I would choose the simplicity and better security of the LSM.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Paul Davis wrote: The idea is to get equivalent performance to SCHED_FIFO. The results show that much, and it is 100 times better than unprivileged SCHED_NORMAL. The fact that this is an unoptimised normal desktop environment means that the conclusion we _can_ draw is that SCHED_ISO is as good

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Paul Davis
>The idea is to get equivalent performance to SCHED_FIFO. The results >show that much, and it is 100 times better than unprivileged >SCHED_NORMAL. The fact that this is an unoptimised normal desktop >environment means that the conclusion we _can_ draw is that SCHED_ISO is >as good as

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Neither run exhibits reliable audio performance. There is some low latency performance problem with your system. Maybe ReiserFS is causing trouble even with logging turned off. Perhaps the problem is somewhere else. Maybe some device is misbehaving. Until you solve this

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: So let's try again, sorry about the noise: ==> jack_test4-2.6.11-rc1-mm2-fifo.log <== * XRUN Count . . . . . . . . . : 3 Delay Maximum . . . . . . . . : 20161 usecs

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Ingo Molnar <[EMAIL PROTECTED]> writes: > thanks for the testing. The important result is that nice--20 > performance is roughly the same as SCHED_ISO. This somewhat > reduces the urgency of the introduction of SCHED_ISO. I can see why you feel that way, but don't share your conclusion.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > So let's try again, sorry about the noise: > > ==> jack_test4-2.6.11-rc1-mm2-fifo.log <== > * > XRUN Count . . . . . . . . . : 3 > Delay Maximum . . . . . . . . : 20161 usecs >

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Ingo Molnar
* Jack O'Quin <[EMAIL PROTECTED]> wrote: > I finally made new kernel builds for the latest patches from both Ingo > and Con. I kept the two patch sets separate, as they modify some of > the same files. > > I ran three sets of tests with three or more 5 minute runs for each > case. The results

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Paul Davis
>> "Jack" == Jack O'Quin <[EMAIL PROTECTED]> writes: > > >Jack> Looks like we need to do another study to determine which >Jack> filesystem works best for multi-track audio recording and >Jack> playback. XFS looks promising, but only if they get the latency >Jack> right. Any experience with

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Paul Davis
Jack == Jack O'Quin [EMAIL PROTECTED] writes: Jack Looks like we need to do another study to determine which Jack filesystem works best for multi-track audio recording and Jack playback. XFS looks promising, but only if they get the latency Jack right. Any experience with that? The nice

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Ingo Molnar
* Jack O'Quin [EMAIL PROTECTED] wrote: I finally made new kernel builds for the latest patches from both Ingo and Con. I kept the two patch sets separate, as they modify some of the same files. I ran three sets of tests with three or more 5 minute runs for each case. The results (log

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: So let's try again, sorry about the noise: == jack_test4-2.6.11-rc1-mm2-fifo.log == * XRUN Count . . . . . . . . . : 3 Delay Maximum . . . . . . . . : 20161 usecs

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Ingo Molnar [EMAIL PROTECTED] writes: thanks for the testing. The important result is that nice--20 performance is roughly the same as SCHED_ISO. This somewhat reduces the urgency of the introduction of SCHED_ISO. I can see why you feel that way, but don't share your conclusion. First,

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas [EMAIL PROTECTED] writes: So let's try again, sorry about the noise: == jack_test4-2.6.11-rc1-mm2-fifo.log == * XRUN Count . . . . . . . . . : 3 Delay Maximum . . . . . . . . : 20161 usecs

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Neither run exhibits reliable audio performance. There is some low latency performance problem with your system. Maybe ReiserFS is causing trouble even with logging turned off. Perhaps the problem is somewhere else. Maybe some device is misbehaving. Until you solve this

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Paul Davis
The idea is to get equivalent performance to SCHED_FIFO. The results show that much, and it is 100 times better than unprivileged SCHED_NORMAL. The fact that this is an unoptimised normal desktop environment means that the conclusion we _can_ draw is that SCHED_ISO is as good as SCHED_FIFO for

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Paul Davis wrote: The idea is to get equivalent performance to SCHED_FIFO. The results show that much, and it is 100 times better than unprivileged SCHED_NORMAL. The fact that this is an unoptimised normal desktop environment means that the conclusion we _can_ draw is that SCHED_ISO is as good

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Nick Piggin
Jack O'Quin wrote: Chris Wright and Arjan van de Ven have outlined a proposal to address the privilege issue using rlimits. This is still the only workable alternative to the realtime LSM on the table. If the decision were up to me, I would choose the simplicity and better security of the LSM.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Chris Wright
* Nick Piggin ([EMAIL PROTECTED]) wrote: Jack O'Quin wrote: Chris Wright and Arjan van de Ven have outlined a proposal to address the privilege issue using rlimits. This is still the only workable alternative to the realtime LSM on the table. If the decision were up to me, I would

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: Jack O'Quin wrote: Neither run exhibits reliable audio performance. There is some low latency performance problem with your system. Maybe ReiserFS is causing trouble even with logging turned off. Perhaps the problem is somewhere else. Maybe some

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: [snip lots of valid points] suggest some things to try. First, make sure the JACK tmp directory is mounted on a tmpfs[1]. Then, try the test with ext2, instead of Looks like the tmpfs is probably the biggest problem. Here's SCHED_ISO with just the /tmp mounted on tmpfs change

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: Jack O'Quin wrote: [snip lots of valid points] suggest some things to try. First, make sure the JACK tmp directory is mounted on a tmpfs[1]. Then, try the test with ext2, instead of Looks like the tmpfs is probably the biggest problem. Here's

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Con Kolivas [EMAIL PROTECTED] writes: Meanwhile, I have the priority support working (but not bug free), and the preliminary results suggest that the results are better. Do I recall someone mentioning jackd uses threads at different priority? Yes, it does. I'm not sure whether that matters

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas [EMAIL PROTECTED] writes: Jack O'Quin wrote: [snip lots of valid points] suggest some things to try. First, make sure the JACK tmp directory is mounted on a tmpfs[1]. Then, try the test with ext2, instead of Looks like the tmpfs is probably the biggest problem.

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Jack O'Quin
Jack O'Quin [EMAIL PROTECTED] writes: I ran three sets of tests with three or more 5 minute runs for each case. The results (log files and graphs) are in these directories... 1) sched-fifo -- as a baseline http://www.joq.us/jack/benchmarks/sched-fifo 2) sched-iso -- Con's

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Con Kolivas
Jack O'Quin wrote: I'm wondering now if the lack of priority support in the two prototypes might explain the problems I'm seeing. Distinctly possible since my results got better with priority support. However I'm still bugfixing what I've got. Just as a data point here is an incremental patch

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-22 Thread Mike Galbraith
At 03:50 PM 1/23/2005 +1100, Con Kolivas wrote: Looks like the number of steps to convert a modern standard setup desktop to a low latency one on linux aren't that big after all :) Yup, modern must be the key. Even Ingo can't help my little ole PIII/500 with YMF-740C. Dang thing can't handle

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Con Kolivas
Con Kolivas wrote: Con Kolivas wrote: Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: Here's fresh results on more stressed hardware (on ext3) with 2.6.11-rc1-mm2 (which by the way has SCHED_ISO v2 included). The load hovering at 50% spikes at times close to 70 which tests the

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Con Kolivas
Con Kolivas wrote: Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: Here's fresh results on more stressed hardware (on ext3) with 2.6.11-rc1-mm2 (which by the way has SCHED_ISO v2 included). The load hovering at 50% spikes at times close to 70 which tests the behaviour under iso

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: Here's fresh results on more stressed hardware (on ext3) with 2.6.11-rc1-mm2 (which by the way has SCHED_ISO v2 included). The load hovering at 50% spikes at times close to 70 which tests the behaviour under iso throttling. What version

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Con Kolivas
Jack O'Quin wrote: Con Kolivas <[EMAIL PROTECTED]> writes: Here's fresh results on more stressed hardware (on ext3) with 2.6.11-rc1-mm2 (which by the way has SCHED_ISO v2 included). The load hovering at 50% spikes at times close to 70 which tests the behaviour under iso throttling. What version

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > Here's fresh results on more stressed hardware (on ext3) with > 2.6.11-rc1-mm2 (which by the way has SCHED_ISO v2 included). The load > hovering at 50% spikes at times close to 70 which tests the behaviour > under iso throttling. What version of JACK are

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Jack O'Quin
Con Kolivas <[EMAIL PROTECTED]> writes: > As for priority support, I have been working on it. While the test > cases I've been involved in show no need for it, I can understand why > it would be desirable. Yes. Rui's jack_test3.2 does not require multiple realtime priorities, but I can point to

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Con Kolivas
utz lehmann wrote: On Sat, 2005-01-22 at 10:48 +1100, Con Kolivas wrote: utz lehmann wrote: Hi I dislike the behavior of the SCHED_ISO patch that iso tasks are degraded to SCHED_NORMAL if they exceed the limit. IMHO it's better to throttle them at the iso_cpu limit. I have modified Con's iso2

Re: [PATCH]sched: Isochronous class v2 for unprivileged soft rt scheduling

2005-01-21 Thread Jack O'Quin
Ingo Molnar <[EMAIL PROTECTED]> writes: > just finished a short testrun with nice--20 compared to SCHED_FIFO, on a > relatively slow 466 MHz box: > this shows the surprising result that putting all RT tasks on nice--20 > reduced context-switch rate by 20% and the Delay Maximum is lower as >

  1   2   >