View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Tue Mar 14, 2023 5:08 pm Post subject: tc questions (RESOLVED) |
|
|
I (fairly) recently changed hardware and added another multi-port ethernet card. I happened to be checking out my QoS because I will need to make some changes due to a speed increase. However, when I look at the interfaces, it looks odd.
Quote: | triforce /etc/local.d # tc qdisc
qdisc noqueue 0: dev lo root refcnt 2
qdisc pfifo_fast 0: dev ifb0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc mq 0: dev enp1s0f0 root
qdisc pfifo_fast 0: dev enp1s0f0 parent :8 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :7 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :6 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :5 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :4 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :3 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f0 parent :1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp0s31f6 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc mq 0: dev enp1s0f1 root
qdisc pfifo_fast 0: dev enp1s0f1 parent :8 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :7 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :6 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :5 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :4 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :3 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp1s0f1 parent :1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 |
I'm not sure why I have 8 entries for my two internal interfaces. I'm not sure if those are supposed to be there to begin with, and I can't figure out how to delete them either.
Quote: | triforce /etc/local.d # tc qdisc del dev enp1s0f0 root
Error: Cannot delete qdisc with handle of zero. |
Last edited by Akaihiryuu on Wed Mar 15, 2023 1:55 am; edited 1 time in total |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Wed Mar 15, 2023 1:21 am Post subject: |
|
|
Yes, this is correct. The mq qdisc creates 1 "class" per TX queue in the hardware. (the default is pfifo_fast for single queue devices)
The qdisc is handle "0" is the default qdisc. You can't delete it, but you can replace it by adding a new qdisc with a nonzero handle |
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Wed Mar 15, 2023 1:42 am Post subject: |
|
|
salahx wrote: | Yes, this is correct. The mq qdisc creates 1 "class" per TX queue in the hardware. (the default is pfifo_fast for single queue devices)
The qdisc is handle "0" is the default qdisc. You can't delete it, but you can replace it by adding a new qdisc with a nonzero handle |
Ah ok so what I'm seeing is the default behavior? If so that's ok. enp1s0f0 is my LAN, enp1s0f1 is my wifi. My external/internet interface is enp0s31f6. enp0s31f6 is just a regular onboard Intel gigabit I219-V, while enp1s0f0 and enp1s0f1 are an Intel 82576 card...I'm guessing the 82576 just has more features than the integrated one. I just wanted to make sure I didn't have a script misbehave and add a bunch of stuff I didn't want. If it's the default I'll leave it. |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Wed Mar 15, 2023 1:51 am Post subject: |
|
|
Yes, this is the default behavior. enp1s0f0 and enp1s0f1 have 8 transmit queues each. enp1s0f1 has 1 transmit queue and hence has no mq qdisc. lo, like most virtual devices, is "nooqeue". |
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Wed Mar 15, 2023 1:53 am Post subject: |
|
|
salahx wrote: | Yes, this is the default behavior. enp1s0f0 and enp1s0f1 have 8 transmit queues each. enp1s0f1 has 1 transmit queue and hence has no mq qdisc. lo, like most virtual devices, is "nooqeue". |
Wow...I didn't realize I was getting something so high end, I just got the cheapest Intel multi-port card on newegg. It's server class, but multi-port ones tend to be. The only thing I noticed in the reviews was a warning to not try to get it work with Windows, because it's not supported. But since I got it for my Gentoo server I wasn't worried about that. |
|
Back to top |
|
|
|