tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: if_wm.c workqueue



Hi,

On 2022/05/25 23:13, Emmanuel Dreyfus wrote:
Hello

I see if_wm.c can handle packets using a workqueue. The thing is
controlled by sysctl hw.wm0.txrx_workqueue but it is not documented
in the ma page.

What is the effect? I have a machine that has trouble handling high
throughput (interrupts rise to 80%+), I suspect it can help, am I
correct?

When hw.wm0.txrx_workqueue is set to 1, receive and transmit processing
of wm0 uses workqueue(9) instead of softint(9), that is, the processing
can be preempted.  As a result, userland process can run even if wm0
receives packets at very high rate.  However, that may causes degradation
of throughput and latency.


Thanks,

--
//////////////////////////////////////////////////////////////////////
Internet Initiative Japan Inc.

Device Engineering Section,
Product Division,
Technology Unit

Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost>




Home | Main Index | Thread Index | Old Index