neini 🐖 on Nostr: TIL: systemd-run can also limit memory usage and that includes page cache usage (= ...
TIL: systemd-run can also limit memory usage and that includes page cache usage (= not polluting the cache just because i make a backup)
systemd-run --scope --property=MemoryLimit=500M -- sh -c do-the-backup.sh
(it's cgroups doing the thing, not systemd-run)
Published at
2023-08-03 10:16:00Event JSON
{
"id": "5591940461a3126bc4cc522768eef44a7626ee8297b03c16a64e97458f71b06a",
"pubkey": "bb4de5d44f886a589d8f77249ac4cb459dfee7adc7f7e711ddaa8f6fcd2971a8",
"created_at": 1691057760,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/neingeist/statuses/110825161415429617"
]
],
"content": "TIL: systemd-run can also limit memory usage and that includes page cache usage (= not polluting the cache just because i make a backup)\n\nsystemd-run --scope --property=MemoryLimit=500M -- sh -c do-the-backup.sh\n\n(it's cgroups doing the thing, not systemd-run)",
"sig": "7fc40076f06c309a045bdf8782f601e3006f364449878d1cfb512c780b70471b289a02c0f2d116f9da715c4c957b37d2b4d1c06bd92be9b8ee3250bcdabc9792"
}