Share your knowledge at the LQ Wiki.
 Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org how to understand "set the value of their positions in the bitmap to 1"
 Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

 11-30-2015, 06:23 PM #1 hahacc Member   Registered: Oct 2010 Posts: 93 Rep: how to understand "set the value of their positions in the bitmap to 1" Hi folks, Could anyone help explain why the value is 15(f) for cpu 0/1/2/3? Code: ```To enable RPS and allow a particular set of CPUs to handle interrupts for the receive queue on an interface, set the value of their positions in the bitmap to 1. For example, to enable RPS to use CPUs 0, 1, 2, and 3 for the rx-0 queue on eth0, set the value of rps_cpus to f (that is, 1+2+4+8 = 15 in hexadecimal): # cat f > /sys/class/net/eth0/queues/rx-0/rps_cpus``` Thanks!
 11-30-2015, 07:22 PM #2 smallpond Senior Member   Registered: Feb 2011 Location: Massachusetts, USA Distribution: CentOS 6 (pre-systemd) Posts: 2,776 Rep: What is the value of 2^0 + 2^1 + 2^2 + 2^3?
12-02-2015, 01:21 AM   #3
hahacc
Member

Registered: Oct 2010
Posts: 93

Original Poster
Rep:

Quote:
 Originally Posted by smallpond What is the value of 2^0 + 2^1 + 2^2 + 2^3?
Thank you! It's the power value of them.

 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 Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post derchris Programming 3 03-25-2011 11:02 AM SpelledJ Linux - Software 1 12-25-2009 11:34 AM arfon Linux - Software 6 05-15-2006 10:48 AM digitalbrutus Linux - Software 2 08-13-2004 08:51 PM

LinuxQuestions.org

All times are GMT -5. The time now is 05:49 PM.

 Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -