Bug 116398 - numactl -preferred does not issue a warning/error in case of incorrect parameters
Summary: numactl -preferred does not issue a warning/error in case of incorrect parame...
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: RC 1
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Andreas Kleen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-11 16:35 UTC by Gerald Pfeifer
Modified: 2005-09-11 22:34 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2005-09-11 16:35:48 UTC
The man page for numactl states the following: 
 
       --preferred=node 
              Preferably allocate memory on node, but if memory  cannot  be 
              allocated  there fall back to other nodes.  This option takes 
              only a single node number. 
 
And indeed when invoking numactl with --preferred=1-3, the preferred node is 
set to 1.  However, no warning/error is issued to notify the user that the 
invocation as such was incorrect.  Adding a check and informing the user would 
be nice.
Comment 1 Andreas Kleen 2005-09-11 22:34:10 UTC
I added a check for trailing garbage on the number in mainline.