From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.154 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796346013; b=RVSh4A4ipNBsalEibCIPeYtpccR4Z9CdC2/A065Ww7zvxMQNseTy390Bpra4B9F09i20 OWWsUqeefWpG9UQ3LhjeOcWODtJdXvig0uauccZSRB+UjLIDFhFAIqvAsaHmCxs96nybZ 2E2md21dUyhZGU/+/tqt11XE4MYkparpAy7YLlJILIfoyq5cQ+fB5GjsU8e3LYZdrrFqS 2uRHqkQtRDy9SAPe2LbuU7PVZgZ3yeUByrJTzb2rNVQmjaaniH56qUZ4iFHC1MREOJvk0 sZSIM1VZrBx3IO2DwftZ4xVG6wh3x3q/Bu/YKlBNTOgs9uQnYUqWeDK0fzySmK5CGKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796346013; h=DMARC-Filter:Received:Received:DKIM-Signature:X-ME-Sender: X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:Date: From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type; bh=LQUAHUnE5/JONDw8q3yzaPx2RdxEOT5cFGh8PaTuT3Y=; b=ERvkYpc4vFt+sqooPiTcThljt/VH4FTElIscKtHILosz1d8sZJmwgDByuuCGjFm8pS9L 3hprQo+Rr9TuTeJK/lG52MaJBj7Be6QX19zkyHX0OQ1Y1qoe9uZs2Iw0oCgTCD9MQgfhG 3BBGBb41JtHE1bgD/gEZkLfgDNV12vTb77yymh6Yqkd9M43TM31ynLO56Ja6Q3Rf1/f9+ XIzZsYagLdWuwvwDD/I1gsT1wSRdG7djeUuLmW0XxvTZRuwhe2xneaHoQsJbyybiqeiuQ YT+S0hXmaOZkIdWZy9uYWEX4CApKFVoNxCiv5X0ztAHOH65/dY2YLKFn0Z4nJyN/ZCA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=linux-m68k.org; spf=none smtp.mailfrom=linux-m68k.org; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ZP8gZWBE; arc=none smtp.remote-ip=103.168.172.154 Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10FDE606A33D for ; Fri, 4 Dec 2026 01:00:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 10FDE606A33D Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ZP8gZWBE Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3DEAA140010F; Thu, 3 Dec 2026 20:00:12 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 03 Dec 2026 20:00:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796346012; x=1796432412; bh=LQUAHUnE5/JONDw8q3yzaPx2RdxEOT5cFGh 8PaTuT3Y=; b=ZP8gZWBEMUQzhhen+2NFlYg85INPAzE6Djxc71z+muQ5ndd4Dn9 Z8H42wUmHtHoHi1beJfDWqJ5heQH68kA1o+c0Jp5aT39yWGEcwdP5M+Tsaj1Sh57 yVqtXK3ElMNxTI3rf2Myb7XgeVUpq9OKk9uQNUITy4hU6dUsFYp+FA5jMBavaxk2 2ZlN96pDgGfY0/rEh6r0n6o2xL5yF8Pe7mSx7NctelqQqfld5M+daU9ePBO3Q9Yq JOXB9vT71q3fczkyRoq/vg7crrUU9pwNIVZaX9D1gJ9WkrdhDSMtS8JCn10nfA6h qbsseHoIZt/50XFWNPj9OS0elPpPFuhou0A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFI2KILngVtrN6sHEDe+mjOncJP6rJqxxS8+jXNf/C7V8B1SCnk7dgyKzCTxiR6Iv GaEgGjlC5t0+WISHmzsLZ3FlP+cik3L+0YQqUpJwPYeVaUNy8Yfghrakbk1YpRWlsgP8/O aadJ462qJq1q2dZeKhCDd74qN3fi4/R9awT9VvtUFEcN2JT155pR62zAhxStUijppNIv6P rrLdNBIRdhmR+sDljFzJidymehYJIb2vKK3aAsX7tVuIi5F+ODi2ST38llFIslphRec3PS ZvB0h6kjGEPcZ9mFFYq3LalUNOnGO3c9YYmPlFMil69WOahgN2pcLKBT6y8S0jxc7h2FQw lr/w89TE/+UrnO98xUM6+9UL6bDuP9Khvml/2OYlos2X7K19DkzeG/0asdoCRnBOxAu7EX YyCnBekQMV/ldCK7q+NdDp0vAdhd1F2C2p4e9QA1TjxlE3NS47431TU4fY4bGV5eSF4s35 vkPAc28K33JWvv5lZxor1FVIEYcJQ4bM/wYtUG+fEH2he0tcFq/K3GJ/67/qWtKvCh9hY9 60ssvXRASUfsYEAQ+77iSXJ89MmJDeCb2+HACQ62LzJnfQZCqtovrLoekNjkJUhHd3xTdZ FYT3pKiTxlQ6DFDSGdGQ35E5UA15i1UE0cyxnY5XiamFFjDgBaX360wbkGkQ X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 20:00:10 -0500 (EST) Date: Fri, 4 Dec 2026 12:00:14 +1100 (AEDT) From: Finn Thain To: Artem Novak cc: Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] m68k: add Zstandard-compressed vmlinux target In-Reply-To: Message-ID: References: <20261202073219.96697-1-artem122novak@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=83233281686938701179634601438 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --83233281686938701179634601438 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 3 Dec 2026, Artem Novak wrote: > Hello, >=20 > On Wed, Dec 2, 2026 at 5:38=E2=80=AFPM Finn Thain = wrote: > > With which bootloader did you test your patch? How shall reviewers test > > it? >=20 > I tested the decompressed kernel under QEMU, > but I haven't tested a bootloader loading the Zstandard compressed > image directly. >=20 If this is intended for CONFIG_VIRT then it's hard to see much benefit.=20 You can help reviewers to understand the problem that your patch solves by= =20 following the usual kernel development process: "[the patch] description can be as long as is required; it should say= =20 what the patch does and why it should be applied to the kernel." > Regarding the reviewers part, I will provide steps on how to verify > the target in the v2. > Also how am I going to reach out to them? >=20 Please read Documentation/process/5.Posting.rst and so on. > > A compression level of 19 would be infeasible on m68k hardware as it's = too > > expensive to uncompress it. Compared to level 1, level 19 costs about 3= 0x > > the CPU time (measured on this IA32 laptop, with huge caches relative t= o > > 68040). > > > > Recall that any bootloader needs sufficient RAM for the dictionary, the > > uncomressed kernel image, plus an initrd, as well as whatever overhead = is > > imposed by the loader operating system. So your code probably won't wor= k > > on small systems (anything with less than about 32 MB of memory). > > > > $ f=3Dvmlinux ; zstd -1 -c < $f | ( time zstd -M1M -dc ) | cmp - $f > > > > real 0m0.089s > > user 0m0.037s > > sys 0m0.000s > > $ f=3Dvmlinux ; zstd -19 -c < $f | ( time zstd -M8M -dc ) | cmp - $f > > > > real 0m2.835s > > user 0m0.049s > > sys 0m0.005s > > $ f=3Dvmlinux ; zstd -19 -c < $f | ( time zstd -M7M -dc ) | cmp - $f > > /*stdin*\ : Decoding error (36) : Frame requires too much memory for de= coding > > /*stdin*\ : Window size larger than maximum : 8388608 > 7340032 > > /*stdin*\ : Use --long=3D23 or --memory=3D8MB > > > > real 0m1.404s > > user 0m0.002s > > sys 0m0.000s > > cmp: EOF on '-' which is empty > > $ >=20 > Oh I see. I'll revise the patch to v2 in a day or so. > Also one more thing: does your testing laptop have i386 instructions > or familiar? >=20 I don't plan to use zstd on IA32. That 30x I quoted was merely a ballpark= =20 figure intended to give you some insight into time-space tradeoff involved= =20 in data compression in case you're unfamiliar with it. --83233281686938701179634601438--