Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-30-2015, 06:23 PM   #1
Registered: Oct 2010
Posts: 93

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?

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
Old 11-30-2015, 07:22 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,749

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

Original Poster
Rep: Reputation: 1
Thumbs up

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.


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 11:02 AM
"Clean" bitmap font as fall-back in Firefox SpelledJ Linux - Software 1 12-25-2009 11:34 AM
FSCK.EXT3 "error allocating inode bitmap" arfon Linux - Software 6 05-15-2006 10:48 AM
Failure loading module "bitmap" in X Windows digitalbrutus Linux - Software 2 08-13-2004 08:51 PM

All times are GMT -5. The time now is 01:34 AM.

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