GSCHED(8) | MidnightBSD System Manager's Manual | GSCHED(8) |
gsched
— control
utility for disk scheduler GEOM class
gsched |
create [-v ]
[-a algorithm]
provider ... |
gsched |
insert [-v ]
[-a algorithm]
provider ... |
gsched |
configure [-v ]
[-a algorithm]
node ... |
gsched |
destroy [-fv ]
node ... |
gsched |
reset [-v ]
node ... |
gsched |
{ list | status |
load | unload } |
The gsched
utility (also callable as
geom sched ...
) changes the scheduling policy of the
requests going to a provider.
The first argument to gsched
indicates an
action to be performed:
create
If the operation succeeds, the new provider should appear with name /dev/⟨dev⟩.sched.. The kernel module geom_sched.ko will be loaded if it is not loaded already.
insert
A subsequent "destroy" will remove the newly created geom and hook the provider back to the original geom.
configure
create
command.destroy
reset
list
|
status
|
load
|
unload
Additional options:
The following
sysctl(8) variables can
be used to control the behavior of the SCHED
GEOM
class. The default value is shown next to each variable.
SCHED
GEOM class. This can be
set to a number between 0 and 2 inclusive. If set to 0 minimal debug
information is printed, and if set to 2 the maximum amount of debug
information is printed.Exit status is 0 on success, and 1 if the command fails.
The following example shows how to create a scheduling provider for disk /dev/ada0, and how to destroy it.
# Load the geom_sched module: kldload geom_sched # Load some scheduler classes used by geom_sched: kldload gsched_rr # Configure device ada0 to use scheduler "rr": geom sched insert -a rr ada0 # Now provider ada0 uses the "rr" algorithm; # the new geom is ada0.sched. # Remove the scheduler on the device: geom sched destroy -v ada0.sched.
The gsched
utility first appeared in
FreeBSD 8.1.
Fabio Checconi
<fabio@FreeBSD.org>
Luigi Rizzo
<luigi@FreeBSD.org>
July 26, 2012 | midnightbsd-3.1 |