kjudge icon indicating copy to clipboard operation
kjudge copied to clipboard

Run the isolate_check_environment script on startup

Open minhnhatnoe opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

Many users of the isolate sandbox are not aware of the isolate_check_environment script. This script checks for system settings that may introduce variability between different judging attempts. The script also asks the user to turn off swap or turn on swap accounting, which is essential to measuring the memory limits.

Describe the solution you'd like

Even if the user is not using isolate, this script is still needed to ensure consistency. I suggest running this script every time kjudge is started on a linux machine.

Since we are not sure of the script's location on the user's machine, it can probably be embedded into the executable.

minhnhatnoe avatar May 15 '23 16:05 minhnhatnoe