04-22-2013
Yes, that will work the way you want. DON'T use cpuset 0. It is a special set that represents all cpus. Which is the default without cpuset anyway.
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
I can have only one instance of my script running at any point of time. So I have :
SCRIPT_NAME=$0
if ; then
echo "The process $0 is already running. Aborting the current instance of the job $0"
exit 1
fi
And in the last line of the script i had given exit 0
At times, though... (3 Replies)
Discussion started by: risshanth
3 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. Shell Programming and Scripting
Hi All
I am not able to understand the usage of d# in the below variable declaration.
FILE_LOC contains the directory path
And also help me to know about what will be saved in the variable j.
Thanks!!!
j=${d#${FILE_LOC}/} (2 Replies)
Discussion started by: mohanm
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies
9. Shell Programming and Scripting
I recently came across this construct that i am not able to understand.
ex: cat $(grep -l 'HELLO' *)
the above command prints out the contents of the file if HELLO string is present in the file. I am not able to understand the usage of "$(" here.. can anybody help me understand this? $anything... (2 Replies)
Discussion started by: sreeharshasn
2 Replies
10. UNIX for Dummies Questions & Answers
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
LEARN ABOUT CENTOS
hwloc_cpuset_to_nodeset
Conversion between cpuset and nodeset(3) Hardware Locality (hwloc) Conversion between cpuset and nodeset(3)
NAME
Conversion between cpuset and nodeset -
Functions
static inline void hwloc_cpuset_to_nodeset (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, hwloc_nodeset_t nodeset)
static inline void hwloc_cpuset_to_nodeset_strict (struct hwloc_topology *topology, hwloc_const_cpuset_t cpuset, hwloc_nodeset_t nodeset)
static inline void hwloc_cpuset_from_nodeset (hwloc_topology_t topology, hwloc_cpuset_t cpuset, hwloc_const_nodeset_t nodeset)
static inline void hwloc_cpuset_from_nodeset_strict (struct hwloc_topology *topology, hwloc_cpuset_t cpuset, hwloc_const_nodeset_t nodeset)
Detailed Description
There are two semantics for converting cpusets to nodesets depending on how non-NUMA machines are handled.
When manipulating nodesets for memory binding, non-NUMA machines should be considered as having a single NUMA node. The standard conversion
routines below should be used so that marking the first bit of the nodeset means that memory should be bound to a non-NUMA whole machine.
When manipulating nodesets as an actual list of NUMA nodes without any need to handle memory binding on non-NUMA machines, the strict
conversion routines may be used instead.
Function Documentation
static inline void hwloc_cpuset_from_nodeset (hwloc_topology_ttopology, hwloc_cpuset_tcpuset, hwloc_const_nodeset_tnodeset) [static]
Convert a NUMA node set into a CPU set and handle non-NUMA cases. If the topology contains no NUMA nodes, the machine is considered as a
single memory node, and the following behavior is used: If nodeset is empty, cpuset will be emptied as well. Otherwise cpuset will be
entirely filled. This is useful for manipulating memory binding sets.
static inline void hwloc_cpuset_from_nodeset_strict (struct hwloc_topology *topology, hwloc_cpuset_tcpuset, hwloc_const_nodeset_tnodeset)
[static]
Convert a NUMA node set into a CPU set without handling non-NUMA cases. This is the strict variant of hwloc_cpuset_from_nodeset. It does
not fix non-NUMA cases. If the topology contains some NUMA nodes, behave exactly the same. However, if the topology contains no NUMA nodes,
return an empty cpuset.
static inline void hwloc_cpuset_to_nodeset (hwloc_topology_ttopology, hwloc_const_cpuset_tcpuset, hwloc_nodeset_tnodeset) [static]
Convert a CPU set into a NUMA node set and handle non-NUMA cases. If some NUMA nodes have no CPUs at all, this function never sets their
indexes in the output node set, even if a full CPU set is given in input.
If the topology contains no NUMA nodes, the machine is considered as a single memory node, and the following behavior is used: If cpuset is
empty, nodeset will be emptied as well. Otherwise nodeset will be entirely filled.
static inline void hwloc_cpuset_to_nodeset_strict (struct hwloc_topology *topology, hwloc_const_cpuset_tcpuset, hwloc_nodeset_tnodeset)
[static]
Convert a CPU set into a NUMA node set without handling non-NUMA cases. This is the strict variant of hwloc_cpuset_to_nodeset. It does not
fix non-NUMA cases. If the topology contains some NUMA nodes, behave exactly the same. However, if the topology contains no NUMA nodes,
return an empty nodeset.
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.7 Sun Apr 7 2013 Conversion between cpuset and nodeset(3)