How do I bind NIC interrupts to selected CPU?

I read this interesting mailing thread few weeks back. I won’t be late to share this with open source enthusiast like you. Here goes the story:

nic2

I have a 4 Quad server, am trying to bind NIC eth0 interrupt(s) to CPU4 and CPU5. As of now, my eth0 is found bind to all the 8’s.
#grep eth0 /proc/interrupts | awk ‘{print $NF}’ | sort

eth0-0
eth0-1
eth0-2
eth0-3
eth0-4
eth0-5
eth0-6
eth0-7

How to move ahead?

Solution: Follow these steps to get it done.

As I am using Broadcom card(bnx2), I am going to run this command and reboot my machine.

Open the terminal:

echo “options bnx2 disable_msi=1” > /etc/modprobe.d/bnx2.conf

then reboot, after you’ll only see one irq for eth0.

Next, run this command:

echo cpumask > /proc/irq/IRQ-OF-ETH0-0/smp_affinity

I believe the mask for cpu4 is 10 and cpu5 is 20.
(don’t forget to disable irqbalance)

you can only bind the irqs for one nic to one core at a time.

or you could do something fancy/silly with isolcpus and….

isolcpus all but 4/5 so that all irqs will be scheduled on 4/5. this will
mean that the kernel can only schedule tasks on cpu4/5.

Hope it helps !!!
then use cpusets/taskset/tuna to move all the processes off cpu 4/5… and
you’ll have to use taskset/cpuset/tuna for every task to ensure its not
using cpu4/5

Please follow and like us:
0

64 thoughts on “How do I bind NIC interrupts to selected CPU?

  1. Very great post. I simply stumbled upon your blog and wanted to mention that I have truly loved browsing your blog posts. After all I’ll be subscribing in your feed and I’m hoping you write again soon!

  2. Thanks for any other wonderful post. Where else may just anybody get that kind of info in such a perfect approach of writing? I’ve a presentation next week, and I am on the look for such information.

  3. This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

  4. Good day very nice blog!! Guy .. Beautiful .. Amazing .. I’ll bookmark your site and take the feeds also?KI’m satisfied to search out a lot of useful information right here in the submit, we need develop extra techniques in this regard, thanks for sharing. . . . . .

  5. But wanna comment on few general things, The website style and design is perfect, the content material is real great. “War is much too serious a matter to be entrusted to the military.” by Georges Clemenceau.

  6. Its like you read my mind! You appear to grasp a lot about this, like you wrote the book in it or something. I think that you simply could do with some to drive the message house a bit, however instead of that, this is excellent blog. A fantastic read. I will certainly be back.

  7. You really make it seem so easy together with your presentation but I to find this matter to be really something which I believe I would by no means understand. It sort of feels too complex and very wide for me. I am having a look forward in your next put up, I?¦ll try to get the hang of it!

  8. With havin so much content do you ever run into any issues of plagorism or copyright violation? My website has a lot of completely unique content I’ve either created myself or outsourced but it looks like a lot of it is popping it up all over the web without my agreement. Do you know any methods to help protect against content from being stolen? I’d genuinely appreciate it.

  9. What¦s Going down i’m new to this, I stumbled upon this I’ve discovered It absolutely useful and it has aided me out loads. I’m hoping to contribute & aid different customers like its aided me. Great job.

  10. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100 positive. Any tips or advice would be greatly appreciated. Thanks

  11. Have you ever thought about adding a little bit more than just your articles? I mean, what you say is fundamental and everything. Nevertheless think of if you added some great images or video clips to give your posts more, “pop”! Your content is excellent but with pics and videos, this site could undeniably be one of the most beneficial in its field. Wonderful blog!

  12. When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

  13. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove people from that service? Many thanks!

  14. My coder is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on several websites for about a year and am nervous about switching to another platform. I have heard great things about blogengine.net. Is there a way I can import all my wordpress content into it? Any kind of help would be really appreciated!

  15. Hello there! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for another platform. I would be great if you could point me in the direction of a good platform.

  16. Have you ever considered publishing an e-book or guest authoring on other sites? I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my subscribers would enjoy your work. If you are even remotely interested, feel free to send me an e mail.

  17. Can I just say what a relief to find someone who actually knows what theyre talking about on the internet. You definitely know how to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

  18. Hi, Neat post. There’s an issue along with your web site in internet explorer, could check thisK IE nonetheless is the marketplace leader and a huge component to people will leave out your magnificent writing because of this problem.

  19. Youre so cool! I dont suppose Ive read anything like this before. So good to seek out somebody with some authentic ideas on this subject. realy thanks for starting this up. this website is one thing that is wanted on the net, somebody with a bit of originality. helpful job for bringing something new to the internet!

  20. Great ?V I should certainly pronounce, impressed with your website. I had no trouble navigating through all the tabs as well as related info ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Reasonably unusual. Is likely to appreciate it for those who add forums or anything, web site theme . a tones way for your client to communicate. Excellent task..

  21. I have been exploring for a little bit for any high-quality articles or blog posts on this kind of space . Exploring in Yahoo I finally stumbled upon this web site. Reading this information So i am satisfied to express that I have a very good uncanny feeling I discovered just what I needed. I most without a doubt will make certain to don’t disregard this web site and provides it a glance on a constant basis.

  22. Thanks for sharing excellent informations. Your website is so cool. I am impressed by the details that you¦ve on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found just the information I already searched all over the place and just couldn’t come across. What a perfect site.

  23. Thanks for your write-up. One other thing is always that individual states in the United states of america have their own laws that affect home owners, which makes it very difficult for the our lawmakers to come up with a whole new set of rules concerning property foreclosures on householders. The problem is that a state has own legislation which may have interaction in an undesirable manner with regards to foreclosure procedures.

  24. I’m really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one these days..

  25. I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this increase.

  26. I am grateful for your post. I’d really like to comment that the tariff of car insurance will vary from one policy to another, given that there are so many different issues which give rise to the overall cost. Such as, the make and model of the car or truck will have a significant bearing on the fee. A reliable older family auto will have a lower priced premium than the usual flashy expensive car.

  27. I cherished as much as you will obtain performed right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you want be delivering the following. ill definitely come further formerly again as exactly the similar just about a lot steadily inside of case you protect this increase.

  28. I am not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for great information I was looking for this info for my mission.

Leave a Reply to Anonymous Cancel reply