On Wed, 06.01.10 05:53, David Henningsson (launchpad.web at epost.diwic.se) wrote: > Thanks for the pointers, they were most helpful. > > First, RtKit version is 0.4-0ubuntu2, OS is Ubuntu 10.04 (the development > version). If that matters. > > I had trouble getting rtkit-test succeeding at first, and a long story > short, I was likely affected by this bug: > http://www.spinics.net/lists/linux-fsdevel/msg28757.html > ...so I had to try an bleeding edge kernel, in which rtkit-test works. > > After some additional debugging, I found that my original problem was that > the rt-priority I requested was too high for rtkit to accept. So the > permission problem comes from rtkit, the process_set_realtime() call > returns -EPERM. So an additional question: would it be possible to either > detect that highest value rtkit can deliver, or say "hey, I want x, but if > you only can give me y, do that instead of failing"? In worst case, I > could do a binary search, but I'm glad if that could be avoided :-) > The same would be nice for the maximum value of RLIMIT_RTTIME. Hmm, yes, I guess that would make sense indeed. Adding this as props should be very simple. > This is one of the things I love most about Linux/FOSS, the ability to > debug wherever you want. I ended up inserting some debug prints in > rtkit-daemon to nail the problem down - had rtkit been a Windows system > service delivered by Microsoft, I'd probably still be stuck! He. Free Software also lives from contributions. So if you want to see these properties added quickly, then prep a clean patch and I'll merge it. ;-) Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net http://0pointer.net/lennart/ GnuPG 0x1A015CC4