Skip to content

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

0
Published inDocker

64 Comments

  1. You are my inspiration , I own few web logs and sometimes run out from to post .

  2. 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!

  3. It’s really a nice and useful piece of info. I’m glad that you shared this useful info with us. Please keep us informed like this. Thanks for sharing.

  4. 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.

  5. Absolutely pent content material, thank you for information. “Life is God’s novel. Let him write it.” by Isaac Bashevis Singer.

  6. 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.

  7. I will right away grasp your rss as I can’t in finding your e-mail subscription link or e-newsletter service. Do you have any? Please let me recognize in order that I may subscribe. Thanks.

  8. you have a great blog here! would you like to make some invite posts on my blog?

  9. 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. . . . . .

  10. 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.

  11. I appreciate, cause I found just what I was looking for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye

  12. I truly enjoy looking at on this site, it contains fantastic content. “Dream no small dreams. They have no power to stir the souls of men.” by Victor Hugo.

  13. 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.

  14. 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!

  15. 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.

  16. Well I really enjoyed reading it. This article procured by you is very helpful for proper planning.

  17. Hi, i feel that i noticed you visited my web site so i got here to “return the prefer”.I am attempting to find things to enhance my website!I suppose its adequate to use a few of your concepts!!

  18. 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.

  19. 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

  20. 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!

  21. 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!

  22. I appreciate, cause I found just what I was looking for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day. Bye

  23. I am constantly browsing online for tips that can benefit me. Thx!

  24. It is best to take part in a contest for one of the best blogs on the web. I will suggest this web site!

  25. 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!

  26. of course like your web-site however you need to check the spelling on quite a few of your posts. Several of them are rife with spelling problems and I find it very troublesome to inform the reality however I?¦ll definitely come again again.

  27. 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!

  28. Thankyou for this marvelous post, I am glad I observed this website on yahoo.

  29. 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.

  30. 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.

  31. Everything is very open and very clear explanation of issues. was truly information. Your website is very useful. Thanks for sharing.

  32. 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.

  33. I have recently started a blog, the information you offer on this site has helped me greatly. Thank you for all of your time & work.

  34. Amazing! This blog looks just like my old one! It’s on a completely different subject but it has pretty much the same layout and design. Great choice of colors!

  35. I reckon something genuinely interesting about your site so I saved to favorites.

  36. Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is wonderful, as well as the content!

  37. 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.

  38. Whats Going down i’m new to this, I stumbled upon this I have found It positively helpful and it has helped me out loads. I hope to give a contribution & aid other users like its aided me. Great job.

  39. 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!

  40. 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..

  41. Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is great, let alone the content!

  42. Some really nice and utilitarian information on this site, also I believe the layout has got fantastic features.

  43. hello!,I like your writing so much! share we communicate more about your post on AOL? I need an expert on this area to solve my problem. May be that’s you! Looking forward to see you.

  44. 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.

  45. Hey! I could have sworn I’ve been to this website before but after browsing through some of the post I realized it’s new to me. Anyhow, I’m definitely happy I found it and I’ll be bookmarking and checking back often!

  46. 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.

  47. 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.

  48. 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..

  49. 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.

  50. 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.

  51. 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.

  52. 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

Your email address will not be published.