pzread / judge Goto Github PK
View Code? Open in Web Editor NEWJudge 13.2 - HypeX
License: MIT License
Judge 13.2 - HypeX
License: MIT License
Current solution will block the server.
The most general type of special judge needs to execute the check program from the problem author. Also pipe their standard I/O.
Include checker in the problem pack, unpack and execute it when judging. Define spec of checker.
There are many file operations in challenge modules. It's really dangerous and unnecessary to do these with root permission.
Drop the permission at most of the time. Only escalate privileges as and when needed.
The rlimit settings for test programs are default values now.
Change rlimit setting to proper values.
There is no disk quota limitation now.
Currently, we use prefetch to solve issue #4 , but it's a little ugly and not reliable.
Control memory limit dynamically in light of OOM events and memory usage analysis.
Need Python 3 judge support.
Accept comp_type = python
for problem configuration.
在/etc/default/docker檔案中添加
DOCKER_OPTS = "--storage-driver=devicemapper"
Sometime we need CE message to debug.
Provide C++, Python CE message with limited length.
High Restrict Mode
Resource Limit
Refactor
Dockerizing the project makes it easy to be deployed.
Create Dockerfile.
The file operations may block the event loop, which causes the performance to drop.
I wish I can use unique strings as challenge ids.
Currently, different judge instances have to run in separate directories; otherwise, the file operations will be conflict.
Create separate working directory for each instance.
judge will mount /dev to standard/container/udev, but won't umount. So it's dangerous to do file operation in standard/container even the judge is stopped.
Umount standard/container/udev before the judge exited. Also do check and umount in the build-container.sh
There is only tornado default SIGINT handler now. Some environment changes need to be recovered after exit.
Handle SIGINT, clean sandboxes and containers.
Different Linux distributions have different file path. And their compilers have different environment requirements.
If test program can fork or clone, it will cause multiple measurement issues.
Since there is no need of allowing test programs to multithread currently, denying these actions is a solution.
Use seccomp to block fork, vfork, clone syscalls.
The default scheduler of Linux is not suitable for judge workloads.
Config the scheduler to improve the judge performance.
The code of event loop is copied from old code, need to refactor.
The set of tests can be stopped early if any tests failed.
Reduce the usage of time on fail tests.
Because creating a task costs lots of memory, the challenge requests from frontend must be queued first to prevent from resource exhaustion.
Pend the request in a request queue, and limit the number of concurrent processing request.
"memory.max_usage_in_bytes" of cgroup includes the size of page cache consumed by the programs.
This will cause over-approximation of the memory usage.
請問ARG是什麼?
我在build時跑出了這樣的東西,請問如何解決?
INFO[0000] Unknown instruction: ARG
When the code contains UTF-8 character, the python judge will report runtime error.
出題者可以傳標程,自動計算適當的 time limit。
Any exception during challenge will abort the judge, then the running task count won't be decreased. Finally stuck the judge.
Correctly handle exceptions.
git clone in the Dockerfile will clone newest version, not travis ci version.
Clone $TRAVIS_COMMIT
version in the Dockerfile.
Sometime, the first SIGCHLD signal of child process won't deliver to the judge.
The websocket API is internal now only for the Sprout OJ.
Design the new high-level websocket API and publish.
For now, most of exceptions in python code are not handled. Specially, the exceptions thrown by Future
need to be well handled.
When an exception happens, the websocket wasn't closed by the server.
Hence the "frontend" may be kept waiting for a reponse indefinitely.
Send a request to the server with an invalid "res_path" (e.g. mis-spelt pathname).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.