Skip to content

Commit

Permalink
Set varying swap delays by difficulty levels (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
plbrault authored Jul 23, 2024
1 parent 886528e commit 00beb2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/difficulty_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class DifficultyLevel:
num_cpus=4,
num_processes_at_startup=14,
num_ram_rows=8,
swap_delay_ms=100,
new_process_probability=0.05,
priority_process_probability=0.01,
io_probability=0.01,
Expand All @@ -30,6 +31,7 @@ class DifficultyLevel:
num_cpus=8,
num_processes_at_startup=28,
num_ram_rows=6,
swap_delay_ms=250,
new_process_probability=0.1,
priority_process_probability=0.05,
io_probability=0.1,
Expand All @@ -42,6 +44,7 @@ class DifficultyLevel:
num_cpus=12,
num_processes_at_startup=35,
num_ram_rows=6,
swap_delay_ms=500,
new_process_probability=0.2,
priority_process_probability=0.1,
io_probability=0.2,
Expand All @@ -54,6 +57,7 @@ class DifficultyLevel:
num_cpus=16,
num_processes_at_startup=42,
num_ram_rows=4,
swap_delay_ms=1000,
new_process_probability=1,
priority_process_probability=0.1,
io_probability=0.3,
Expand Down

0 comments on commit 00beb2d

Please sign in to comment.