diff --git a/doc/man/man1/sacct.1 b/doc/man/man1/sacct.1 index e128ff3b60070f613935d7d2ddb36f83b6d5f7a0..102d7d22f3613bc9179b0fe2be95d1f657066d5d 100644 --- a/doc/man/man1/sacct.1 +++ b/doc/man/man1/sacct.1 @@ -441,6 +441,8 @@ specialized \f3sjobexitmod\fP command. .TP \f3ConsumedEnergy\fP Total energy consumed by all tasks in job, in joules. +Note: Only in case of exclusive job allocation this value +reflects the jobs' real energy consumption. .TP \f3cputime\fP diff --git a/doc/man/man1/sstat.1 b/doc/man/man1/sstat.1 index 53ae8ec9f604eff861f8eb796639c8533cfb0332..52c1abde43964f6579db33bcfb4888531723f401 100644 --- a/doc/man/man1/sstat.1 +++ b/doc/man/man1/sstat.1 @@ -131,6 +131,8 @@ Average Virtual Memory size of all tasks in job. .TP \f3ConsumedEnergy\fP Total energy consumed by all tasks in job, in joules. +Note: Only in case of exclusive job allocation this value +reflects the jobs' real energy consumption. .TP \f3JobID\fP diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5 index 78458ffb712b56b8602dc50f36b4125185c19907..605f1a0401fa5a0609761439a0a7a0fc9aa3c899 100644 --- a/doc/man/man5/slurm.conf.5 +++ b/doc/man/man5/slurm.conf.5 @@ -160,7 +160,12 @@ determined by the value of \fBJobAcctGatherFrequency\fR. \fBAcctGatherEnergyType\fR Identifies the plugin to be used for energy consumption accounting. The jobacct_gather plugin and slurmd daemon call this plugin to collect -energy consumption data for jobs and nodes. +energy consumption data for jobs and nodes. The collection of energy +consumption data takes place on node level, hence only in case of exclusive +job allocation the energy consumption measurements will reflect the jobs +real consumption. In case of node sharing between jobs the reported consumed +energy per job (through sstat or sacct) will not reflect the real energy +consumed by the jobs. Configurable values at present are: .RS diff --git a/src/plugins/acct_gather_energy/rapl/acct_gather_energy_rapl.h b/src/plugins/acct_gather_energy/rapl/acct_gather_energy_rapl.h index 85f59ae790c428537fb6dbca1c6ed7a9626e1485..c269be519fbc8a96c7bb7f260251f8506dfdc0e8 100644 --- a/src/plugins/acct_gather_energy/rapl/acct_gather_energy_rapl.h +++ b/src/plugins/acct_gather_energy/rapl/acct_gather_energy_rapl.h @@ -41,17 +41,6 @@ #ifndef _ENERGY_GATHER_RAPL_H_ #define _ENERGY_GATHER_RAPL_H_ -#define EC_PACKAGE_ENERGY 1 -#define EC_DRAM_ENERGY 2 -#define EC_TOTAL_ENERGY 3 -#define EC_PACKAGE_POWER 4 -#define EC_DRAM_POWER 5 -#define EC_TOTAL_POWER 6 -#define EC_ENERGY_UNITS 7 - -#define EC_ALL_PACKAGES -2 -#define EC_CURRENT_CPU -1 - #define MAX_PKGS 256 #define MSR_RAPL_POWER_UNIT 0x606