-
Notifications
You must be signed in to change notification settings - Fork 157
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
Calculate memory with cg-mem #5
Comments
I want to calculate the memory usage of my program and reproduce the a memory limit exceeded. No luck so far.
This is strange. Could you please try the same without control groups? (I.e.,
normal "--mem" limit.)
|
The reason for this is because the pointer is never dereferenced. The Out of memory errors are difficult to identify, because typically the |
Additionally, there is no "out of memory" result from isolate, for pretty much this reason. However, you should be able to see when the process terminates that the cg memory is equal to the limit, which is a pretty good indication that it ran out of memory. In at least one contest system I know of, it uses the fact that the memory usage maxed out and that the program died on a SIGSEGV to assume that it is an out of memory error. It's just a guess, but a reasonable one. dmeneses : given this, are you happy to close the issue? |
Yeap, thanks! |
I want to calculate the memory usage of my program and reproduce the a memory limit exceeded. No luck so far.
To run isolate I'm using this:
I've always get time limit but not memory limit.
To reproduce the memory limit I'm using this:
The text was updated successfully, but these errors were encountered: