cpusetSetMemList man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



cpusetSetMemList(3x)					  cpusetSetMemList(3x)

NAME
     cpusetSetMemList - set the list of all nodes with memory assigned to a
     cpuset

SYNOPSIS
     #include <cpuset.h>

     int cpusetSetMemList(cpuset_QueueDef_t *qdef, int count,
					   cnodeid_t *mem;

DESCRIPTION
     The cpusetSetMemList function is used to set the list of the nodes with
     memory that will be assigned to a cpuset.	The list of nodes IDs will be
     copied into memory reference by the qdef argument, which must be
     allocated by the cpusetAllocQueueDef(3x) function.	 For additional
     information on the cpuset_QueueDef_t type, consult the
     cpusetAllocQueueDef(3x) man page.

     The count argument is the number of node IDs in the list.	The list
     argument references the memory array that holds the list of node IDs
     whose memory will be included in the cpuset.

     This list of nodes will then be used when the cpuset is created, using
     the cpusetCreate(3x) function, to determine what memory to include in the
     cpuset.

EXAMPLES
     This example sets the list of nodes with memory assigned to the cpuset
     mpi_set.

	       cpuset_QueueDef_t *qdef	= NULL;
	       int		   count  = 4;
	       cnodeid_t	 mems[] = {2,3,4,5}

	       /* Create qdef struct for 4 CPUs */
	       qdef = cpusetAllocQueueDef(4);
	       /* Set the list of memory nodes */
	       if ( !cpusetSetMemList(qdef, count, mems)) ) {
		   perror("cpusetSetMemList");
		   exit(1);
	       }

	       /* After setting other cpuset queue attributes */
	       /* Create the cpuset */
	       if ( !cpusetCreate("mpi_set", qdef) ) {
		   perror("cpusetCreate");
		   exit(1);
	       }

									Page 1

cpusetSetMemList(3x)					  cpusetSetMemList(3x)

NOTES
     cpusetSetMemList is found in the library "libcpuset.so", and will be
     loaded if the option -lcpuset is used with cc(1) or ld(1).

SEE ALSO
     cpuset(1), cpusetAllocQueueDef(3x), cpusetCreate(3x), cpuset(5).

DIAGNOSTICS
     If successful, cpusetSetMemList returns 1.	 If cpusetSetMemList fails, it
     returns 0 and errno is set to indicate the error.

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net