Re: ULE realtime scheduler advice needed

2022-11-23 Thread mike tancsa
On 11/22/2022 5:00 PM, Tomoaki AOKI wrote: A long shot, but I am curious if by chance you have hwpstate_intel for your cpu frequency driver. If so, does setting dev.hwpstate_intel.0.epp=0 make any difference ? Yes, I have four of those, set to 50 by default. Let me try. --HPS FYI: I

Re: ULE realtime scheduler advice needed

2022-11-22 Thread Tomoaki AOKI
On Tue, 22 Nov 2022 22:38:04 +0100 Hans Petter Selasky wrote: > On 11/22/22 20:28, mike tancsa wrote: > > On 11/17/2022 11:47 PM, Hans Petter Selasky wrote: > >> Hi, > >> > >> I'm doing some work with audio and have noticed some problems with the > >> ULE scheduler. I have a program that

Re: ULE realtime scheduler advice needed

2022-11-22 Thread Hans Petter Selasky
On 11/22/22 20:28, mike tancsa wrote: On 11/17/2022 11:47 PM, Hans Petter Selasky wrote: Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a program that generate audio based on key-presses. When no keys are pressed, the load is near 0%, but as

Re: ULE realtime scheduler advice needed

2022-11-22 Thread mike tancsa
On 11/17/2022 11:47 PM, Hans Petter Selasky wrote: Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a program that generate audio based on key-presses. When no keys are pressed, the load is near 0%, but as soon as you start pressing keys, the

Re: ULE realtime scheduler advice needed

2022-11-22 Thread Tomoaki AOKI
On Tue, 22 Nov 2022 13:15:33 +0100 Johan Hendriks wrote: > > On 21/11/2022 21:24, Hans Petter Selasky wrote: > > On 11/21/22 20:12, Mark Johnston wrote: > >> There were some bug fixes earlier this year to address problems where > >> high-priority threads were not getting scheduled quickly

Re: ULE realtime scheduler advice needed

2022-11-22 Thread Johan Hendriks
On 21/11/2022 21:24, Hans Petter Selasky wrote: On 11/21/22 20:12, Mark Johnston wrote: There were some bug fixes earlier this year to address problems where high-priority threads were not getting scheduled quickly enough.  If you're using an old kernel, they might improve things: Are any

Re: ULE realtime scheduler advice needed

2022-11-21 Thread Hans Petter Selasky
On 11/21/22 20:12, Mark Johnston wrote: There were some bug fixes earlier this year to address problems where high-priority threads were not getting scheduled quickly enough. If you're using an old kernel, they might improve things: Are any of these fixes merged to stable/13 ? --HPS

Re: ULE realtime scheduler advice needed

2022-11-21 Thread Mark Johnston
On Fri, Nov 18, 2022 at 05:47:58AM +0100, Hans Petter Selasky wrote: > Hi, > > I'm doing some work with audio and have noticed some problems with the > ULE scheduler. I have a program that generate audio based on > key-presses. When no keys are pressed, the load is near 0%, but as soon > as

Re: ULE realtime scheduler advice needed

2022-11-19 Thread Tomoaki AOKI
I've lost track with, but IIRC, someone wrote here, or other ML, or even forums, kern.sched.preempt_thresh=224 was the default for PC-BSD. And found some discussion started at [1] on freebsd-stable ML in Apr. 2018. One more place is at forums [2]. Sorry, not read all of them to confirm. [1]

Re: ULE realtime scheduler advice needed

2022-11-19 Thread Hans Petter Selasky
Hi Alexander, Thank you for the pointers. I will try it out. --HPS On 11/18/22 09:18, Alexander Leidinger wrote: Quoting Hans Petter Selasky (from Fri, 18 Nov 2022 05:47:58 +0100): Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a

Re: ULE realtime scheduler advice needed

2022-11-18 Thread Alexander Leidinger
Quoting Hans Petter Selasky (from Fri, 18 Nov 2022 05:47:58 +0100): Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a program that generate audio based on key-presses. When no keys are pressed, the load is near 0%, but as soon as you