From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +N1gLZyqrWMuIQAAbAwnHQ (envelope-from ) for ; Thu, 29 Dec 2022 15:56:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wLJGLZyqrWPqpgAAauVa8A (envelope-from ) for ; Thu, 29 Dec 2022 15:56:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4FE0E9BED for ; Thu, 29 Dec 2022 15:56:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAuKC-0004bd-9b; Thu, 29 Dec 2022 09:56:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAuKB-0004b1-9h for guix-patches@gnu.org; Thu, 29 Dec 2022 09:56:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAuKA-0006JI-QC for guix-patches@gnu.org; Thu, 29 Dec 2022 09:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAuKA-00085h-Mt for guix-patches@gnu.org; Thu, 29 Dec 2022 09:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60406] [PATCH 2/2] gnu: Add dwarfs. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Dec 2022 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60406@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Cc: 60406@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167232574530538 (code B ref -1); Thu, 29 Dec 2022 14:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Dec 2022 14:55:45 +0000 Received: from localhost ([127.0.0.1]:59902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAuJs-0007w3-KE for submit@debbugs.gnu.org; Thu, 29 Dec 2022 09:55:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:56584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAuJq-0007vf-VV for submit@debbugs.gnu.org; Thu, 29 Dec 2022 09:55:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAuJq-0004a5-OS for guix-patches@gnu.org; Thu, 29 Dec 2022 09:55:42 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAuJo-0006B8-Ho for guix-patches@gnu.org; Thu, 29 Dec 2022 09:55:42 -0500 Received: (Authenticated sender: mail@ambrevar.xyz) by mail.gandi.net (Postfix) with ESMTPSA id 03AE2C0007; Thu, 29 Dec 2022 14:55:37 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <874jteqn67.fsf@ambrevar.xyz> References: <874jteqn67.fsf@ambrevar.xyz> Date: Thu, 29 Dec 2022 15:55:37 +0100 Message-ID: <87v8lup8d2.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.198; envelope-from=mail@ambrevar.xyz; helo=relay6-d.mail.gandi.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.498, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672325788; a=rsa-sha256; cv=none; b=RwV/N80CuzYjr5UamN2Co39ius/0RPRsEzJ0aQTlMeuADKDo4c768tUX4QEHpniwIVQYA5 BLB0lM+i5QwN2m4rLpywjmR1JZqvfuYlN6+znfXRnymozIgntujbqoydCTPCceY87AWN1c EZMLhD1s1ekfG+cGZHHLsxtp9NnlKbcRdzoNa5dt/U3Q7ffZi3zcht9Gp1/Wd6xJ/b1/k3 gUboM+AOcHG/QjhJNNCwZTFUk+Ih3GcB7XLD7unCxPxaaGw1/g05wj9kfmaU6bDzkwsgbc 2zOgnp1lV8iBV/8fw34TljvcbfKfeJ5F+O1f/5ECSR+jZ/TwGINmpPq+FfRvIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672325788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=22tWhjNYGaHeneO3RY+NOmPSYq8tBSWASU5VnIvTLgU=; b=pDWCDBjWXwiwLAW+njG51lZRj2ZLbxfx2c3jZYb3WgH9cBYaKcCwu1AQw/Qc3sqvtH+iC7 ZEzjz/NwSvFynhM+marQUeuID3UDxn9oYrUK7G/AkukCjB8N00EctQzRFuUllAEcKIMVt4 JgxtVjpeaHkMnp2Q/1dA/OCdLagmpRQlfiUubyL73HEhgR03uOxE1+XmP5+PHVIKG3wBh8 2SkQmwsZVGVcSYlb5siaoJJiSgeRTNyi/5K3Fz32WALSp/hltaUpppZBHD6S7wH6F7rILw 98LwrwbQIbPPHFve9MQlb0T1+yKmFhKOiGgKUUwSnrKk3M/JIOXxIu4+QVqYQg== X-Spam-Score: -4.03 X-Migadu-Queue-Id: 4FE0E9BED Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.03 X-TUID: l20pLBfSJbHD --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/packages/file-systems.scm (dwarfs): New variable. =2D-- gnu/packages/file-systems.scm | 100 ++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 3d45634169..e268c52f06 100644 =2D-- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -46,26 +46,36 @@ (define-module (gnu packages file-systems) #:use-module (gnu packages admin) #:use-module (gnu packages attr) #:use-module (gnu packages autotools) + #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages datastructures) + #:use-module (gnu packages digest) #:use-module (gnu packages documentation) #:use-module (gnu packages docbook) + #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages gawk) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages guile) + #:use-module (gnu packages jemalloc) #:use-module (gnu packages kerberos) + #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) + #:use-module (gnu packages maths) + #:use-module (gnu packages man) #:use-module (gnu packages nfs) #:use-module (gnu packages onc-rpc) #:use-module (gnu packages openldap) @@ -73,6 +83,8 @@ (define-module (gnu packages file-systems) #:use-module (gnu packages perl) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages popt) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) @@ -1790,3 +1802,91 @@ (define-public fuse-overlayfs (description "This package provides an implementation of overlay+shift= fs in FUSE for rootless containers.") (license license:gpl3))) + +(define-public dwarfs + (package + (name "dwarfs") + (version "0.6.2") + (source (origin + (method url-fetch) + ;; The release archive is needed so that version.h is includ= ed. + (uri (string-append "https://github.com/mhx/dwarfs/releases/= download/v" + version "/dwarfs-" version ".tar.xz")) + (sha256 + (base32 + "1kncxf85gsj3anck8ccjmxn2azp5ifqbgkiky2kharmvphkbmfcv")) + (snippet + #~(begin + (use-modules (guix build utils)) + ;; Prefer system libraries instead of submodules. + ;; TODO: Package fbthrift. + ;; TODO: Can we use Guix own folly? There is no CMake = option for it. + ;; TODO: Package parallel-hashmap. + (for-each delete-file-recursively + '(;; "fbthrift" + ;; "folly" + ;; "parallel-hashmap" + "xxHash" + "zstd")))))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ; TODO: 1 test fails because 'modprobe fuse' needs priv= ileged access. + #:configure-flags + (list "-DPREFER_SYSTEM_ZSTD=3DON" + "-DPREFER_SYSTEM_XXHASH=3DON" + "-DPREFER_SYSTEM_GTEST=3DON" + "-DWITH_TESTS=3DON" + ;; Disable man pages since ronn fails to run without hpricot. + "-DWITH_MAN_PAGES=3DOFF"))) + (native-inputs + (list + ;; FIXME: Building with ronn fail because hpricot is missing. + ;; ronn + folly googletest libdwarf libevent pkg-config)) + (inputs + (list + boost + double-conversion + fmt + fuse-3 + gflags + jemalloc + libarchive + libunwind + lz4 + openssl + xxhash + xz + `(,zstd "lib"))) + (home-page "https://github.com/mhx/dwarfs") + (synopsis "Fast high compression read-only file system") + (description "DwarFS is a read-only file system with a focus on achiev= ing +very high compression ratios in particular for very redundant data. + +DwarFS also doesn't compromise on speed and for some cases it is on par wi= th +or performs better than SquashFS. For the primary use case, DwarFS +compression is an order of magnitude better than SquashFS compression, it'= s 6 +times faster to build the file system, it's typically faster to access fil= es +on DwarFS and it uses less CPU resources. + +Distinct features of DwarFS are: + +@itemize + +@item Clustering of files by similarity using a similarity hash function. = This +makes it easier to exploit the redundancy across file boundaries. + +@item Segmentation analysis across file system blocks in order to reduce t= he +size of the uncompressed file system. This saves memory when using the +compressed file system and thus potentially allows for higher cache hit ra= tes +as more data can be kept in the cache. + +@item Highly multi-threaded implementation. Both the file system creation= tool +as well as the FUSE driver are able to make good use of the many cores of = your +system. + +@item Optional experimental Python scripting support to provide custom +filtering and ordering functionality. + +@end itemize\n") + (license license:gpl3))) =2D-=20 2.38.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmOtqmkSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/x2UH/i2chSi9E5k2fWYRjgrwUXhcmZOfuCJd mfxlqDl2nuXUHbUXbwzpzmIK99bG7J8RblFfx1wTx0wl3xGN5gQSGQ49Q3R91okO UGk8LYjq3UB/RzLBKpQFCmqksStR8oRjLIRnoc4Si5OjwCc0WtIKPV62GS1Vu7WF p9goE8KQewsNLByhm6IohdTjTYKXsFSgriXgHsCtSVKdGiB71BghSKnJ40bwZywI qK+wcyFSEHi8HnJBkGHUGKf3uTt4go6RoVcUR+hhT9xX8xlJ/kInxew7ax73rtfU Z0aMWCRaXK7Cb2Z3I7Nsk6Ud14yIVvcsQL/R73jHGKORmYNbHO2LX+g= =BDRQ -----END PGP SIGNATURE----- --=-=-=--