[Bug 219055] nice jail anomoly - values not passed into jailed processes when using jexec -U username

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 219055] nice jail anomoly - values not passed into jailed processes when using jexec -U username

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219055

--- Comment #2 from [hidden email] ---
(In reply to Fabian Keil from comment #1)
Thanks Fabian, you're quite right.  And the example that you provided did have
the same successful outcome for me.  Unfortunately I'm trying to elevate the
priority of a database over all other activies.  So setting any priority less
than 0 doesn't work, whether I use

JAIL=b2 in my base or for you, (hint to cut/paste) ;)
JAIL=poudriere
nice -n -1 jexec -U root $JAIL ps -l
or
jexec -U root $JAIL nice -n -1 ps -l

The NI and PRI values remain 0 and 72 respectively, that is default (no nice)
value.  I kinda get it that within the jail context the priority can't be
elevated, but with executing the process from within the context of the base
system should work.

This successful result also suggests that elevating via nice should work.
# rtprio 0 jexec -U root b2 ps -l
UID   PID  PPID CPU PRI NI   VSZ  RSS MWCHAN STAT TT     TIME COMMAND
  0 97468 90697   0 -52  0 21140 2276 -      R+J   7  0:00.00 ps -l

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"