Permalink
Browse files

changes to HSTORE-HOME

  • Loading branch information...
Rebecca Taft
Rebecca Taft committed Mar 26, 2014
1 parent f2a6cc1 commit afed61dc314dbb5e1e30b8ec3b641fb172094a02
@@ -130,11 +130,11 @@ public void run () {
doReconfiguration();
System.out.println("Waiting until reconfiguration has completed");
String ip = sites.iterator().next().getHost().getIpaddr();
String response = ShellTools.cmd("ssh " + ip + " grep RECONFIGURATION_END $HSTORE_HOME/hevent.log");
String response = ShellTools.cmd("ssh " + ip + " grep RECONFIGURATION_END /localdisk/rytaft/h-store/hevent.log");
int previousReconfigurations = response.split("\n").length;
while(true){
Thread.sleep(1000);
response = ShellTools.cmd("ssh " + ip + " grep RECONFIGURATION_END $HSTORE_HOME/hevent.log");
response = ShellTools.cmd("ssh " + ip + " grep RECONFIGURATION_END /localdisk/rytaft/h-store/hevent.log");
if(response.split("\n").length > previousReconfigurations) break;
}
System.out.println("Reconfiguration has completed");
@@ -131,8 +131,9 @@ public void refreshCPUStats(){
// TODO use an environment variable $HSTORE_HOME in the command. to be used when .bashrc becomes accessible
// TODO very system specific. it should parse all "lines" entries and find the one with "java"
// TODO should split the script into (i) one script that finds the PID of the threads per partition and (ii) one command that calls top and grep (from java)
String command = String.format("ssh -t -t %s $HSTORE_HOME/scripts/partitioning/cpu_partition_monitor.sh %02d %03d", ip, site.getId(), part.getId());
String command = String.format("ssh -t -t %s /localdisk/rytaft/h-store/scripts/partitioning/cpu_partition_monitor.sh %02d %03d", ip, site.getId(), part.getId());
String result = ShellTools.cmd(command);
System.out.println("result: " + result);
String[] lines = result.split("\n");
String[] fields = lines[1].split("\\s+");
try{

0 comments on commit afed61d

Please sign in to comment.