diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-29 12:48:36 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-29 12:48:36 +0000 |
commit | 5a3fc208373d865908ccbf62652d165da5892011 (patch) | |
tree | 092cc341c8dd7030848e092e9344c904e53ca8c8 /share | |
parent | 5b19a591cbb8de71e914988a3b6b428179d97691 (diff) |
hfsc example; taken from a diff Berk D. Demir <bdd at ieee.org> sent me
Diffstat (limited to 'share')
-rw-r--r-- | share/pf/queue4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/share/pf/queue4 b/share/pf/queue4 new file mode 100644 index 00000000000..3570179637f --- /dev/null +++ b/share/pf/queue4 @@ -0,0 +1,19 @@ +# $OpenBSD: queue4,v 1.1 2003/04/29 12:48:35 henning Exp $ +# +# Hierarchial queueing for a university. +# Three faculties; engineering, law and art are defined. +# Departments under the engineering faculty are defined as child queues. +# The total bandwidth for engineering faculty is shared between three +# departments. CS department gets the half of the bandwidth, EE and IE +# departments get the thirty percent and twenty percent of bandwidth +# respectively. These sibling departments can use more than their linkshare +# whenever there is no backlogged sibling queue but when a queue gets +# backlogged, it is guaranteed that the queue gets its linkshare. + +altq on dc0 bandwidth 16Mb hfsc queue { eng law art } +queue eng bandwidth 10Mb { cs ee ie } +queue cs hfsc( default linkshare 50% ) +queue ee hfsc( linkshare 30% ) +queue ie hfsc( linkshare 20% ) +queue law bandwidth 3Mb +queue art bandwidth 3Mb |