-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from dongahn/sched_prop
sched: Add queue-depth=1 FCFS perf/scalability optimization
- Loading branch information
Showing
9 changed files
with
106 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ global: | ||
get_sched_properties; | ||
allocate_resources; | ||
find_resources; | ||
reserve_resources; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
#set -x | ||
|
||
test_description='Test fcfs scheduler with queue-depth=1 in simulator | ||
' | ||
|
||
# source sharness from the directore where this test | ||
# file resides | ||
# | ||
. $(dirname $0)/sharness.sh | ||
FLUX_MODULE_PATH="${SHARNESS_BUILD_DIRECTORY}/simulator/.libs:${FLUX_MODULE_PATH}" | ||
|
||
rdlconf=$(readlink -e "${SHARNESS_TEST_SRCDIR}/../conf/hype-io.lua") | ||
jobdata=$(readlink -e "${SHARNESS_TEST_SRCDIR}/data/job-traces/hype-test.csv") | ||
expected_order=$(readlink -e "${SHARNESS_TEST_SRCDIR}/data/emulator-data/fcfs_expected") | ||
|
||
# | ||
# print only with --debug | ||
# | ||
test_debug ' | ||
echo rdlconf=${rdlconf} && | ||
echo jobdata=${jobdata} && | ||
echo expected_order=${expected_order} | ||
' | ||
|
||
# | ||
# test_under_flux is under sharness.d/ | ||
# | ||
test_under_flux 1 | ||
|
||
test_expect_success 'sim: started successfully with queue-depth=1' ' | ||
adjust_session_info 12 && | ||
timed_wait_job 5 && | ||
flux module load sim exit-on-complete=false && | ||
flux module load submit job-csv=${jobdata} && | ||
flux module load sim_exec && | ||
flux module load sched rdl-conf=${rdlconf} in-sim=true plugin=sched.fcfs sched-params=queue-depth=1 | ||
' | ||
|
||
test_expect_success 'sim: scheduled and ran all jobs with queue-depth=1' ' | ||
timed_sync_wait_job 60 | ||
' | ||
|
||
for x in $(seq 1 12); do echo "$x $(flux kvs get $(job_kvs_path $x).starting_time)"; done | sort -k 2n -k 1n | cut -d ' ' -f 1 > actual | ||
|
||
test_expect_success 'jobs scheduled in correct order with queue-depth=1' ' | ||
diff -u ${expected_order} ./actual | ||
' | ||
|
||
test_done |