Message ID | 20230516090606.1170-1-arne_f@ipfire.org |
---|---|
State | Accepted |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4QL9Mc181bz3wlf for <patchwork@web04.haj.ipfire.org>; Tue, 16 May 2023 09:06:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4QL9MZ5qLNzdk; Tue, 16 May 2023 09:06:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QL9MZ2CzMz2yWL; Tue, 16 May 2023 09:06:18 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4QL9MX4Xk9z2yTq for <development@lists.ipfire.org>; Tue, 16 May 2023 09:06:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4QL9MW41NtzKp; Tue, 16 May 2023 09:06:15 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1684227975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4QCKb4HMbM3NCXXyRWeavmIIQ/tjXEusgIjlCS7CZxQ=; b=mzeaVKcLCjXSD0/iKcNQa+V/uK7OaFT73bNfMlpG2iEz2fLvQGc4uqnUt0aDpi0us+sPpe 2LSWy714sQm+/7BQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1684227975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4QCKb4HMbM3NCXXyRWeavmIIQ/tjXEusgIjlCS7CZxQ=; b=pZ5JoiT+WZ4AGZa7LOWcapBhVR29+y6DiX1xvoJyU781xkakJenGmIxf61CeKklvXy2/AL bmDQAeOnNodFs6Z1R77kldTyUujBS+t57b4PQ3ESIOp8pWDKD/60XLeErai1ITMHFhgzQK bn2VWhfgwSVYzy/p+A4z5bg+jbeWvDt3EDLmn3shZWnXPxlKzdcvq35Zeq+NyTb+waxTKe boOcs4iqQLDWLUpAe2o9AmdTRfXlNFX0rJda4PfHITjkNkiwrdCPMdY4ZULi9KmRoiqzxU wQcZIwBRve/PCKoGche5gJ3LETxsztLG6AVEbave/DTh2w7Hsp5iU7uvtDy+Ww== From: Arne Fitzenreiter <arne_f@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] dracut: lower ram usage at commpression Date: Tue, 16 May 2023 09:06:06 +0000 Message-Id: <20230516090606.1170-1-arne_f@ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Cc: Arne Fitzenreiter <arne_f@ipfire.org> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
dracut: lower ram usage at commpression
|
|
Commit Message
Arne Fitzenreiter
May 16, 2023, 9:06 a.m. UTC
this lower the compression ratio sligtly (the ramdlisk is 100kb
larger) and use only a single thread now. (it's still faster than
before on a dual core.)
Note to Peter: if there are no other changes on dracut ship only
/usr/lib/dracut/dracut.conf.d/ipfire.conf
at core update.
fixes: #13091
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
---
config/dracut/ipfire.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Thank you for this patch. Please go ahead and merge it straight into next. However, I would like to put on the record that I generally disagree with optimising things for the lowest common denominator. It will not allow us to take advantage of modern features whether that is in hardware or software, so let’s aim to avoid hacks like this whenever possible in the future. Best, -Michael > On 16 May 2023, at 10:06, Arne Fitzenreiter <arne_f@ipfire.org> wrote: > > this lower the compression ratio sligtly (the ramdlisk is 100kb > larger) and use only a single thread now. (it's still faster than > before on a dual core.) > > Note to Peter: if there are no other changes on dracut ship only > /usr/lib/dracut/dracut.conf.d/ipfire.conf > at core update. > > fixes: #13091 > > Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org> > --- > config/dracut/ipfire.conf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/config/dracut/ipfire.conf b/config/dracut/ipfire.conf > index bab5c8a2e..5a4f0aa7c 100644 > --- a/config/dracut/ipfire.conf > +++ b/config/dracut/ipfire.conf > @@ -2,4 +2,4 @@ > early_microcode="yes" > > # Compress using Zstandard > -compress="zstd" > +compress="zstd -10 -q -T1" > -- > 2.34.1 >
diff --git a/config/dracut/ipfire.conf b/config/dracut/ipfire.conf index bab5c8a2e..5a4f0aa7c 100644 --- a/config/dracut/ipfire.conf +++ b/config/dracut/ipfire.conf @@ -2,4 +2,4 @@ early_microcode="yes" # Compress using Zstandard -compress="zstd" +compress="zstd -10 -q -T1"