Classes | |
class | Worker |
Worker This is a subclass of thread that submits commands to the server and stores the result in a thread-safe queue. More... | |
Functions | |
def | _main () |
def | optionparse () |
Option parser returns : Command set to run on each (or all) machines, port to connect to server, List of machines to connect to, File to pickle results to, Dictionary to index which command set to use for which machine. More... | |
def | presentBenchmarkData (q, outfile) |
Format of the returned data from remote host should be of the form (this could be cleaned up a little bit) More... | |
def | request_benchmark (perfcmds, shost, sport) |
Request benchmark Connects to server and returns data returns: profiling data from server. More... | |
def | runclient (perfcmds, hosts, port, outfile, cmdindex) |
Variables | |
PROG_NAME | |
validPerfSuitKeys | |
|
private |
Definition at line 332 of file cmsPerfClient.py.
References optionparse(), and runclient().
def cmsPerfClient.optionparse | ( | ) |
Option parser returns : Command set to run on each (or all) machines, port to connect to server, List of machines to connect to, File to pickle results to, Dictionary to index which command set to use for which machine.
Definition at line 18 of file cmsPerfClient.py.
References genParticles_cff.map, and harvestTrackValidationPlots.str.
Referenced by _main().
def cmsPerfClient.presentBenchmarkData | ( | q, | |
outfile | |||
) |
Format of the returned data from remote host should be of the form (this could be cleaned up a little bit)
list of command outputs [ dictionary of cpus { } ]
For example: returned data = [ cmd_output1, cmd_output2 ... ] cmd_output1 = { cpuid1 : cpu_output1, cpuid2 : cpu_output2 ... } # cpuid is "None" if there was only one cpu used cpu_output1 = { candle1 : profset_output1, candle2 : profset_output2 ... } profset_output1 = { profset1 : profile_output1, ... } profile_output1 = { profiletype1: step_output1, ... } step_output1 = { step1: list_of_cpu_times, ... } list_of_cpu_times = [ (evt_num1, secs1), ... ]
We now massage the data
Definition at line 319 of file cmsPerfClient.py.
Referenced by runclient().
def cmsPerfClient.request_benchmark | ( | perfcmds, | |
shost, | |||
sport | |||
) |
Request benchmark Connects to server and returns data returns: profiling data from server.
Definition at line 229 of file cmsPerfClient.py.
Referenced by cmsPerfClient.Worker.run().
def cmsPerfClient.runclient | ( | perfcmds, | |
hosts, | |||
port, | |||
outfile, | |||
cmdindex | |||
) |
Definition at line 272 of file cmsPerfClient.py.
References genParticles_cff.map, and presentBenchmarkData().
Referenced by _main().
cmsPerfClient.PROG_NAME |
Definition at line 7 of file cmsPerfClient.py.
cmsPerfClient.validPerfSuitKeys |
Definition at line 9 of file cmsPerfClient.py.