igb(4) Pondering a bind to cpu patch



http://people.freebsd.org/~sbruno/if_igb.c.txt

Scenario I've just seen:

8 core machine
2 igb(4) interfaces
set num_queues=4

igb0:0 --> cpu0
igb0:1 --> cpu1
igb0:2 --> cpu2
igb0:3 --> cpu3

igb1:0 --> cpu0
igb1:1 --> cpu1
igb1:2 --> cpu2
igb1:3 --> cpu3

I suspect, that we need a static global to keep track of what cpu last
was last bound to a queue. My patch does do this, but I don't know if
its the right thing.

Since I'm doing multiple interfaces, I need to make sure I don't
schedule a queue to a non existent cpu, so take a modulo of the counter
and the number of cpus in the box.

Perhaps not the most elegant solution, but its a thing?

Sean

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: igb(4) Pondering a bind to cpu patch
    ... that we need a static global to keep track of what cpu last ... was last bound to a queue. ... Since I'm doing multiple interfaces, I need to make sure I don't ...
    (freebsd-net)
  • Re: igb(4) Pondering a bind to cpu patch
    ... that we need a static global to keep track of what cpu last ... Since I'm doing multiple interfaces, I need to make sure I don't ... igb's manual binding and instead let the default system round-robin be ...
    (freebsd-net)
  • Re: IP forwarding from one interface to another
    ... The hardware architecture is such that any packet pinged for any ... the packets (meant for cpu 2) that arrive in cpu 1, ... these interfaces. ... arrives on 1b, the shared memory driver that polls on this, picks up ...
    (comp.os.vxworks)
  • Re: [fw-wiz] PIX-515 acceptable CPU usage?
    ... Seems like at worst you'll see 20-25% CPU ... (10% base and 10% if you had 5 interfaces). ... >1-2% to CPU usage as well. ... >We're going to be passing about 5 Mbps through these pixes in the short term ...
    (Firewall-Wizards)
  • Re: [PATCH 1/4] IPMI: Add parameter to limit CPU usage in kipmid
    ... In some cases kipmid can use a lot of CPU. ... +that's not a simple thing and even the auto-tuning would need to be ... The driver supports a hot add and remove of interfaces. ...
    (Linux-Kernel)