Challenge Overview
Project Overview
TopCoder Competition Engine is a system used for Single Round Matches (SRM) and Marathon Matches (MM).
Competition Task Overview
For this contest, we'd like to explore the way to get the peak memory usage for the SRM solution executed, similar as the execution time, currently returned.
Execution Time: 0.005s
Following are the general requirements:
- The solution should not affect the execution thread, like it causes the execution to cost more times.
- The solution should cover the exeuction of C++ language.
- It should return the peak (maximum) memory used by the execution.
- The size of used memory should be in MB format.
- The changes should applied to all phases, like Example Tests, Challenges and System Tests.
- If needed, A 64bit CentOS VM with root access will be allocated with each memer, you can install anything that helps to return the peak memory, but notes, the farm processor is executed in no-root account (farm).
Implementation Notes
The test execution logic can be found at
You can use a separate thread to check the used memory, please check the winning submission of Kick Off CPP Code Compilation and Execution By NodeJS (attached in forum), which provides a way to check the maximum memory, if you have better solution, you can use your approach.
Arena VM Usage
Before asking your own VM, you need to have a public key on your profile before asking for the VM.
You can find more details on how to generate a key http://apps.topcoder.com/wiki/display/projects/Generate+SSH+Key and how to connect using it http://apps.topcoder.com/wiki/display/projects/Connect+Using+SSH+Key.
Please reference http://apps.topcoder.com/wiki/display/docs/Competition+Engine+VM+Setup for general usage.
Previously, we have made several update for the Arena VM. So when the Arena VM allocated is available for you, there is a problem and a SRM contest already setup, you can reuse that for testing.
Final Submission Guidelines
Submission Deliverables
Below is an overview of the deliverables:
- Code Changes for getting and displaying the used memory
- Detail Deployment Guide describing your solution.
Final Submission
For each member, the final submission should be uploaded to the Online Review Tool.