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 -
| Andrew Morton | -mm merge plans for 2.6.23 |
| jjohansen | [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| holzheu | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| David Miller | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 36/37] dccp: Initialisation and type-checking of feature sysctls |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
