Tuesday, October 11, 2022

sysutils/obsdfreqd increase priority

This diff adds a file in /etc/login.conf.d to set the priority of
obsdfreqd to -15, this will help it to kick in faster under load.

tested on powerpc


Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/obsdfreqd/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile 13 Sep 2022 11:16:15 -0000 1.6
+++ Makefile 11 Oct 2022 16:49:45 -0000
@@ -1,6 +1,7 @@
COMMENT = userland daemon to manage CPU frequency
V = 1.0.3
DISTNAME = obsdfreqd-${V}
+REVISION = 0

CATEGORIES = sysutils

Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/obsdfreqd/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 21 Apr 2022 17:12:31 -0000 1.1.1.1
+++ pkg/PLIST 11 Oct 2022 16:49:45 -0000
@@ -1,3 +1,5 @@
@rcscript ${RCDIR}/obsdfreqd
@man man/man1/obsdfreqd.1
@bin sbin/obsdfreqd
+share/examples/login.conf.d/obsdfreqd
+@sample ${SYSCONFDIR}/login.conf.d/obsdfreqd
Index: pkg/obsdfreqd.login
===================================================================
RCS file: pkg/obsdfreqd.login
diff -N pkg/obsdfreqd.login
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/obsdfreqd.login 11 Oct 2022 16:49:45 -0000
@@ -0,0 +1,3 @@
+obsdfreqd:\
+ :priority=-15:\
+ :tc=daemon:

No comments:

Post a Comment