LSF provides an initialization script (initialize_eas in $LSF_BINDIR) that calculates coefficients and must be run on all compute nodes.
The initialization utility:
Initialization script to generate coefficient data for automatic CPU frequency selection.
The script (initialize_eas) can be run several times with different default CPU frequencies each time to generate several coefficient data groups before starting the LSF cluster. The default CPU frequency can be set using the utility initialize_eas -f.
Output data can be found in the following locations:
rsh | ssh | xdsh
Specifies which remote execution command will be used to run the energy initialization commands on the remote node. The default command is rsh.
benchmark_dir
Specifies the location of the energy benchmarks.
default_frequency
Specifies the default CPU frequency (GHz, MHz, or KHz). The default is GHz.
node_list_file
Specifies the compute nodes that need to run the benchmarks. Each host should be on one line in the file.
new_node_list_file
Specifies the new nodes that need to be added in the cluster. Each host should be on one line in the file.
cluster_name
Specifies the cluster name used to generate coefficient data.
load coefficient data into database.
The result of initialize_eas is two new tables in the database, one for the coefficients and one for the energy policy tag:
CREATE TABLE IF NOT EXISTS TLSF_EnergyCoEfficients (
frequency INTEGER NOT NULL, default_frequency INTEGER NOT NULL, cluster_name VARCHAR(40) BINARY NOT NULL, factor_a DOUBLE NOT NULL,
factor_b DOUBLE NOT NULL,
factor_c DOUBLE NOT NULL,
factor_d DOUBLE NOT NULL,
factor_e DOUBLE NOT NULL,
factor_f DOUBLE NOT NULL,
KEY (frequency, cluster_name,default_frequency),
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS TLSF_EnergyPolicyTag (
energy_tag_name VARCHAR(256) BINARY NOT NULL,
user_name VARCHAR(256)BINARY NOT NULL,
default_frequency INTEGER NOT NULL,
frequency INTEGER NOT NULL,
cluster_name VARCHAR(40) BINARY NOT NULL,
job_ id VARCHAR(1024) BINARY NOT NULL,
predict_power DOUBLE NOT NULL,
energy_saving_pct DOUBLE NOT NULL,
predict_elapse_time INTEGER NOT NULL,
_degrad_pct DOUBLE NOT NULL,
PRIMARY KEY (energy_tag_name, user_name, frequency, default_frequency, cluster_name),
) ENGINE = InnoDB;