From patchwork Fri Jul 9 10:10:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?RnJlZGVyaWsg4oCcRnJlc2/igJ0gUy4gT2xlc2Vu?= X-Patchwork-Id: 1938 Return-Path: Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [95.216.189.61] by patchwork.archlinux.org with IMAP (fetchmail-6.4.19) for (single-drop); Fri, 09 Jul 2021 10:11:01 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id ag1eObQg6GBbVgAAK+/4rw (envelope-from ) for ; Fri, 09 Jul 2021 10:11:00 +0000 Received: from lists.archlinux.org (lists.archlinux.org [95.217.236.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id 04C726F72DB; Fri, 9 Jul 2021 10:10:59 +0000 (UTC) Received: from lists.archlinux.org (localhost [IPv6:::1]) by lists.archlinux.org (Postfix) with ESMTP id B3E8F222EA7; Fri, 9 Jul 2021 10:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.archlinux.org; s=dkim-rsa; t=1625825459; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FVm4y9LTnRLeDuLERQ00Hxe6g+mnDjpltRVj6GV2rj8=; b=mgvddsp8icZ4T/wwJdy6zNrf/TotkwSv5JvpMYnsxYohvYTpiHEOGKQXmKXJXXr1ws+qv9 /VOYfcwCCpJIwLXc+C3YfDOvSghhFURG21lB8YbGjZRSCRcQhWcda22PC76lSwxsYrgin6 X35amJMg3Xcf9MHpSk4xKHvSVdZbg9EXZF6n+p8G8uELjgt+dd1kW/1NXMJP2P383t+zub +BuVEWyJj9BWKMupBLEkuIe8PNwHKdV8b7e0Yt2hot8yK7N6RtGkDgVE3A1FXqMCz5Cs1O nbvEYBD94vtqnzvvR+Baa5soavwAlR3jt+Z2VnhsM+Z6TMq0pxnecpCqx0o2gLWBSlDY7p OSORy6nGyaIS6ja/QpTH3jUZO3Y8l0ZtcAwQy8hA4D0vPqtBXLtXDa1IlK8RG3pUkuWx4A EZol4M3xUGFfRewG8QzGZH3/8qExQp2nnN+3CfVLCxdx2T+/5d9/gLNZ3WSlw5DvLV2TGJ bs3A3KqYOkM4gv7+HHKBdwdH5WBI2eO4lD2RCOEI2/UEtMK9FP9cVgyM/twhTIHMmbdHgx HZc1/ypiX8ZcRzDaN0xkImgatwpGU3ULoBqO4QCO+uL9868pjQpD/6tYRHEZWips594lCn D7YGTsZu5zH8MyJFWh+0O8KWKqhX42moHYbZtxfYgI9Cd3gTz7FOo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lists.archlinux.org; s=dkim-ed25519; t=1625825459; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FVm4y9LTnRLeDuLERQ00Hxe6g+mnDjpltRVj6GV2rj8=; b=BWL9yXJZICW9XIB4D27ls3iRazW8GTIV+mJlURQN2aY9tgjLuhOx/pa+t02/J1smeszwoX 3LKhHydWCjlZauCQ== X-Original-To: pacman-contrib@lists.archlinux.org Delivered-To: pacman-contrib@lists.archlinux.org Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lists.archlinux.org (Postfix) with ESMTPS id F2C8A222E95 for ; Fri, 9 Jul 2021 10:10:57 +0000 (UTC) Received: by mail-qt1-x82d.google.com with SMTP id z25so4477142qto.12 for ; Fri, 09 Jul 2021 03:10:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:in-reply-to; bh=FVm4y9LTnRLeDuLERQ00Hxe6g+mnDjpltRVj6GV2rj8=; b=nhsyOp6sMONTahftEEtLL3vPls1A6orAMfGq3n3au2NT71DkOEUM7+tCPOTomD3km5 VfYvEivX3qosHY4dgBunniZrLf8U6DJOgUzu2Td5bla7rDSG2MOH2vtcLLNpMDquKZsc 0jRIOme9fE8H3JujqX/zaXeFqfypclQqq7QgVp885U/SdD+/d8Aem2d6kWJHG1TVdEAF b3hGETkpC/obbNtLlniWgwgMagbOCzumQVsa9oLbHO6NaP4t63NIWQhQahmGP4n+Ofbf Vp427S9hsjiPzYjm4h7S5Eymcd4HCB6cbGFlF2afp3mkAVy0ZjQvk36cUN9xMfctw2u9 6j8w== X-Gm-Message-State: AOAM531wgo1QCnqJtesSYxIxQVJ23WWqOXYJKKG+uR0pbEPauwvMd5JL WtsPvtCJ/yEwr+uodxKUA1OP5/ra0qw= X-Google-Smtp-Source: ABdhPJz4Q5YSf+oYiaJOIibwbn8CiArwJdx5p2TVJYQm9Qeog5YX2xcj6x3x0sel5Bg1+AbGu3xhVQ== X-Received: by 2002:ac8:47d9:: with SMTP id d25mr22509595qtr.277.1625825456452; Fri, 09 Jul 2021 03:10:56 -0700 (PDT) Received: from gmail.com (h88-129-191-159.cust.a3fiber.se. [88.129.191.159]) by smtp.gmail.com with ESMTPSA id v20sm2005131qto.89.2021.07.09.03.10.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 03:10:55 -0700 (PDT) Date: Fri, 9 Jul 2021 12:10:52 +0200 To: pacman-contrib@lists.archlinux.org Subject: [PATCH 2/2] paccache.service.in: Lower priority of unit Message-ID: <20210709101037.yjjcibln6s2ew7x7@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210709082137.jfz65japcq2nenv6@gmail.com> X-BeenThere: pacman-contrib@lists.archlinux.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion list for pacman-contrib development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Frederik_=E2=80=9CFreso=E2=80=9D_S=2E_Olesen_via_pacman-cont?= =?utf-8?q?rib?= Reply-To: Discussion list for pacman-contrib development Cc: Frederik =?utf-8?b?4oCcRnJlc2/igJ0gUy4=?= Olesen Errors-To: pacman-contrib-bounces@lists.archlinux.org Sender: "pacman-contrib" Authentication-Results: mail.archlinux.org; dkim=pass header.d=lists.archlinux.org header.s=dkim-rsa header.b=mgvddsp8; dkim=pass header.d=lists.archlinux.org header.s=dkim-ed25519 header.b=BWL9yXJZ; dmarc=pass (policy=none) header.from=archlinux.org; spf=pass (mail.archlinux.org: domain of pacman-contrib-bounces@lists.archlinux.org designates 95.217.236.249 as permitted sender) smtp.mailfrom=pacman-contrib-bounces@lists.archlinux.org X-Rspamd-Queue-Id: 04C726F72DB X-Spamd-Result: default: False [-6.01 / 15.00]; HAS_REPLYTO(0.00)[pacman-contrib@lists.archlinux.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:95.217.236.249]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[95.217.236.249:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[archlinux.org,none]; DKIM_TRACE(0.00)[lists.archlinux.org:+]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:95.217.0.0/16, country:DE]; FROM_NEQ_ENVFROM(0.00)[pacman-contrib@lists.archlinux.org,pacman-contrib-bounces@lists.archlinux.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[lists.archlinux.org:s=dkim-rsa,lists.archlinux.org:s=dkim-ed25519]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[archlinux.org:dkim]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[pacman-contrib@lists.archlinux.org]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; HAS_LIST_UNSUB(-0.01)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82d:received]; NEURAL_HAM(-0.00)[-1.000]; FREEMAIL_CC(0.00)[gmail.com]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Server: mail.archlinux.org 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 --- 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