mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
Replace limits.d/00-cputime.conf with systemd/app.slice.d/90-cpulimit.conf
This commit is contained in:
parent
c47faaf25e
commit
e1f6745439
@ -1,8 +0,0 @@
|
||||
# TODO: I don't think I understand cpu time properly and I don't feel
|
||||
# qualified to judge how to restrict it. These numbers are taken from
|
||||
# "man limits.conf", although they were swapped and they didn't originally
|
||||
# blanket apply to asterisk.
|
||||
# My goal here would be workaround difficult Matrix clients and compliment
|
||||
# systemd-oomd, which handles the memory management.
|
||||
* soft cpu 5000
|
||||
* hard cpu 10000
|
7
etc/systemd/system/app.slice.d/90-cpuquota.conf
Normal file
7
etc/systemd/system/app.slice.d/90-cpuquota.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# This file is intended to restrict all apps to 180 % CPU of dualcore, in
|
||||
# hopes of preventing system freezing to that. Memory is handled by
|
||||
# systemd-oomd.
|
||||
[Slice]
|
||||
CPUAccounting=true
|
||||
CPUQuota=180%
|
||||
# vim: filetype=systemd
|
Loading…
Reference in New Issue
Block a user