diff --git a/.buckconfig b/.buckconfig index 743ee4f3..e1e123db 100644 --- a/.buckconfig +++ b/.buckconfig @@ -36,3 +36,11 @@ sqlite_materializer_state = true # Persist the dep-file cache too, so local actions still hit it after a daemon restart. sqlite_dep_file_state = true defer_write_actions = true + +[buck2_resource_control] +# A host without a systemd user manager, such as a container, runs the daemon without cgroups. +status = if_available +enable_suspension = true +# Killing a suspended action throws away its work, and a long action such as an RPM build then starts +# over. A frozen action keeps its work, but the kernel frees its memory only by swapping it out. +preferred_action_suspend_strategy = cgroup_freeze