mirror of
https://github.com/Zenithsiz/ftmemsim.git
synced 2026-02-04 02:08:39 +00:00
Also fixed the fact that the average temperature did not account for coolings.
58 lines
1.5 KiB
Bash
Executable File
58 lines
1.5 KiB
Bash
Executable File
#!/bin/env bash
|
|
|
|
set -e
|
|
|
|
RUST_FILE_LOG="trace,ftmemsim::classifiers::hemem=debug"
|
|
LOG_FILE="latest.log"
|
|
|
|
#PROFILE="dev"
|
|
PROFILE="release"
|
|
|
|
#TRACE_FILE="resources/traces/bfs.g5.n5.trace"
|
|
TRACE_FILE="resources/traces/bfs.g15.n15.trace"
|
|
#TRACE_FILE="resources/traces/bfs.g17.n100.t1.trace"
|
|
#TRACE_FILE="resources/traces/bc.g18.n100.t1.trace"
|
|
|
|
CONFIG="config.json"
|
|
|
|
OUTPUT_WIDTH=$((8000))
|
|
OUTPUT_HEIGHT=$((1000))
|
|
OUTPUT_FORMAT="png"
|
|
|
|
rm -rf "$LOG_FILE"
|
|
|
|
echo "Simulating"
|
|
cargo run --profile "$PROFILE" -p ftmemsim -- \
|
|
--log-file-append \
|
|
--log-file "$LOG_FILE" \
|
|
--config "$CONFIG" \
|
|
"$TRACE_FILE"
|
|
|
|
echo "Creating graphs"
|
|
cargo run --profile "$PROFILE" -p ftmemsim-graphs -- \
|
|
--log-file-append \
|
|
--log-file "$LOG_FILE" \
|
|
page-locations \
|
|
"resources/data/page_locations.json" \
|
|
--output "resources/data/page_locations.$OUTPUT_FORMAT" \
|
|
--output-width "$OUTPUT_WIDTH" \
|
|
--output-height "$OUTPUT_HEIGHT"
|
|
|
|
cargo run --profile "$PROFILE" -p ftmemsim-graphs -- \
|
|
--log-file-append \
|
|
--log-file "$LOG_FILE" \
|
|
page-migrations \
|
|
"resources/data/page_locations.json" \
|
|
--output "resources/data/page_migrations.$OUTPUT_FORMAT" \
|
|
--output-width "$OUTPUT_WIDTH" \
|
|
--output-height "$OUTPUT_HEIGHT"
|
|
|
|
cargo run --profile "$PROFILE" -p ftmemsim-graphs -- \
|
|
--log-file-append \
|
|
--log-file "$LOG_FILE" \
|
|
page-temperature \
|
|
"resources/data/page_accesses.json" \
|
|
--output "resources/data/page_temperature.$OUTPUT_FORMAT" \
|
|
--output-width "$OUTPUT_WIDTH" \
|
|
--output-height "$OUTPUT_HEIGHT"
|