Page MenuHomeFreeBSD

Reclaim unused ithread priorities for user time-sharing threads.
ClosedPublic

Authored by jhb on Jun 28 2022, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 3:29 PM
Unknown Object (File)
Fri, Nov 8, 3:21 PM
Unknown Object (File)
Fri, Nov 8, 3:19 PM
Unknown Object (File)
Fri, Nov 8, 2:58 PM
Unknown Object (File)
Sep 30 2024, 4:38 PM
Unknown Object (File)
Sep 30 2024, 2:21 PM
Unknown Object (File)
Sep 27 2024, 8:50 PM
Unknown Object (File)
Sep 27 2024, 6:12 PM
Subscribers

Details

Summary

Leave one band of ithread priorities available below PI_SOFT for
demoted ithreads but reclaim additional ithread priorities for use by
user time-sharing threads. This is an ABI change in that PZERO moves
up so old ps and top binaries will not format priorities correctly on
newer kernels, but that is a cosmetic rather than functional change.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jun 28 2022, 10:32 PM

I do not object, but IMO there is no urgent need to expand the timeshare user prio range. Might be, leave it to either ithr as is, basically reserving them if some more urgent need would appear?

This revision is now accepted and ready to land.Jul 2 2022, 9:40 AM

I agree there is not an urgent need, I was only doing this in response to the XXX comment above that I think @jeff added when adding ULE as he would have liked to have more priorities for userspace. I had mostly just tacked this onto the end of the earlier changes based on the XXX, not as a main feature. The main thing I care about in this series is the time-sharing to better handle livelock conditions.

markj added inline comments.
sys/sys/priority.h
71–72
jhb marked an inline comment as done.Jul 14 2022, 7:12 PM