Re: [RFC][PATCH] sched: SCHED_FIFO watchdog timer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: linux-kernel <linux-kernel@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, Mike Galbraith <efault@...>
Date: Monday, October 15, 2007 - 10:25 am

On Sun, 14.10.07 00:51, Peter Zijlstra (a.p.zijlstra@chello.nl) wrote:


Indeed! Having this in the kernel would allow us to enable RT
scheduling for PulseAudio by default without bad effects. I was thinking about
adding some kind of babysitting process to userspace -- but doing this as
an RLIMIT in the kernel strikes me a much better idea!

I think it would make a lot of sense to make the API very similar to
RLIMIT_CPU, i.e. also send out SIGXCPU and SIGKILL, with the single
difference that RLIMIT_CPU sends out a signal depending on the total
CPU time used for the process and the new RLIMIT based on the time the
process spent without sleeping. That would be a very reasonable
extension to the current RLIMIT_CPU model.

Thank you very much for doing this patch!

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sched: high-res preemption tick, Peter Zijlstra, (Fri Oct 12, 4:51 pm)
[RFC][PATCH] sched: SCHED_FIFO watchdog timer, Peter Zijlstra, (Sat Oct 13, 6:51 pm)
Re: [RFC][PATCH] sched: SCHED_FIFO watchdog timer, Kay Sievers, (Mon Oct 15, 5:32 pm)
Re: [RFC][PATCH] sched: SCHED_FIFO watchdog timer, Lennart Poettering, (Mon Oct 15, 10:25 am)
Re: [RFC][PATCH] sched: SCHED_FIFO watchdog timer, Dmitry Adamushko, (Mon Oct 15, 9:26 am)
Re: [RFC][PATCH] sched: SCHED_FIFO watchdog timer, Peter Zijlstra, (Mon Oct 15, 9:57 am)
Re: [PATCH] sched: high-res preemption tick, Mike Galbraith, (Sat Oct 13, 3:18 am)
Re: [PATCH] sched: high-res preemption tick, Peter Zijlstra, (Sat Oct 13, 4:55 am)
Re: [PATCH] sched: high-res preemption tick, Peter Zijlstra, (Sat Oct 13, 5:17 am)
Re: [PATCH] sched: high-res preemption tick, Peter Zijlstra, (Sat Oct 13, 7:13 pm)
Re: [PATCH] sched: high-res preemption tick, Mike Galbraith, (Sun Oct 14, 2:34 am)
Re: [PATCH] sched: high-res preemption tick, Peter Zijlstra, (Sat Oct 13, 7:16 pm)
Re: [PATCH] sched: high-res preemption tick, Mike Galbraith, (Sat Oct 13, 6:11 am)