View | Details | Raw Unified | Return to bug 170085
Collapse All | Expand All

(-)gsched.8 (-6 / +6 lines)
Lines 135-153 Link Here
135
Exit status is 0 on success, and 1 if the command fails.
135
Exit status is 0 on success, and 1 if the command fails.
136
.Sh EXAMPLES
136
.Sh EXAMPLES
137
The following example shows how to create a scheduling provider for disk
137
The following example shows how to create a scheduling provider for disk
138
.Pa /dev/ad0 ,
138
.Pa /dev/ada0 ,
139
and how to destroy it.
139
and how to destroy it.
140
.Bd -literal -offset indent
140
.Bd -literal -offset indent
141
# Load the geom_sched module:
141
# Load the geom_sched module:
142
kldload geom_sched
142
kldload geom_sched
143
# Load some scheduler classes used by geom_sched:
143
# Load some scheduler classes used by geom_sched:
144
kldload gsched_rr
144
kldload gsched_rr
145
# Configure device ad0 to use scheduler "rr":
145
# Configure device ada0 to use scheduler "rr":
146
geom sched insert -a rr ad0
146
geom sched insert -a rr ada0
147
# Now provider ad0 uses the "rr" algorithm;
147
# Now provider ada0 uses the "rr" algorithm;
148
# the new geom is ad0.sched.
148
# the new geom is ada0.sched.
149
# Remove the scheduler on the device:
149
# Remove the scheduler on the device:
150
geom sched destroy -v ad0.sched.
150
geom sched destroy -v ada0.sched.
151
.Ed
151
.Ed
152
.Sh SEE ALSO
152
.Sh SEE ALSO
153
.Xr geom 4 ,
153
.Xr geom 4 ,

Return to bug 170085