LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2014, 02:23 AM   #1
mail2pvijay
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
SMP SKB recycler


Hello,

I am working on optimization of network drivers, and on profiling realized that many cpu cycles are being taken by linux SKB alloc and free functions. I have done some research on SKB recycler and found there is one available - http://lwn.net/Articles/332037/ and found to be helping (achieve great CPU savings). But this SKB recycler uses per-CPU skb lists , so all its benefit goes away if I use SMP.
I have 2 network interfaces (say eth0, eth1) and a dual-CPU processor system, and for best performance, I use linux smp irq affinity (eth0 -> 1, eth1 ->2) to split the network load between the 2 processors. So in a unidirectional traffic case (eth0 -> eth1), all skb allocations are happening on CPU0 and all skb frees happen on CPU1, rendering SKB recycler non-beneficial.
Is there any implementation of SKB recycler for SMP?


Thanks
Vijay
 
Old 08-07-2014, 07:48 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Looks like you are too late - looks like it was all removed not too long ago; see changelog; note commit 541321132ac28c92394b1d57361448d2c6dd5faf
 
Old 12-07-2016, 07:29 PM   #3
Sanjib_Sur
LQ Newbie
 
Registered: Oct 2008
Posts: 13

Rep: Reputation: 0
Hello mail2pvijay,

I am working on a dual network interface on a dual-core system and facing a similar issue skb_recycler. Did you eventually figure out a solution with smp_affinity benefit?

Thanks,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recycle SKB using SKB pool Pankajgoyal38 Linux - Kernel 4 03-11-2013 10:39 PM
LXer: Because It's Much Better to Give than Take: Oregon Recycler's Laptops Stolen LXer Syndicated Linux News 0 12-20-2008 01:50 AM
about Windows viruses in Recycler kpachopoulos General 39 12-29-2007 12:37 AM
group the outgoing skb's into single skb and then send grouped skb. venkatesh111 Linux - Networking 0 04-27-2006 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration