LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-30-2015, 07:23 PM   #1
hahacc
Member
 
Registered: Oct 2010
Posts: 87

Rep: Reputation: 1
Question 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!
 
Old 11-30-2015, 08:22 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,614

Rep: Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703
What is the value of 2^0 + 2^1 + 2^2 + 2^3?
 
Old 12-02-2015, 02:21 AM   #3
hahacc
Member
 
Registered: Oct 2010
Posts: 87

Original Poster
Rep: Reputation: 1
Thumbs up

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] I say "realloc", you say "SIGABRT" - And I don't understand it. derchris Programming 3 03-25-2011 12:02 PM
"Clean" bitmap font as fall-back in Firefox SpelledJ Linux - Software 1 12-25-2009 12:34 PM
FSCK.EXT3 "error allocating inode bitmap" arfon Linux - Software 6 05-15-2006 11:48 AM
Failure loading module "bitmap" in X Windows digitalbrutus Linux - Software 2 08-13-2004 09:51 PM


All times are GMT -5. The time now is 12:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration