Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76919 - taskset from the schedutils package fails to properly execute on X86_64 architecture
Summary: taskset from the schedutils package fails to properly execute on X86_64 archi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 09:50 UTC by Eric Jones
Modified: 2005-01-08 15:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jones 2005-01-06 09:50:48 UTC
when trying to use the "taskset" utility to specifiy processor affinity for a new or already running process, taskset returns with error messages that, to me at least, do not indicate where the error is. I know that the error is not in syntax.  I'm running the latest gentoo-dev-sources kernel and the latest schedutils, which I have emerged twice just in case.

If taskset is run on an already running PID, the following occurs:

computer:/> taskset -p 01 9881
sched_getaffinity: Bad file descriptor
failed to get pid 9881's affinity
computer:/>

If taskset is run on a new process, then the following occurs:

computer:/>taskset 01 ls
sched_setaffinity: Bad address
failed to set pid 0's affinity.
computer:/>

The same commands executed on a RedHat system perform as expected, running schedutils 1.3.

All commands are being executed on AMD dual Opteron systems.

Reproducible: Always
Steps to Reproduce:
1. execute taskset on a running or new process
2. taskset returns an error
3.

Actual Results:  
it returned an error

Expected Results:  
it should have stated the previous affinity, and the new affinity.
Comment 1 James Stockton 2005-01-08 14:53:53 UTC
1.3.5 fixes this bug.
Comment 2 Benjamin Schindler (RETIRED) gentoo-dev 2005-01-08 15:37:10 UTC
1.3.5 has been marked stable in cvs.
Thanks for  noticing