[Buildroot] Resource Limits
Patrick Doyle
wpdster at gmail.com
Tue Jun 7 19:53:18 UTC 2016
Hello Samuel,
Thank you for your response.
I should have been a little more specific and given more details (so
as to reveal more of my ignorance :-))...
I am not using a preempt-RT kernel, although that might be a
possibility in the future. I am using POSIX threads, with SCHED_FIFO
and desire to set threads with priorities higher than zero. This
works perfectly fine when I run my multithreaded application as root.
But I want to run my application as an unprivileged user. Once I do
that, I think I need some way to set RLIMIT_RTPRIO for my user
application. From what I have read, I can set that via PAM or via
sysctl, or, perhaps via some other mechanism.
For my embedded application, I would prefer that the "via some other
mechanism" be "compile the kernel such that user applications can set
their priorities to be greater than zero". I would prefer this
because it has zero imprint upon the size of my severely
size-constrained rootfs.
I guess I forgot to mention that I have a severly size-constrained
rootfs and would prefer not to include PAM or sysctl unless I really
needed to (or perhaps got it for nearly free in busybox).
That's the backstory behind my question.
--wpd
More information about the buildroot
mailing list