Module Name:    src
Committed By:   sevan
Date:           Tue Apr  9 13:53:52 UTC 2019

Modified Files:
        src/share/man/man9: sched_4bsd.9 sched_m2.9

Log Message:
Add instructions on how to determine the scheduler in use.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/share/man/man9/sched_4bsd.9
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/sched_m2.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/sched_4bsd.9
diff -u src/share/man/man9/sched_4bsd.9:1.8 src/share/man/man9/sched_4bsd.9:1.9
--- src/share/man/man9/sched_4bsd.9:1.8	Thu Dec  2 12:54:13 2010
+++ src/share/man/man9/sched_4bsd.9	Tue Apr  9 13:53:52 2019
@@ -1,4 +1,4 @@
-.\"     $NetBSD: sched_4bsd.9,v 1.8 2010/12/02 12:54:13 wiz Exp $
+.\"     $NetBSD: sched_4bsd.9,v 1.9 2019/04/09 13:53:52 sevan Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd July 14, 2007
+.Dd April 9, 2019
 .Dt SCHED_4BSD 9
 .Os
 .Sh NAME
@@ -78,6 +78,12 @@ every Hz ticks in order to recompute the
 checks if an LWP has slept for more than one second.
 If so, its priority is updated by
 .Fn updatepri .
+.Sh EXAMPLES
+To determine the scheduler currently in use
+.Bd -literal -offset indent
+$ sysctl kern.sched.name
+kern.sched.name = 4.4BSD
+.Ed
 .Sh CODE REFERENCES
 The
 .Bx 4.4

Index: src/share/man/man9/sched_m2.9
diff -u src/share/man/man9/sched_m2.9:1.3 src/share/man/man9/sched_m2.9:1.4
--- src/share/man/man9/sched_m2.9:1.3	Thu Dec  2 12:54:13 2010
+++ src/share/man/man9/sched_m2.9	Tue Apr  9 13:53:52 2019
@@ -1,4 +1,4 @@
-.\"     $NetBSD: sched_m2.9,v 1.3 2010/12/02 12:54:13 wiz Exp $
+.\"     $NetBSD: sched_m2.9,v 1.4 2019/04/09 13:53:52 sevan Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 5, 2010
+.Dd April 9, 2019
 .Dt SCHED_M2 9
 .Os
 .Sh NAME
@@ -38,6 +38,12 @@
 .Sh DESCRIPTION
 The M2 scheduler implements a scheduling algorithm similar to
 the scheduler implementations of UNIX System V Release 4 and Solaris.
+.Sh EXAMPLES
+To determine the scheduler currently in use
+.Bd -literal -offset indent
+$ sysctl kern.sched.name
+kern.sched.name = M2
+.Ed
 .Sh CODE REFERENCES
 The M2 scheduler is implemented within the file
 .Pa sys/kern/sched_m2.c .

Reply via email to