OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: Maarten on November 02, 2016, 12:56:39 pm

Title: [SOLVED] pftop (queues)
Post by: Maarten on November 02, 2016, 12:56:39 pm
Hi,

When I use pftop on the console and go to the queue view I get an error "Error Reading Queues (DIOCGETALTQS): Operation not supported by device".  Is there a way to fix this?

Best regards,

Maarten
Title: Re: pftop (queues)
Post by: franco on November 02, 2016, 01:00:19 pm
Hi Maarten,

From the firmware GUI packages page: reinstall the pftop package and try again.


Cheers,
Franco
Title: Re: pftop (queues)
Post by: Maarten on November 02, 2016, 01:07:12 pm
Hi Franco,

I've tried that from the console, tried it again from the GUI, but this does not solve the problem.

Title: Re: pftop (queues)
Post by: franco on November 02, 2016, 01:11:54 pm
Ok, mhh, so ALTQ is disabled for OPNsense and FreeBSD GENERIC builds, the error is natural, but I'm not sure if it should error out like that. I will take a closer look...
Title: Re: pftop (queues)
Post by: franco on November 02, 2016, 02:00:23 pm
Found it, queues will no longer show up in pftop:

https://github.com/opnsense/ports/commit/bc90a5c9d

The impact of the fix is really small, so I've queued it up for 16.7.8.


Thanks,
Franco
Title: Re: [SOLVED] pftop (queues)
Post by: Maarten on November 02, 2016, 02:08:04 pm
Hi Franco,

Ok, thanks. Do you know if the queues view shows queue description? The problem I have now is that the traffic shaper status (GUI) does not show the queue description, only an internal reference name like "q10001".

Like this it is hard to tell which queue I'm looking at.

Queues:
q10004  50 sl. 0 flows (1 buckets) sched 10004 weight 50 lmax 0 pri 0 droptail
q10005  50 sl. 0 flows (1 buckets) sched 10003 weight 100 lmax 0 pri 0 droptail
q10002  50 sl. 0 flows (1 buckets) sched 10004 weight 80 lmax 0 pri 0 droptail
q10003  50 sl. 0 flows (1 buckets) sched 10004 weight 20 lmax 0 pri 0 droptail
q10001  50 sl. 0 flows (1 buckets) sched 10004 weight 10 lmax 0 pri 0 droptail

Title: Re: [SOLVED] pftop (queues)
Post by: franco on November 02, 2016, 02:16:25 pm
Which view is this?
Title: Re: [SOLVED] pftop (queues)
Post by: Maarten on November 02, 2016, 02:19:31 pm
from the OPNsense Gui:

Firewall > Traffic Shaper > Status
Title: Re: [SOLVED] pftop (queues)
Post by: franco on November 02, 2016, 07:43:03 pm
Hi Maarten,

I've looked at the man pages for the source command and there is not much leeway to improve readability short of  parsing the output and representing it in a clean way along with descriptions/comments.

The "ipfw show"command gives a bit more insight in the actual uses, but there are no variable names so it's still hard to read.

Ideally, that would be a feature request, though with a lower priority.


Cheers,
Franco
Title: Re: [SOLVED] pftop (queues)
Post by: Maarten on November 03, 2016, 08:39:12 am
Hi Franco,

Ok, Thanks. I know the pftop -v queue command in fpsense used to give the correct queue names, do you think this will be the same for opnsense when the fix is applied?

Best regards,

Maarten
Title: Re: [SOLVED] pftop (queues)
Post by: franco on November 03, 2016, 10:05:24 am
Hi Maarten,

The pftop queue output is not applicable to OPNsense as we do not use Queues (ALTQ) from pf, only the queues from ipfw (in pfSense "limiters") to achieve the same.


Cheers,
Franco
Title: Re: [SOLVED] pftop (queues)
Post by: Maarten on November 03, 2016, 10:06:14 am
ok, thanks