[PATCH 2/2] paccache.service.in: Lower priority of unit

Daniel M. Capella polyzen at archlinux.org
Wed Jul 28 00:24:11 UTC 2021


Pushed, thank you!

On 7/9/21 6:10 AM, Frederik “Freso” S. Olesen via pacman-contrib wrote:
> The unit will be run in the background and is not essential for systems
> to operate, so giving it the lowest priority will help make it less
> disruptive on its system.
>
> Signed-off-by: Frederik “Freso” S. Olesen <freso.dk at gmail.com>
> ---
>   src/paccache.service.in | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/src/paccache.service.in b/src/paccache.service.in
> index 0f71f5f..79b1c91 100644
> --- a/src/paccache.service.in
> +++ b/src/paccache.service.in
> @@ -4,6 +4,13 @@ Description=Remove unused cached package files
>   [Service]
>   Type=oneshot
>   ExecStart=@bindir@/paccache -r
> +# Lowering priority
> +OOMScoreAdjust=1000
> +Nice=19
> +CPUSchedulingPolicy=idle
> +CPUSchedulingPriority=1
> +IOSchedulingClass=idle
> +IOSchedulingPriority=7
>   # Sandboxing and other hardening
>   ProtectProc=invisible
>   ProcSubset=pid

-- 
Best,
Daniel <https://danielcapella.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xEA4F7B321A906AD9.asc
Type: application/pgp-keys
Size: 15463 bytes
Desc: OpenPGP public key
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20210727/c2c4e443/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20210727/c2c4e443/attachment-0001.sig>


More information about the pacman-contrib mailing list