Bug 670857

Summary: Usage of taskset is misleading
Product: [Fedora] Fedora Reporter: Tobias Mueller <fedora-bugs>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 21:35:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tobias Mueller 2011-01-19 14:48:44 UTC
Description of problem:
I tried to set the affinity of a process following http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html which reads "taskset 0x00000001 -p 13545". The usage of taskset currently reads: 
Usage: taskset [options] [mask | cpu-list] [pid|cmd [args...]]

which matches the command given above. I hence expected to be able to run
taskset 0x00000001 -p 11930
but it fails:
taskset: executing -p failed: No such file or directory

Comment 1 Karel Zak 2011-06-07 21:35:20 UTC
Your command 

   taskset 0x00000001 -p 11930

does not match with expected and documented command options. You have to use

  taskset -p 0x00000001 11930