Felix Kohlgrüber
04/04/2019, 9:13 AMFelix Kohlgrüber
04/04/2019, 9:14 AMstevekrouse
Mariano Guerra
Mariano Guerra
Mariano Guerra
Mariano Guerra
Felix Kohlgrüber
04/04/2019, 9:51 AMFelix Kohlgrüber
04/04/2019, 9:51 AMFelix Kohlgrüber
04/04/2019, 9:55 AMStefan
04/04/2019, 10:00 AMMariano Guerra
Mariano Guerra
# Allows only 1ms every 100ms to simulate a slow system
cgset -r cpu.cfs_period_us=100000 -r cpu.cfs_quota_us=1000 sandbox
# Limit usage at 10% for a multi core system
cgset -r cpu.cfs_period_us=100000 \
-r cpu.cfs_quota_us=$[ 10000 * $(getconf _NPROCESSORS_ONLN) ] \
sandbox`
# Set a limit of 2Gb
cgset -r memory.limit_in_bytes=2G sandbox
# Get memory stats used by the cgroup
cgget -r memory.stat sandbox
Mariano Guerra
stevekrouse
Do you agree with the following principle?"A programming environment should prevent users from executing programs that accidentally use up all their systems' resources." Yes I agree with that on the grounds that it is part of the more general principle that the computer should communicate to you the potentially undesirable, unforeseen consequences of what you’re asking of it (https://twitter.com/stevekrouse/status/1083891157858426886?s=09) Also I found it: https://granule-project.github.io/
Niko Autio
04/04/2019, 8:14 PMJoe Trellick
04/07/2019, 4:13 PM