Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Wol
On 20/04/2023 05:23, Dale wrote: Some 1,100 directories, not sure if directories use inodes or not. "Everything is a file". A directory is just a data file with a certain structure that maps names to inodes. It might still be there somewhere - I can't imagine it's been deleted, just

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Frank Steinmetzger
Am Thu, Apr 20, 2023 at 04:29:59AM -0500 schrieb Dale: > >> 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

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Dale
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 >

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Peter Humphrey
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

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Dale
Peter Humphrey wrote: > On Wednesday, 19 April 2023 18:59:26 BST Dale wrote: >> Peter Humphrey wrote: >>> On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: With my HDD: # smartctl -x /dev/sda | grep -i 'sector size' Sector Sizes: 512 bytes logical, 4096

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Dale
eric wrote: > On 4/19/23 21:23, Dale wrote: >> Mark Knecht wrote: >>> >>> > 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???  I thought about du but given the number of files I have >>> here, it

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Peter Humphrey
On Wednesday, 19 April 2023 18:59:26 BST Dale wrote: > Peter Humphrey wrote: > > On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > >> With my HDD: > >># smartctl -x /dev/sda | grep -i 'sector size' > >>Sector Sizes: 512 bytes logical, 4096 bytes physical > > > > Or,

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Dale
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,

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Frank Steinmetzger
Am Wed, Apr 19, 2023 at 06:09:15PM -0700 schrieb Mark Knecht: > > 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??? I thought about du but given the number of files I have here, it > would be a really

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Frank Steinmetzger
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

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread eric
On 4/19/23 21:23, Dale wrote: Mark Knecht wrote: > 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???  I thought about du but given the number of files I have here, it would be a really HUGE list of

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Dale
Mark Knecht wrote: > > > 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???  I thought about du but given the number of files I have here, > it would be a really HUGE list of files.  Could take hours or

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Mark Knecht
> 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??? I thought about du but given the number of files I have here, it would be a really HUGE list of files. Could take hours or more too. This is what KDE

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread 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

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Frank Steinmetzger
Am Wed, Apr 19, 2023 at 01:00:33PM -0700 schrieb Mark Knecht: > I think technically they default to the physical block size internally > and the earlier ones, attempting to be more compatible with HDDs, > had 4K blocks. Some of the newer chips now have 16K blocks but > still support 512B Logical

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Mark Knecht
On Wed, Apr 19, 2023 at 12:39 PM Nikos Chantziaras wrote: > > On 19/04/2023 22:26, Dale wrote: > > So for future reference, let it format with the default? I'm also > > curious if when it creates the file system it will notice this and > > adjust automatically. It might. Maybe? > > AFAIK, SSDs

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Dale
Mark Knecht wrote: > > > On Wed, Apr 19, 2023 at 10:59 AM Dale > wrote: > > > > Peter Humphrey wrote: > > > On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > > > > > >> With my HDD: > > >> > > >>    # smartctl -x /dev/sda | grep -i 'sector size' > >

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Mark Knecht
On Wed, Apr 19, 2023 at 10:59 AM Dale wrote: > > Peter Humphrey wrote: > > On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > > > >> With my HDD: > >> > >># smartctl -x /dev/sda | grep -i 'sector size' > >>Sector Sizes: 512 bytes logical, 4096 bytes physical > > Or,

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Dale
Peter Humphrey wrote: > On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > >> With my HDD: >> >># smartctl -x /dev/sda | grep -i 'sector size' >>Sector Sizes: 512 bytes logical, 4096 bytes physical > Or, with an NVMe drive: > > # smartctl -x /dev/nvme1n1 | grep -A2

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Mark Knecht
On Wed, Apr 19, 2023 at 3:35 AM Peter Humphrey wrote: > > On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > > > With my HDD: > > > ># smartctl -x /dev/sda | grep -i 'sector size' > >Sector Sizes: 512 bytes logical, 4096 bytes physical > > Or, with an NVMe drive: > >

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Peter Humphrey
On Wednesday, 19 April 2023 09:00:33 BST Nikos Chantziaras wrote: > With my HDD: > ># smartctl -x /dev/sda | grep -i 'sector size' >Sector Sizes: 512 bytes logical, 4096 bytes physical Or, with an NVMe drive: # smartctl -x /dev/nvme1n1 | grep -A2 'Supported LBA Sizes' Supported LBA

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Dale
Nikos Chantziaras wrote: > On 19/04/2023 04:45, Dale wrote: >> Filesystem created:   Sun Apr 15 03:24:56 2012 >> Lifetime writes:  993 GB >> >> That's for the main / partition.  I have /usr on it's own partition tho. >> >> Filesystem created:   Sun Apr 15 03:25:48 2012 >> Lifetime

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Frank Steinmetzger wrote: > Am Tue, Apr 18, 2023 at 10:05:27AM -0500 schrieb Dale: > >> Given how I plan to use this drive, that should last a long time.  I'm >> just putting the OS stuff on the drive and I compile on a spinning rust >> drive and use -k to install the built packages on the live

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Mark Knecht wrote: > > > On Tue, Apr 18, 2023 at 2:15 PM Dale > wrote: > > > > Mark Knecht wrote: > > > > > > > > On Tue, Apr 18, 2023 at 1:02 PM Dale > wrote: > > > > > > > > Someone mentioned 16K block size. > > > > > > I mentioned it

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Wols Lists wrote: > On 18/04/2023 23:13, Frank Steinmetzger wrote: >>> /var/tmp/portage on tmpfs. And on every disk I allocate a swap >>> partition >>> equal to twice the mobo's max memory. Three drives times 64GB times >>> two is a >>> helluva lot of swap. > >> Uhm … why? The moniker of swap =

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Wols Lists
On 18/04/2023 23:13, Frank Steinmetzger wrote: /var/tmp/portage on tmpfs. And on every disk I allocate a swap partition equal to twice the mobo's max memory. Three drives times 64GB times two is a helluva lot of swap. Uhm … why? The moniker of swap = 2×RAM comes from times when RAM was

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Frank Steinmetzger
Am Wed, Apr 19, 2023 at 12:18:14AM +0200 schrieb Frank Steinmetzger: > If you use ext4, run `dumpe2fs -h /dev/your-root-partition | grep Lifetime` > to see how much data has been written to that partition since you formatted > it. Just to get an idea of what you are looking at on your setup.

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Frank Steinmetzger
Am Tue, Apr 18, 2023 at 10:05:27AM -0500 schrieb Dale: > Given how I plan to use this drive, that should last a long time.  I'm > just putting the OS stuff on the drive and I compile on a spinning rust > drive and use -k to install the built packages on the live system.  That > should help

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Frank Steinmetzger
Am Tue, Apr 18, 2023 at 09:53:18PM +0100 schrieb Wol: > On 18/04/2023 21:01, Dale wrote: > > > I just use tmpfs for /var/tmp/portage (16GB, I'm on 32GB RAM.) Same. > /var/tmp/portage on tmpfs. And on every disk I allocate a swap partition > equal to twice the mobo's max memory. Three drives

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Mark Knecht
On Tue, Apr 18, 2023 at 2:15 PM Dale wrote: > > Mark Knecht wrote: > > > > On Tue, Apr 18, 2023 at 1:02 PM Dale wrote: > > > > > Someone mentioned 16K block size. > > > I mentioned it but I'm NOT suggesting it. > > It would be the -b option if you were to do it for ext4. > > I'm using the

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Mark Knecht wrote: > > > On Tue, Apr 18, 2023 at 1:02 PM Dale > wrote: > > > > > Someone mentioned 16K block size. > > > I mentioned it but I'm NOT suggesting it. > > It would be the -b option if you were to do it for ext4. > > I'm using the default block size (4k)

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Mark Knecht
On Tue, Apr 18, 2023 at 1:02 PM Dale wrote: > > Someone mentioned 16K block size. I mentioned it but I'm NOT suggesting it. It would be the -b option if you were to do it for ext4. I'm using the default block size (4k) on all my SSDs and M.2's and as I've said a couple of time, I'm going to

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Wol
On 18/04/2023 21:01, Dale wrote: I just use tmpfs for /var/tmp/portage (16GB, I'm on 32GB RAM.) When I keep binary packages around, those I have on my HDD, as well as the distfiles: DISTDIR="/mnt/Data/gentoo/distfiles" PKGDIR="/mnt/Data/gentoo/binpkgs" Most of mine is in tmpfs to except for

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Nikos Chantziaras wrote: > On 18/04/2023 18:05, Dale wrote: >> I compile on a spinning rust >> drive and use -k to install the built packages on the live system.  That >> should help minimize the writes.  > > I just use tmpfs for /var/tmp/portage (16GB, I'm on 32GB RAM.) When I > keep binary

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Mark Knecht
On Tue, Apr 18, 2023 at 7:53 AM Nikos Chantziaras wrote: > > On 16/04/2023 01:47, Dale wrote: > > Anything else that makes these special? Any tips or tricks? > > Only three things. > > 1. Make sure the fstrim service is active (should run every week by > default, at least with systemd,

Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Dale
Nikos Chantziaras wrote: > On 16/04/2023 01:47, Dale wrote: >> Anything else that makes these special?  Any tips or tricks? > > Only three things. > > 1. Make sure the fstrim service is active (should run every week by > default, at least with systemd, "systemctl enable fstrim.timer".) > > 2.