Re: "suspends" count on pfctl -vvsq

Robert <[email protected]>
Newsgroups gmane.os.openbsd.pf
Message-ID <[email protected]>
On Wed, 20 Jan 2010 20:52:09 +0700
"Ilya A. Kovalenko" <[email protected]> wrote:

>       Good time of day,
> 
>    pfctl -vvsq shows counter, named "suspends", what specific events
> it counts ?
> 
> I just tryin' to understand what it means:
> 
> queue root_pcn1 bandwidth 50Mb priority 0 cbq( wrr root ) {stub}
>   [ pkts:     668486  bytes:  115633409  dropped pkts:      0
> bytes:      0 ] [ qlength:   0/ 50  borrows:      0  suspends:
> 0 ] [ measured:   703.2 packets/s, 1.03Mb/s ]
> queue  stub bandwidth 30Mb qlimit 5000 cbq( borrow default )
>   [ pkts:     668486  bytes:  115633409  dropped pkts:      0
> bytes:      0 ] [ qlength:   0/5000  borrows:      0  suspends:
> 65311 ] [ measured:   703.2 packets/s, 1.03Mb/s ]
> queue root_pcn0 bandwidth 100Mb priority 0 cbq( wrr root ) {stub}
>   [ pkts:     773002  bytes:  654654161  dropped pkts:      0
> bytes:      0 ] [ qlength:   0/ 50  borrows:      0  suspends:
> 0 ] [ measured:   785.9 packets/s, 5.35Mb/s ]
> queue  stub bandwidth 30Mb qlimit 5000 cbq( borrow default )
>   [ pkts:     773002  bytes:  654654161  dropped pkts:      0
> bytes:      0 ] [ qlength:   0/5000  borrows:   2607  suspends:
> 56563 ] [ measured:   785.9 packets/s, 5.35Mb/s ]
> 
> i.e. speed rates is good, but suspends (dequeuing stalls ?) with
> empty queues looks strange for me.
> 
>   I can guess, possible _cause_ of such behavior - host is runninig on
> virtual hardware under VMWare Hypervisor, but can't understand the
> _process_ itself.
> 
> Kind regards,
> 
> Ilya A. Kovalenko


Yes, that counter shows the number of packets for that queue that got
delayed, not dequeued/sent "immidiately".

pf.conf(5)
QUEUEING
  The scheduler defines the algorithm used to decide which packets
  get delayed, dropped, or sent out immediately.

The counter is populated within the function rmc_delay_action
in sys/altq/altq_rmclass.c .
It is refered to everywhere as "delayed" only in the output of pfctl it
is called "suspends", for whatever reason.

- Robert
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.