Add integration with sio2jail. This would allow toster to measure runtime much more precisely and measure program memory usage. This feature would be available only on Linux (due to sio2jail only being available on Linux), and only enabled through an optional flag, as while using sio2jail has many benefits, it is probably going to be at least a couple times slower than not using it.
Checklist:
Either build sio2jail during toster installation or pre build it, dowload it, and put the binary somewhere (maybe in a directory provided by the directories crate?)
Add a warning saying that sio2jail integration will not work unless kernel settings are changed (sio2jail sometimes requires running the following command to function: sudo sysctl kernel.perf_event_paranoid=-1)
Add a flag (-s for sio2jail?) that makes all tests run through sio2jail
Add integration with
sio2jail
. This would allowtoster
to measure runtime much more precisely and measure program memory usage. This feature would be available only on Linux (due tosio2jail
only being available on Linux), and only enabled through an optional flag, as while usingsio2jail
has many benefits, it is probably going to be at least a couple times slower than not using it. Checklist:sio2jail
duringtoster
installation or pre build it, dowload it, and put the binary somewhere (maybe in a directory provided by the directories crate?)sio2jail
integration will not work unless kernel settings are changed (sio2jail
sometimes requires running the following command to function:sudo sysctl kernel.perf_event_paranoid=-1
)-s
for sio2jail?) that makes all tests run through sio2jail