Scyld ClusterWare HPC: Reference Guide | ||
---|---|---|
<< Previous | Next >> |
The node to query
A pointer to a struct beostat_loadavg, which is defined as follows:
struct beostat_loadavg { float load[3]; int num_active_procs; int total_procs; int last_pid; }; |
beostat_get_loadavg will get the load average information of a node in the cluster. The three values given averages over increasing time durations.
struct beostat_loadavg loadavg; beostat_get_loadavg (3, &loadavg); printf ("The load process ID on node 3 was %d.\n", loadavg.last_pid); |
This function relies on the Beostat subsystem, which consists of the proc filesystem on the remote node, the sendstats daemon on the remote node, the recvstats daemon on the master node, and two shared memory files in the directory /var/shm. If any part of the system breaks down, this function could fail.
<< Previous | Home | Next >> |
beostat_get_last_multicast | Up | beostat_get_meminfo |