lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 30 Jun 2014 12:29:21 -0700 From: Eric Dumazet <eric.dumazet@...il.com> To: Tom Herbert <therbert@...gle.com> Cc: David Miller <davem@...emloft.net>, Linux Netdev List <netdev@...r.kernel.org> Subject: Re: [PATCH] net: Performance fix for process_backlog On Mon, 2014-06-30 at 09:42 -0700, Tom Herbert wrote: > Eliminating a couple of conditionals is a nice logic improvement, but > is not material in the performance improvement. The improvement comes > for the fact that we are staying in the the process_backlog loop and > not clearing napi_state as long as there is still work to do. This can > result in fewer IPIs which is shown in number of interrupts/sec. > (1145382 vs. 1021674 in my test). > > The cost of the change is one additional lock and check on qlen when > the queue is empty, however in this case they should still be in the > local cache so that's not overly expensive (far cheaper than more > IPIs). Great, thanks ! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists