diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-25 01:34:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-25 01:34:30 +0000 |
commit | e3e7ad4c9600923c01c56ebaf27a465f8dd542a5 (patch) | |
tree | df9a37ef504f80be024b0edc6ba5372e553b8ced /share | |
parent | 7a5f9c3c2a520aa2c34fd357b226df3910f93d74 (diff) |
document the scheduler types and how to specify them.
some pointers from schwarze@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/bufq_init.9 | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/share/man/man9/bufq_init.9 b/share/man/man9/bufq_init.9 index caec091881c..cceb87702f2 100644 --- a/share/man/man9/bufq_init.9 +++ b/share/man/man9/bufq_init.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bufq_init.9,v 1.2 2014/07/24 01:26:33 schwarze Exp $ +.\" $OpenBSD: bufq_init.9,v 1.3 2014/07/25 01:34:29 dlg Exp $ .\" .\" Copyright (c) 2013 David Gwynne <dlg@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 24 2014 $ +.Dd $Mdocdate: July 25 2014 $ .Dt BUFQ_INIT 9 .Os .Sh NAME @@ -71,6 +71,25 @@ can be used to change the scheduler currently used by to the algorithm specified by .Fa type . .Pp +The +.Fa type +argument to +.Fn bufq_init +and +.Fn bufq_switch +can be one of the following scheduling algorithms: +.Pp +.Bl -tag -offset indent -width BUFQ_DEFAULT -compact +.It Dv BUFQ_FIFO +A simple First-In First-Out queue. +.It Dv BUFQ_NSCAN +Takes batches of "N" bufs from the queue and sorts them for optimal +head movement. +.It Dv BUFQ_DEFAULT +This currently aliases +.Dv BUFQ_NSCAN . +.El +.Pp .Fn bufq_destroy frees any state that was used by the scheduler. .Pp |