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)
Tue, May 28, 9:37 AM
Unknown Object (File)
Apr 27 2024, 6:40 PM
Unknown Object (File)
Apr 27 2024, 6:24 PM
Unknown Object (File)
Apr 27 2024, 6:24 PM
Unknown Object (File)
Apr 27 2024, 4:50 PM
Unknown Object (File)
Feb 19 2024, 6:42 PM
Unknown Object (File)
Dec 20 2023, 2:49 AM
Unknown Object (File)
Nov 14 2023, 8:23 AM
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