function simulation_form_short() { $scen = get_str("scen"); page_head("Do simulation"); start_table(); echo "\n <form action=sim_web.php method=post enctype=\"multipart/form-data\">\n <input type=hidden name=action value=simulation_action>\n <input type=hidden name=scen value={$scen}>\n <input type=hidden name=rec_half_life_days value=10>\n <input type=hidden name=existing_jobs_only value=0>\n <input type=hidden name=use_hyst_fetch value=1>\n <input type=hidden name=cpu_sched_rr_only value=0>\n <input type=hidden name=server_uses_workload value=0>\n "; row2("Duration", "<input name=duration value=86400> seconds"); row2("Time step", "<input name=delta value=60> seconds"); row2("Log flags", log_flag_boxes()); row2("", "<input type=submit value=OK>"); echo "</form>\n"; end_table(); page_tail(); }
function simulation_form() { $scen = get_str("scen"); $detail = get_str("detail", true); page_head("Do simulation"); start_table(); echo "\n <form action=sim_web.php method=post enctype=\"multipart/form-data\">\n <input type=hidden name=action value=simulation_action>\n <input type=hidden name=scen value={$scen}>\n <input type=hidden name=rec_half_life_days value=10>\n <input type=hidden name=existing_jobs_only value=0>\n <input type=hidden name=cpu_sched_rr_only value=0>\n <input type=hidden name=include_empty_projects value=0>\n <input type=hidden name=server_uses_workload value=0>\n "; row2("Duration", "<input name=duration value=86400> seconds"); row2("Time step", "<input name=delta value=60> seconds"); if ($detail) { row2("Half life of average-credit decay", "<input name=rec_half_life_days value=10> days"); row2("Existing jobs only?\n <br><span class=note>If checked, simulate only the\n jobs in the client state file.\n Otherwise, simulate an infinite stream of jobs\n modeled after those in the state file.", "<input type=checkbox name=existing_jobs_only>"); row2("Scheduler does detailed deadline check?\n <br><span class=note>If checked, the scheduler's deadline\n decisions will use a detailed EDF simulation\n rather than an approximation.</span>", "<input type=checkbox name=server_uses_workload>"); row2("Client uses pure Round-robin?\n <br><span class=note>If checked, job scheduling will\n use a simple round-robin policy.</span>", "<input type=checkbox name=cpu_sched_rr_only>"); row2("Include projects without apps", "<input type=checkbox name=include_empty_projects>"); } else { row2("", "<a href=sim_web.php?action=simulation_form&detail=yes&scen={$scen}>More options</a>"); } row2("Log flags", log_flag_boxes()); row2("", "<input type=submit value=OK>"); echo "</form>\n"; end_table(); page_tail(); }