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 7F944158003 for ; Thu, 20 Apr 2023 10:59:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B135E08DB; Thu, 20 Apr 2023 10:59:17 +0000 (UTC) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AF304E084E for ; Thu, 20 Apr 2023 10:59:16 +0000 (UTC) Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6a5dd2558a1so325774a34.2 for ; Thu, 20 Apr 2023 03:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681988356; x=1684580356; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=+d1ZEa60nlzgKKlBMDbXLEnmoRuxamLsSxp0hLXpceI=; b=muI7SY1lQJOAFSZu2DxdRK41YVuhE2MLpbmjvZfRF9hhzPPeRKyqx/F8i1pzSrRwDi Yli4XYUBksSUEQqDqgplbrTup0Si4UstpIaZHQYdui1JQDAIPfyDGitNcU7RtC08LnHh AZ9ncUPRi8m6EwLjWZ1aVvE0IUi0Y5knSmOE9gaNBXWS2vyUYWe3mrk78kPy6cCbmkho ectztRWlw8yratnHKwZY/kl14Hi+a9oMOJGhxCFHKRYvbQsS4/33cccE3Gs/uQ9VCoQT SH6qqM1KEcKL3rl9T1EKTBSjv6p4VRZ9/pd2BnAKeF/EzH0Gp9s2zny8EOMCg5Q5S3MU QqZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681988356; x=1684580356; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+d1ZEa60nlzgKKlBMDbXLEnmoRuxamLsSxp0hLXpceI=; b=EUxd6wABri5pHLX+POs5NMxBLtfO3hJ79VnkMA45xIsddoch43bbtRpbUmNJfOvoYr vMSgRjKyfl12IoD8QGH3APXL6fuHIgxMDDlZflAk5Cc7Cz4/1ejwP8UweyHf6NbMyfj5 8k0EmyKCZcVDT6bsGOb+65LDo+VMcFeZdOosrgqfgVjnuQ947Sz1MHUe919YP9MH+QNS +GxBLmosuLRVEQSp1GeRgTczgPfgHBrpdgIj47+2lYMpo3IC7KQuMOq6pIsqhK+eIGhI ithi6eh+1a/mPvTcqZHb/hTYEHmXVe1J+4zGmJ6K7zZjhs97XZq//ATDNqIDHF2nvNqv acnA== X-Gm-Message-State: AAQBX9cs01Ee5t5OhV4Ms75Skj9yeXpSuDdl2m+Y//gICQUVaqcOMe0e SicwtT78WmA7nRE5ngmdYjw= X-Google-Smtp-Source: AKy350bAlicntLFcg15eGcl4lfbef7ojSxM7jflF+xomezq0eb5llguwtaIv9vMyF7c9/gJkF7emrQ== X-Received: by 2002:a05:6871:98:b0:184:2de4:3d15 with SMTP id u24-20020a056871009800b001842de43d15mr816904oaa.31.1681988355964; Thu, 20 Apr 2023 03:59:15 -0700 (PDT) Received: from [10.8.8.8] ([107.179.20.188]) by smtp.gmail.com with ESMTPSA id 26-20020a056870131a00b00177ba198612sm577361oab.53.2023.04.20.03.59.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 03:59:15 -0700 (PDT) Subject: Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on To: gentoo-user@lists.gentoo.org References: <81fde7b8-cc55-fcae-79ea-4dd2a78eb8a0@gmail.com> <0b6cf97a-d7d4-fad4-d365-8e4a96adb34c@gmail.com> <5663831.DvuYhMxLoT@wstn> From: Dale Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ AV7otKuZekDWiLi3Eig8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c0-02c1-2dcfe11b8532@gmail.com> Date: Thu, 20 Apr 2023 05:59:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.15 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 In-Reply-To: <5663831.DvuYhMxLoT@wstn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 55322681-e6dd-48ce-97d7-fd75c29e6085 X-Archives-Hash: afce11a6cd6032b0e2bafe4c2ec64a63 Peter Humphrey wrote: > On Thursday, 20 April 2023 10:29:59 BST Dale wrote: >> Frank Steinmetzger wrote: >>> 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 >>>>> default value to gain storage space. The default is one inode per 16 kB >>>>> of >>>>> FS size, which gives you 60 million inodes per TB. In practice, even one >>>>> million per TB would be overkill in a use case like Dale’s media >>>>> storage.¹ >>>>> Removing 59 million inodes × 256 bytes ≈ 15 GB of net space for each TB, >>>>> not counting extra control metadata and ext4 redundancies. >>>> 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. Still tho, given I use >>>> LVM and all, maybe that isn't a great idea. As I add drives with LVM, I >>>> assume it increases the inodes as well. >>> I remember from yesterday that the manpage says that inodes are added >>> according to the bytes-per-inode value. >>> >>>> I wonder. 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 >>> analyse the list more efficiently, including calculating averages. >> When I first run this while in / itself, it occurred to me that it >> doesn't specify what directory. I thought maybe changing to the >> directory I want it to look at would work but get this: >> >> >> root@fireball /home/dale/Desktop/Crypt # `find -type f -print0 | xargs >> -0 stat -c '%s %n' | sort -n | head -n 20` >> -bash: 2: command not found >> root@fireball /home/dale/Desktop/Crypt # >> >> >> It works if I'm in the / directory but not when I'm cd'd to the >> directory I want to know about. I don't see a spot to change it. Ideas. > In place of "find -type..." say "find / -type..." > Ahhh, that worked.  I also realized I need to leave off the ' at the beginning and end.  I thought I left those out.  I copy and paste a lot.  lol  It only took a couple dozen files to start getting up to some size.  Most of the few small files are text files with little notes about a video.  For example, if building something I will create a text file that lists what is needed to build what is in the video.  Other than a few of those, file size reaches a few 100MBs pretty quick.  So, the number of small files is pretty small.  That is good to know.  Thanks for the command.  I never was good with xargs, sed and such.  It took me a while to get used to grep.  ROFL  Dale :-)  :-)