You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request that application processes be monitored via several possible methods.
705
-
For example, that the server monitor this process for periodic heartbeats as an indication that the process has not become ``wedged''.
704
+
Request that application processes and/or files be monitored via several possible methods.
705
+
For example, that the server monitor a given process for periodic heartbeats as an indication that the process has not become ``wedged''.
706
706
When a monitor detects the specified alarm condition, it will generate an event notification using the provided error code and passing along any available relevant information.
707
707
It is up to the caller to register a corresponding event handler.
708
708
709
709
The \refarg{monitor} argument is an attribute indicating the type of monitor being requested.
710
-
For example, \refattr{PMIX_MONITOR_FILE} to indicate that the requestor is asking that a file be monitored.
710
+
For example, \refattr{PMIX_MONITOR_FILE_CHANGES} to indicate that the requestor is asking that a file be monitored.
711
711
712
712
The \refarg{error} argument is the status code to be used when generating an event notification alerting that the monitor has been triggered.
713
713
The range of the notification defaults to \refconst{PMIX_RANGE_NAMESPACE}.
The \refstruct{pmix_node_pid_t} structure contains the hostname and pid of a process executing on that host.
879
+
The \refstruct{pmix_node_pid_t} structure contains the hostname (or nodeID) and pid of a process executing on that host.
864
880
Since a pid is uniquely associated with a given host, this creates a conjugate pair.
865
881
866
882
\copySignature{pmix_node_pid_t}{6.0}{
867
883
typedef struct pmix_node_pid \{\\
868
884
\hspace*{4\sigspace}char *hostname; \\
885
+
\hspace*{4\sigspace}uint32_t nodeid; \\
869
886
\hspace*{4\sigspace}pid_t pid; \\
870
887
\} pmix_node_pid_t;
871
888
}
872
889
873
-
The \refarg{pid} field contains the \code{pid_t} of the process, while the \refarg{hostname} is the name of the node where the process is executing.
890
+
The \refarg{pid} field contains the \code{pid_t} of the process, while the \refarg{hostname} and/or \refarg{nodeid} identify the node where the process is executing.
Monitor the file characteristics specified in the provided \refstruct{pmix_data_array_t} of \refstruct{pmix_info_t}. If the provided array
995
+
is \code{NULL}, then all optional file characteristics shall be monitored. Target filenames **must** be provided in the associated
996
+
\refarg{directives} array. If no target nodes are specified, then the target files will be monitored on all nodes in the session where they are present. Note that the values in the provided structures will be
997
+
ignored (i.e., only the attribute keys are relevant) except where noted. Optional
\item\refattr{PMIX_DISK_RESOURCE_USAGE}. If the \refstruct{pmix_data_array_t} is empty, then
1078
-
all disk resource usage values shall be returned for all disks attached to the node.
1079
-
Optionally, the array of \refstruct{pmix_info_t} can specify the disks to be monitored (using the \refattr{PMIX_DISK_ID} attribute), and/or the particular attributes to be reported. Note that the values in the provided structures will be
1080
-
ignored (i.e., only the attribute keys are relevant) except where noted, and that the
1081
-
\refattr{PMIX_DISK_SAMPLE_TIME} will always be included in the returned data (there is no
1082
-
need to include it in the request). Optional
1083
-
attributes include:
1084
-
\begin{itemize}
1085
-
\item\refattr{PMIX_DISK_ID}. Optionally specify the disk to be monitored. If omitted, then all disks
1086
-
attached to the node will be monitored.
1087
-
\item\refattr{PMIX_DISK_READ_COMPLETED}
1088
-
\item\refattr{PMIX_DISK_READ_MERGED}
1089
-
\item\refattr{PMIX_DISK_READ_SECTORS}
1090
-
\item\refattr{PMIX_DISK_READ_MILLISEC}
1091
-
\item\refattr{PMIX_DISK_WRITE_COMPLETED}
1092
-
\item\refattr{PMIX_DISK_WRITE_MERGED}
1093
-
\item\refattr{PMIX_DISK_WRITE_SECTORS}
1094
-
\item\refattr{PMIX_DISK_WRITE_MILLISEC}
1095
-
\item\refattr{PMIX_DISK_IO_IN_PROGRESS}
1096
-
\item\refattr{PMIX_DISK_IO_MILLISEC}
1097
-
\item\refattr{PMIX_DISK_IO_WEIGHTED}
1098
-
\item\refattr{PMIX_DISK_SAMPLE_TIME}
1099
-
\end{itemize}
1100
-
\item\refattr{PMIX_NETWORK_RESOURCE_USAGE}. If the \refstruct{pmix_data_array_t} is empty, then
1101
-
all network resource usage values shall be returned for all interfaces on the node.
1102
-
Optionally, the array of \refstruct{pmix_info_t} can specify the networks to be monitored (using the \refattr{PMIX_NETWORK_ID} attribute), and/or the particular attributes to be reported. Note that the values in the provided structures will be
1103
-
ignored (i.e., only the attribute keys are relevant) except where noted, and that the
1104
-
\refattr{PMIX_NET_SAMPLE_TIME} will always be included in the returned data (there is no
1105
-
need to include it in the request). Optional
1106
-
attributes include:
1107
-
\begin{itemize}
1108
-
\item\refattr{PMIX_NETWORK_ID}. Optionally specify the interface to be monitored. If omitted, then all
Monitor the resources specified in the provided \refstruct{pmix_data_array_t} of \refstruct{pmix_info_t}. If the provided array
1149
+
is \code{NULL}, then all network resources shall be monitored. If no \refattr{PMIX_NETWORK_ID} targets are provided in the associated
1150
+
\refarg{directives} array, then
1151
+
all network interfaces on the local node (or on the specified target nodes, if given) will be monitored. Note that the values in the provided structures will be
1152
+
ignored (i.e., only the attribute keys are relevant) except where noted, and that the
1153
+
\refattr{PMIX_NET_SAMPLE_TIME} will always be included in the returned data (there is no
1154
+
need to include it in the request). Optional attributes include:
files which have been mmapped, such as libraries. Note that some kernel configurations might consider all pages part of a larger allocation (e.g., THP) as “mapped”, as soon as a single page is mapped. In MBytes
1333
1382
}
1334
-
\item\refattr{PMIX_DISK_RESOURCE_USAGE} One for each disk attached to the node.
1335
-
\item\refattr{PMIX_NETWORK_RESOURCE_USAGE} One for each network interface on the node.
0 commit comments