使用 cgroups
统计资源
#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目前使用
wait4
统计内存、时间开销,但如果子进程涉及多线程,统计结果将不可靠:这一点在
pypy3
上得到验证:A+B
问题中RLIMIT
设置的极限内存(76MB
)与统计的内存(~50MB
)存在过大差距Originally posted by @Paul in woj/woj-sandbox#3 (comment)
memory.peak
统计在a1235a506b
支持,对应于containerd/cgroups@v3.0.3
而
containerd
最早在版本 v2.0.0-beta.2 中更新cgroups
版本6956fe4ee1
添加了Metrics
功能,尚未测试ff98b7b05f
使用nsjail
替换了containerd
举例有误,
pypy3
的差距并不来自于多线程(NPROC
设置的是1
)0f026aa180
引入了SoftMemoryLimit
用于处理Go
等喜欢预留大量内存的语言cgroups
时考虑限制swap
使用 (或者不允许使用swap
?)