Date: Tue, 23 Mar 2021 18:28:30 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254511] daemon(8): Allow to set daemonized process realtime or idletime scheduling priority Message-ID: <bug-254511-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254511 Bug ID: 254511 Summary: daemon(8): Allow to set daemonized process realtime or idletime scheduling priority Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org Created attachment 223530 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223530&action= =3Dedit daemon-add-priority.patch The attached patch adds arguments -e {priority}, -i {priority} for realtime= and idle priorities respectively. These arguments can be used when the process should run with an altered priority level. rtprio(1) generally sets priority process level, but in case of daemon(8) invocation rtprio(1) can't be used as a separate command. Running 'rtprio {priority} daemon ... commmand ...' would also change daemo= n(8) process' priority which isn't what is desired. Running 'daemon ... rtprio {priority} command ...' can't generally work bec= ause daemon(8) can change process' user and rtprio(1) would fail. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254511-227>