radian-software / riju

⚡ Extremely fast online playground for every programming language.
https://riju.codes
MIT License
1.64k stars 191 forks source link

Resource Limiting #176

Open elijahgives opened 1 year ago

elijahgives commented 1 year ago

Hello! I am making this issue to ask if there’s a way to limit resources per session? e.g one session can only use x amount of memory, storage

raxod502 commented 1 year ago

Total resource consumption is limited by system-wide user session cgroup, configured here: https://github.com/radian-software/riju/blob/main/packer/riju.slice

Per-session resource consumption would be configured here, by adding additional command-line arguments to docker run. I removed this because my current budget means Riju has a very resource-constrained environment and subdividing the resources any more than needed makes many languages unusable.

ericjze commented 1 year ago

Total resource consumption is limited by system-wide user session cgroup, configured here: https://github.com/radian-software/riju/blob/main/packer/riju.slice

Per-session resource consumption would be configured here, by adding additional command-line arguments to docker run. I removed this because my current budget means Riju has a very resource-constrained environment and subdividing the resources any more than needed makes many languages unusable.

Ignore Elijah, he's a troll brother