From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 96B7715ACFB for ; Thu, 20 Apr 2023 08:52:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3799CE08C9; Thu, 20 Apr 2023 08:52:26 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 834D7E0884 for ; Thu, 20 Apr 2023 08:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1681980737; i=warp_7@gmx.de; bh=Pbyy6hIvl4dKbhHAY6FFePOJTjOB4iFosr46cAYSRj4=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=Y1akDJ4ixdkc8+Ey0zpHk+qHnRWrrEshBDT7GzOBeTAu4sJ7NQaxNZK1BO3wLl6BG mIvvBRlQe8oC8cWcYpToH7Qq+LsNkq1dnTxXtbX/7tq2eQ9le5Uejxx6aomOTLU5EP nuen+XcgWv+0Ov5pspYd1B+j5HUGD6qEUuD7lsA9TXPZKt7na9iv1PQBM7IO9Yj/R/ xTJarlFo5byxllDoLKyQ77Lzp1FUzH11inQdjOS/qERcQTv+6NBLAh0DoxqxtmwtM+ sDTShpbtPSYqbrEUKom4v2bVZBE1P0Wzct2t2bUcZ09UHKA3xcRlyvgEb6arMYgYWt qKLE6BDZqs/bw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from moby ([92.117.39.58]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0NU-1qZR6048m8-00kMw0 for ; Thu, 20 Apr 2023 10:52:17 +0200 Date: Thu, 20 Apr 2023 10:52:15 +0200 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: <81fde7b8-cc55-fcae-79ea-4dd2a78eb8a0@gmail.com> <2703063.mvXUDI8C0e@wstn> <7ef36857-192e-6d2c-dc44-a2c4ba772205@gmail.com> <35474652-f973-75b2-b8e7-4d22915672ac@gmail.com> <9781e250-591d-d468-11f2-7e5c94ac7db3@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V5vH0xnpeYm5ICA4" Content-Disposition: inline In-Reply-To: <9781e250-591d-d468-11f2-7e5c94ac7db3@gmail.com> User-Agent: Mutt 2.2.10; VIM - Vi IMproved 9.0 X-Provags-ID: V03:K1:5yHxxydBLGAzIGgjWekH7xKWrY3F7Qtfsu9oipdNfV6Lc51rLmy Z9ak0ig1ezKsATq67S7XQR+W7PgZ0CeQAdqhdrzHk+WilavueXeJFGZaarvf7J0cTq+trt5 eF966AegtGK7ew1mIeXPAQyoX3k//H9VRMI+MZOErIHTRwhAc1h43z1G6XMWVYmARaJBm3G mSG8PX2e9sj1zanpxuydw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Vu7fvTinJeg=;awC+yJTP8SCLJ/8lWnGgZK6xPx3 OADPXNgb6/G5nVkk7jhWtehL2CJSbT/7YO1dY0z4hK1odIhFmBx+BWWdlxa6alVu1CqjYoX9n iiqPqLxr+qtHSZqAExFxB5+IDECYs7Hs7NuNPwZvCEf6a6zzIpmAgwnUehrTrgKLBFr2hMA07 dUCnd/n4BZ1wDz8dPWvqUeGeaAAfgUcBK983s7W2DRAaNreOkhpHlhVKrgLycK/pEz7PbPD++ yeVwJIsDJ0vBdCLNZpj5jQKvXE0y/8qQnZlouiuXU6PIvyGXDCujv+AaD54OT2A4l3zWLrD3D +IZFTLeWO8h6xY0M4CVIi6J+xOSyRlofva/ZzqZmYuaeZYGQLEQBwTAqSoNAriapY1KUB00gn r+emuMBvRVjSzQJZHtUNrVftgM1m5dca9bqlgxRQHOg7YnVpcQRvhm/P8kcL3UcpJhOIKDUml 59aCjua1rzNHk2SrlwFVSIVqOZDgM2u9pQD/vPeDbPThA2Eux7et4+uABd1bHKTG7AYIhBRk1 DQ8A8+eUwUDfKCrkTb3wrCZy3eJ+8YYDQCzf6qnPAG8YqljYvrtYHedRus2wykpcdoWbRc2+c Ly2sZ4hraiJfIvaIJ9a0dJF+l7S3ZiYbFn2UkJ2fVA57TOCf5GlYUtJ308XDItHzJymknq+3Z qoQmRjd5G4ZcbWNcGp7pD4T1VMNKspjouDKCoyIR828D0P3p5NfkOL0P3GQzXhkRD7S9Mtf4u cvb5eJRIxDNSk+JpAhc3Haz4ukSjX8R/PCmmFgpgV7KilwcSDjb5aW4X3HMbvsZG3jgFOZb6r 9nbs6YrylJG7WONTcI7RAwjtKMMCRLbHM8DxygGNMNq/QXZVSpVHZssQnLzZh3znde/onZrxi T2T/P93kA3KRDrs12lfOcYI+xEwC4oFIt5PGOnwDzwnTLoDRyu+wttHfCIXxM9ixTl5fJ04br 1JqaiA== X-Archives-Salt: 7d00f0d4-77db-41bd-ac12-24414cb6526a X-Archives-Hash: 43d2aee49f092edbda550fd6a5f17ba4 --V5vH0xnpeYm5ICA4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Wed, Apr 19, 2023 at 06:32:45PM -0500 schrieb Dale: > Frank Steinmetzger wrote: > > <<>> > > > > When formatting file systems, I usually lower the number of inodes from= the=20 > > default value to gain storage space. The default is one inode per 16 kB= of=20 > > FS size, which gives you 60 million inodes per TB. In practice, even on= e=20 > > million per TB would be overkill in a use case like Dale=E2=80=99s medi= a storage.=C2=B9=20 > > Removing 59 million inodes =C3=97 256 bytes =E2=89=88 15 GB of net spac= e for each TB, not=20 > > counting extra control metadata and ext4 redundancies. >=20 > If I ever rearrange my > drives again and can change the file system, I may reduce the inodes at > least on the ones I only have large files on.=C2=A0 Still tho, given I use > LVM and all, maybe that isn't a great idea.=C2=A0 As I add drives with LV= M, I > assume it increases the inodes as well. I remember from yesterday that the manpage says that inodes are added=20 according to the bytes-per-inode value. > I wonder.=C2=A0 Is there a way to find out the smallest size file in a > directory or sub directory, largest files, then maybe a average file > size??? The 20 smallest: `find -type f -print0 | xargs -0 stat -c '%s %n' | sort -n | head -n 20` The 20 largest: either use tail instead of head or reverse sorting with -r. You can also first pipe the output of stat into a file so you can sort and= =20 analyse the list more efficiently, including calculating averages. > I thought about du but given the number of files I have here, > it would be a really HUGE list of files.=C2=A0 Could take hours or more t= oo.=C2=A0 I use a =E2=80=9Ccache=E2=80=9D of text files with file listings of all my = external drives.=20 This allows me to glance over my entire data storage without having to plug= =20 in any drive. It uses tree underneath to get the list: `tree -afx -DFins --dirsfirst --du --timefmt "%Y-%m-%d %T"` This gives me a list of all directories and files, with their full path,=20 date and size information and accumulated directory size in a concise=20 format. Add -pug to also include permissions. --=20 Gr=C3=BC=C3=9Fe | Greetings | Qapla=E2=80=99 Please do not share anything from, with or about me on any social network. Computers are the most congenial product of human laziness to-date. --V5vH0xnpeYm5ICA4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmRA/T0ACgkQizG+tUDU MMrYUg/+JO49psZ+PCQEDPmhlrtz1LjqFchkrt8coeNpTdIZj+wtpeKrwCVjuEF6 t2V9oncU2crvdvc/RWiPeaAmvnlgUQVyLGbyxKiIcDHK/0JJ3VnNpnj1Edp2bZyE 71CY2QBQCO+l6xnyPhTer+nB9lPV44sal1f7n6j/r11EPV+ZYg8rBHvkSix2fh+V lEPECnbFGQOwgoZl01U3XkhxXtGpyDQTfqRQPheJllDELXDZhJlJeJGZo2kFS7A6 pNSLQgupX0TwmtYjp0s5cI5LrgfjhHRZDdYsHNopEvv1CaFLIfGxqVTB3PzfnRMZ TXOleg/attqcWN6taIcb3fIgUUmxWKf7PzA2X/aX9MNrw3GAdf+vGYUI2oUFpvQc 7gbZP7B7/9hQMMQMMUmepdhs88loR60WW8s/SpqZ2YlRK41y7Ibf8jfRMqmhHaHK yAS517hcuxPkfcCFGuDHMgQsJsVhzNGv83ETLd78CbP31QgnVuwCaofXyHQvyjBJ srkFoiJkXZoXcV0JeefoKymkiCkj25EWg2m3wpnZiQVtAye5Y7WyBCQ+60N45Q90 w15PwLyu3aA9gMcwcAZdIoNL7fRFEVKv0gFaIjXsDJcLXYT2kBMn1qDDKW5RqLvD cISgy03qz4Azv9UY5C68Esuwzk1sZ2R8ZaV6Pj3FPBJ6DX0j6r4= =F7BT -----END PGP SIGNATURE----- --V5vH0xnpeYm5ICA4--