Bug 670857 - Usage of taskset is misleading
Summary: Usage of taskset is misleading
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-19 14:48 UTC by Tobias Mueller
Modified: 2011-06-07 21:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-07 21:35:20 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.