Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmr is slow at killing a solution printing long lines #217

Open
Virv12 opened this issue Feb 8, 2024 · 1 comment
Open

tmr is slow at killing a solution printing long lines #217

Virv12 opened this issue Feb 8, 2024 · 1 comment

Comments

@Virv12
Copy link
Member

Virv12 commented Feb 8, 2024

When evaluating a solution printing long lines tmr takes about 20 seconds to kill it, but the wall clock time limit (for the task I tested) is 4 seconds.

Minimal example:

#include <iostream>

int main() {
    for (;;) std::cout << "Hello, World!";
}
@Virv12
Copy link
Member Author

Virv12 commented Feb 25, 2024

After some debugging it seems like tabox is correctly sending SIGKILL on WTLE but linux is slow at killing the solution because it's using the disk.

Possible solutions:

  • limit output file size (how?)
  • store output file in ram (dangerous)
  • proxying the output through tmr so that the solution is not using the disk directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant