From nobody Thu Aug 22 15:24:05 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WqRmC0N1rz5T6Lh for ; Thu, 22 Aug 2024 15:23:07 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Received: from sonic313-20.consmr.mail.ir2.yahoo.com (sonic313-20.consmr.mail.ir2.yahoo.com [77.238.179.187]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqRmB3zxVz4sGB for ; Thu, 22 Aug 2024 15:23:06 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724340183; bh=mDAPssDk7SY+dGgMNRU/1TMN4IqPoL1Ji7DqMuOB6Ts=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=MqforLW60qBZpaarMJq8Zl2v3YUJSVoxlR1T2UpWDHPOpdyS3VOnGqQrrfqLkKxBURrVXdeCP2oxnsLcf04NaBn+ejqRf2JD3nUulJZFzujb7GBpKei/RyQddXwkodRAKczmV+XotVtJ5YFWY/Nrkt5+WMIe7O61a7ppWUW9vI9AdEvcwxjy0016a7tEmME2xc6VmsC4MVVFxGqibEE3vsJKV4VTdABC17g28NsVs5C+UEtqbcBVUutQchT4cSTEctQA9+s0kn1c7QuNwz+sQfeXQ2JjYsq96xKtJmIZZcQscgZV+KMpcCG4jhZmcLiPqdcpYzuUe25bKd623NTAmA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724340183; bh=wRzsjSmnPHgzGzzXCUeinmcOuO0Y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QvwFMCk2TvEh_.._UV6p8z_XZb8SuoUh4T0J9iwCrueGh1ZS_kKwDtzA20g7q pi.dI2KQ_XNub8CTfSCR93RHj98h_X4etMM3.vR_OcukcGplNqSqq4Nu7kLcUTtlR_Y3TUbz8u01 bxBdgoM2GCnH..Tg8D6FtMf9F34rNt.ZqoWGGm0AMGIz_GuSrnVpxp.ie_fuSC5i4HJkzu66cC_R 6avRkikeyAW66inovx.w21KTXqnvNBDc6TvOhntA70JKRGvrUUebFZ.xBHeYyPmk_p5JFc9RFHzb iLxsKoYp9jKc9P9EVNDwWC90MTEdHkkfBJyHMH8O_G8QaAkP0osD3w8y4j5I22_Gc7NJCdbp_JV0 9Ddj18l.jKHmR.ApK9fBlNreUzjZldOkC927x.vrOHKb3hbURWNewNHwtnxDcS_tQ1SwYJY2AxV9 vgoN.6WRHZ2btZqOSUXyRxW1zD4liBShGTFDDrsfRRkoHxAzR6z3JUXLt0zZ5ebWJN_O3fN5IJ1a h9HnO599IFPVqqirdTkXSeeHIspiXNIXK X-Sonic-MF: X-Sonic-ID: 7eb509e7-6156-4ebd-b755-70a9aa912252 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Thu, 22 Aug 2024 15:23:03 +0000 Received: by hermes--production-ir2-6664f499fc-l95lq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7017b3ee94a8f6f1c301693f14eda9d0; Thu, 22 Aug 2024 15:22:59 +0000 (UTC) Date: Thu, 22 Aug 2024 18:24:05 +0300 From: Anthony Pankov Message-ID: <334195982.20240822182405@yahoo.com> To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-hackers@freebsd.org Subject: Re: makefs -t ffs makes too large image In-Reply-To: References: <1781435895.20240822135231.ref@yahoo.com> <1781435895.20240822135231@yahoo.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.22544 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB] X-Rspamd-Queue-Id: 4WqRmB3zxVz4sGB Hello Miroslav, You are genius! But the situation is a very frustrating. It is a default system and I did nothing to turn the compression on. So I was absolutely sure that compression is off. I'm sorry. Nevertheless having compression on by default is a very weird decision and is fully unexpected for me. I've never seen a big warning about default value of this vital parameter will be inverted. On 12 -STABLE: # zfs get compression NAME PROPERTY VALUE SOURCE ps2 compression off default On 14-STABLE # zfs get compression NAME PROPERTY VALUE SOURCE tank compression on default tank/bsdsrc compression on default Thank you. Thursday, August 22, 2024, 5:55:35 PM, you wrote: > On 22/08/2024 12:52, Anthony Pankov wrote: >> Hello, >> > There is no much info about makefs so I ask here. >> > I've tried to make UFS image via `makefs` of a directory sized 500Mb and get file of 1200Mb. >> Is it a bug or feature? Is it related to source files that lies on ZFS while making UFS image? >> > #makefs -t ffs -B little -o label=rootfs -o version=2 -o softupdates=0 image/rootfs.ufs installed >> > Calculated size of `image/rootfs.ufs': 1264320512 bytes, 14974 inodes >> Extent size set to 32768 >> image/rootfs.ufs: 1205.8MB (2469376 sectors) block size 32768, fragment size 4096 >> using 2 cylinder groups of 866.31MB, 27722 blks, 11136 inodes >> > #du -hcd 1 installed/ >> > 512B installed/media >> 512B installed/tmp >> 512B installed/mnt >> 2,4M installed/sbin >> 259K installed/var >> 512B installed/dev >> 99K installed/libexec >> 835K installed/bin >> 384M installed/usr >> 9,7M installed/rescue >> 676K installed/etc >> 512B installed/net >> 5,0K installed/root >> 512B installed/proc >> 9,4M installed/lib >> 90M installed/boot >> 497M installed/ >> 497M total >> > # tunefs -p image/rootfs.ufs >> ... >> tunefs: maximum blocks per file in a cylinder group: (-e) 8192 >> tunefs: average file size: (-f) 16384 >> tunefs: average number of files in a directory: (-s) 64 >> tunefs: minimum percentage of free space: (-m) 8% >> tunefs: space to hold for metadata blocks: (-k) 0 >> tunefs: optimization preference: (-o) time >> tunefs: volume label: (-L) rootfs > Is it possible that you have enabled compression on source ZFS filesystem? Try to ad -A to you "du" command to see actual size of files, not compressed size on filesystem. > Kind regards > Miroslav Lachman -- Best regards, Anthony