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

    From Dale@21:1/5 to All on Sun Apr 16 00:50:01 2023
    Howdy,

    I finally broke down and bought a SSD.  It's a Samsung V-Nand 870 EVO
    500GB.  My current OS sits on a 160GB drive so should be plenty.  I plan
    to even add a boot image for the Gentoo LiveGUI thingy, maybe Knoppix or something plus my usual OS.  By the way, caught one for sale for
    $40.00.  It has a production date of 5/2021. 

    My question is this.  Do I need anything special in the kernel or
    special fstab options for this thing?  I know at one point there was
    folks having problems with certain settings.  I did some googling and it
    seems to be worked out but I want to be sure I don't blow this thing up
    or something. 

    Anything else that makes these special?  Any tips or tricks? 

    Dale

    :-)  :-) 

    P. S.  I'm hoping this will make my system a little more responsive.  Maybe.  Either way, that 160GB drive is getting a little full. 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to Mark Knecht on Sun Apr 16 01:50:01 2023
    On 4/15/23 17:24, Mark Knecht wrote:


    On Sat, Apr 15, 2023 at 3:47 PM Dale <rdalek1967@gmail.com <mailto:rdalek1967@gmail.com>> wrote:

    Howdy,

    I finally broke down and bought a SSD.  It's a Samsung V-Nand 870 EVO 500GB.  My current OS sits on a 160GB drive so should be plenty.  I plan to even add a boot image for the Gentoo LiveGUI thingy, maybe Knoppix or something plus my usual OS.  By the way, caught one for sale for $40.00.  It has a production date of 5/2021.

    My question is this.  Do I need anything special in the kernel or
    special fstab options for this thing?  I know at one point there was folks having problems with certain settings.  I did some googling and it seems to be worked out but I want to be sure I don't blow this thing up
    or something.

    Anything else that makes these special?  Any tips or tricks?

    Dale

    :-)  :-)

    P. S.  I'm hoping this will make my system a little more responsive. Maybe.  Either way, that 160GB drive is getting a little full.


    Dale,
       I have 500GB SSDs and 1TB M.2 drives in all of my machines. No
    machine boots from a spinning drive anyhmore. Never had any
    problems.

       The only thing I've done differently is the errors=remount=ro item below. Other than that if whatever OS you install sets up boot, and
    the machine boots, then it's just a drive in my experience

    Best wishes,
    Mark

    # / was on /dev/nvme1n1p3 during installation UUID=3fe6798f-653f-42e8-8e96-7ba0d490bfdf /               ext4    errors=remount-ro 0       1
    # /boot/efi was on /dev/nvme0n1p1 during installation
    UUID=60DF-9F56  /boot/efi       vfat    umask=0077      0       1

    My 5-year old small box running 500GB SSD INTEL SSDSC2BF48 Atom processor, it is ON 24/7 running Asterisk and hylafax.
    Never had a problem with it.
    But it is recommended to to run via cron fstrim:
    30 18 * * 2 /sbin/fstrim -v /

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to rdalek1967@gmail.com on Sun Apr 16 01:30:01 2023
    On Sat, Apr 15, 2023 at 3:47 PM Dale <rdalek1967@gmail.com> wrote:

    Howdy,

    I finally broke down and bought a SSD. It's a Samsung V-Nand 870 EVO
    500GB. My current OS sits on a 160GB drive so should be plenty. I plan
    to even add a boot image for the Gentoo LiveGUI thingy, maybe Knoppix or something plus my usual OS. By the way, caught one for sale for
    $40.00. It has a production date of 5/2021.

    My question is this. Do I need anything special in the kernel or
    special fstab options for this thing? I know at one point there was
    folks having problems with certain settings. I did some googling and it seems to be worked out but I want to be sure I don't blow this thing up
    or something.

    Anything else that makes these special? Any tips or tricks?

    Dale

    :-) :-)

    P. S. I'm hoping this will make my system a little more responsive.
    Maybe. Either way, that 160GB drive is getting a little full.


    Dale,
    I have 500GB SSDs and 1TB M.2 drives in all of my machines. No
    machine boots from a spinning drive anyhmore. Never had any
    problems.

    The only thing I've done differently is the errors=remount=ro item
    below. Other than that if whatever OS you install sets up boot, and
    the machine boots, then it's just a drive in my experience

    Best wishes,
    Mark

    # / was on /dev/nvme1n1p3 during installation UUID=3fe6798f-653f-42e8-8e96-7ba0d490bfdf / ext4
    errors=remount-ro 0 1
    # /boot/efi was on /dev/nvme0n1p1 during installation
    UUID=60DF-9F56 /boot/efi vfat umask=0077 0 1

    <div dir="ltr"><br><br>On Sat, Apr 15, 2023 at 3:47 PM Dale &lt;<a href="mailto:rdalek1967@gmail.com">rdalek1967@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Howdy,<br>&gt;<br>&gt; I finally broke down and bought a SSD.  It&#39;s a Samsung V-Nand 870 EVO<
    &gt; 500GB.  My current OS sits on a 160GB drive so should be plenty.  I plan<br>&gt; to even add a boot image for the Gentoo LiveGUI thingy, maybe Knoppix or<br>&gt; something plus my usual OS.  By the way, caught one for sale for<br>&gt; $40.00. 
    It has a production date of 5/2021. <br>&gt;<br>&gt; My question is this.  Do I need anything special in the kernel or<br>&gt; special fstab options for this thing?  I know at one point there was<br>&gt; folks having problems with certain settings. 
    I did some googling and it<br>&gt; seems to be worked out but I want to be sure I don&#39;t blow this thing up<br>&gt; or something. <br>&gt;<br>&gt; Anything else that makes these special?  Any tips or tricks? <br>&gt;<br>&gt; Dale<br>&gt;<br>&gt; :-)
    :-) <br>&gt;<br>&gt; P. S.  I&#39;m hoping this will make my system a little more responsive. <br>&gt; Maybe.  Either way, that 160GB drive is getting a little full. <br>&gt;<div><br></div><div>Dale,</div><div>   I have 500GB SSDs and 1TB M.2 drives
    in all of my machines. No </div><div>machine boots from a spinning drive anyhmore. Never had any </div><div>problems.</div><div><br></div><div>   The only thing I&#39;ve done differently is the errors=remount=ro item </div><div>below. Other than
    that if whatever OS you install sets up boot, and </div><div>the machine boots, then it&#39;s just a drive in my experience</div><div><br></div><div>Best wishes,</div><div>Mark</div><div><br># / was on /dev/nvme1n1p3 during installation<br>UUID=3fe6798f-
    653f-42e8-8e96-7ba0d490bfdf /               ext4    errors=remount-ro 0       1<br># /boot/efi was on /dev/nvme0n1p1 during installation<br>UUID=60DF-9F56  /boot/efi       vfat    umask=0077      0       1<br> </div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Kenworthy@21:1/5 to Dale on Sun Apr 16 03:50:01 2023
    On 16/4/23 06:47, Dale wrote:
    Howdy,

    I finally broke down and bought a SSD.  It's a Samsung V-Nand 870 EVO 500GB.  My current OS sits on a 160GB drive so should be plenty.  I plan
    to even add a boot image for the Gentoo LiveGUI thingy, maybe Knoppix or something plus my usual OS.  By the way, caught one for sale for
    $40.00.  It has a production date of 5/2021.

    My question is this.  Do I need anything special in the kernel or
    special fstab options for this thing?  I know at one point there was
    folks having problems with certain settings.  I did some googling and it seems to be worked out but I want to be sure I don't blow this thing up
    or something.

    Anything else that makes these special?  Any tips or tricks?

    Dale

    :-)  :-)

    P. S.  I'm hoping this will make my system a little more responsive. Maybe.  Either way, that 160GB drive is getting a little full.



    look into mount options for SSD's (discard option) and "fstrim" for maintenance. (read up on trimmimg - doing a manual trim before the drive reaches full allocation (they delete files, but do not erase them
    because erasing is time consuming so its an OS controlled operation) or
    auto trimming (which can cause serious pauses at awkward times) can
    prevent serious performance degradation as it has to erase before
    writing.  I am not sure of the current status but in the early days of
    SSD's, this was serious concern.

    BillK


    BillK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Sun Apr 16 09:20:01 2023
    On Sunday, 16 April 2023 02:47:00 BST William Kenworthy wrote:

    look into mount options for SSD's (discard option) and "fstrim" for maintenance. (read up on trimmimg - doing a manual trim before the drive reaches full allocation (they delete files, but do not erase them
    because erasing is time consuming so its an OS controlled operation) or
    auto trimming (which can cause serious pauses at awkward times) can
    prevent serious performance degradation as it has to erase before
    writing. I am not sure of the current status but in the early days of
    SSD's, this was serious concern.

    In short, see https://wiki.gentoo.org/wiki/SSD . :)

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Kenworthy@21:1/5 to Peter Humphrey on Sun Apr 16 10:50:01 2023
    On 16/4/23 15:18, Peter Humphrey wrote:
    On Sunday, 16 April 2023 02:47:00 BST William Kenworthy wrote:

    look into mount options for SSD's (discard option) and "fstrim" for
    maintenance. (read up on trimmimg - doing a manual trim before the drive
    reaches full allocation (they delete files, but do not erase them
    because erasing is time consuming so its an OS controlled operation) or
    auto trimming (which can cause serious pauses at awkward times) can
    prevent serious performance degradation as it has to erase before
    writing. I am not sure of the current status but in the early days of
    SSD's, this was serious concern.
    In short, see https://wiki.gentoo.org/wiki/SSD . :)

    Excellent, condenses it nicely.

    BillK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to All on Sun Apr 16 17:10:01 2023
    On Sun, Apr 16, 2023 at 1:44 AM William Kenworthy <billk@iinet.net.au>
    wrote:


    On 16/4/23 15:18, Peter Humphrey wrote:
    On Sunday, 16 April 2023 02:47:00 BST William Kenworthy wrote:

    look into mount options for SSD's (discard option) and "fstrim" for
    maintenance. (read up on trimmimg - doing a manual trim before the
    drive
    reaches full allocation (they delete files, but do not erase them
    because erasing is time consuming so its an OS controlled operation) or
    auto trimming (which can cause serious pauses at awkward times) can
    prevent serious performance degradation as it has to erase before
    writing. I am not sure of the current status but in the early days of
    SSD's, this was serious concern.
    In short, see https://wiki.gentoo.org/wiki/SSD . :)

    Excellent, condenses it nicely.

    BillK



    OK Dale, I'm completely wrong, but also 'slightly' right.

    If you have an SSD or nvme drive installed then fstrim should be
    installed and run on a regular basis. However it's not 'required'.

    Your system will still work, but after all blocks on the drive have
    been used for file storage and later deleted, if they are not
    written back to zeros then the next time you go to use that
    block the write will be slower as the write must first write
    zeros and then your data.

    fstrim does the write to zeros so that during normal operation
    you don't wait.

    I've become so completely used to Kubuntu that I had to read
    that this is all set up automatically when the system finds an
    SSD or nvme. In Gentoo land you have to do this yourself.

    Sorry for any confusion. Time to unsubscribe from this list
    I guess and leave you all to your beloved distro.

    Bye,
    Mark

    <div dir="ltr"><br><br>On Sun, Apr 16, 2023 at 1:44 AM William Kenworthy &lt;<a href="mailto:billk@iinet.net.au">billk@iinet.net.au</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt; On 16/4/23 15:18, Peter Humphrey wrote:<br>&gt; &gt; On Sunday, 16 April 2023 02:
    47:00 BST William Kenworthy wrote:<br>&gt; &gt;<br>&gt; &gt;&gt; look into mount options for SSD&#39;s (discard option) and &quot;fstrim&quot; for<br>&gt; &gt;&gt; maintenance. (read up on trimmimg - doing a manual trim before the drive<br>&gt; &gt;&gt;
    reaches full allocation (they delete files, but do not erase them<br>&gt; &gt;&gt; because erasing is time consuming so its an OS controlled operation) or<br>&gt; &gt;&gt; auto trimming (which can cause serious pauses at awkward times) can<br>&gt; &gt;&
    gt; prevent serious performance degradation as it has to erase before<br>&gt; &gt;&gt; writing.  I am not sure of the current status but in the early days of<br>&gt; &gt;&gt; SSD&#39;s, this was serious concern.<br>&gt; &gt; In short, see <a href="https:
    //wiki.gentoo.org/wiki/SSD">https://wiki.gentoo.org/wiki/SSD</a> .  :)<br>&gt; &gt;<br>&gt; Excellent, condenses it nicely.<br>&gt;<br>&gt; BillK<br>&gt;<br>&gt;<br><div><br></div><div>OK Dale, I&#39;m completely wrong, but also &#39;slightly&#39; right.
    </div><div><br></div><div>If you have an SSD or nvme drive installed then fstrim should be </div><div>installed and run on a regular basis. However it&#39;s not &#39;required&#39;.<br></div><div><br></div><div>Your system will still work, but after all
    blocks on the drive have</div><div>been used for file storage and later deleted, if they are not</div><div>written back to zeros then the next time you go to use that</div><div>block the write will be slower as the write must first write</div><div>zeros
    and then your data.</div><div><br></div><div>fstrim does the write to zeros so that during normal operation</div><div>you don&#39;t wait.</div><div><br></div><div>I&#39;ve become so completely used to Kubuntu that I had to read</div><div>that this is all
    set up automatically when the system finds an</div><div>SSD or nvme. In Gentoo land you have to do this yourself.</div><div><br></div><div>Sorry for any confusion. Time to unsubscribe from this list</div><div>I guess and leave you all to your beloved
    distro.</div><div><br></div><div>Bye,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Mark Knecht on Sun Apr 16 17:30:01 2023
    This is a multi-part message in MIME format.
    Mark Knecht wrote:


    On Sun, Apr 16, 2023 at 1:44 AM William Kenworthy <billk@iinet.net.au <mailto:billk@iinet.net.au>> wrote:


    On 16/4/23 15:18, Peter Humphrey wrote:
    On Sunday, 16 April 2023 02:47:00 BST William Kenworthy wrote:

    look into mount options for SSD's (discard option) and "fstrim" for
    maintenance. (read up on trimmimg - doing a manual trim before
    the drive
    reaches full allocation (they delete files, but do not erase them
    because erasing is time consuming so its an OS controlled
    operation) or
    auto trimming (which can cause serious pauses at awkward times) can
    prevent serious performance degradation as it has to erase before
    writing.  I am not sure of the current status but in the early
    days of
    SSD's, this was serious concern.
    In short, see https://wiki.gentoo.org/wiki/SSD .  :)

    Excellent, condenses it nicely.

    BillK



    OK Dale, I'm completely wrong, but also 'slightly' right.

    If you have an SSD or nvme drive installed then fstrim should be 
    installed and run on a regular basis. However it's not 'required'.

    Your system will still work, but after all blocks on the drive have
    been used for file storage and later deleted, if they are not
    written back to zeros then the next time you go to use that
    block the write will be slower as the write must first write
    zeros and then your data.

    fstrim does the write to zeros so that during normal operation
    you don't wait.

    I've become so completely used to Kubuntu that I had to read
    that this is all set up automatically when the system finds an
    SSD or nvme. In Gentoo land you have to do this yourself.

    Sorry for any confusion. Time to unsubscribe from this list
    I guess and leave you all to your beloved distro.

    Bye,
    Mark


    Oh, please, don't go anywhere.  <begging>  We already lost the long term Alan.  BTW, I checked on him a while back.  He's still OK.  It's been a while tho. 

    I read during a google search that some distros handle this sort of
    thing automatically, some sort of firmware thing or something.  I
    figured Gentoo didn't, it rarely does since that is the point of
    Gentoo.  So, no harm.  Heck, I just now applied power to the thing.  I
    don't even have it partitioned or anything yet.  Just rebooted after rearranging all the cables, adding power splitter etc etc.

    I do have one gripe.  Why can't drive makers pick a screw size and stick
    to it on ALL drives?  It took some digging to find a screw that would
    fit.  Some I bought that are supposed to work on SSDs were to short.  It would likely work on a metal adapter but not a thicker plastic one. 
    Luckily, I found 4 screws.  No clue where they came from.  Just in my
    junk box.  Before this week, never laid eyes on a SSD before.  Anyone
    know the thread size and count on those things?  I want to order a few,
    just in case. 

    Is running fstrim once a week to often?  I update my OS once a week but
    given the amount of extra space, I'd think once a month would be often enough.  After all, it is 500GB and I'll likely only use less than half
    of that.  Most of the extra space will be extra boot options like
    Knoppix or something.  I'm just thinking it would give it a longer
    life.  Maybe my thinking is wrong???

    Now to play with this thing.  I got to remember what all has to be
    copied over so I can boot the new thing.  :/  Been ages since I moved a
    OS to another hard drive.  Maybe a reinstall would work better.  :-\

    Thanks to all. 

    Dale

    :-)  :-) 

    P. S.  CCing Mark just in case. 

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Mark Knecht wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAK2H+ecL0ndeerMify9D-TOZNBWq5KaDK0Qt+A_YnoQyvR=RUg@mail.gmail.com">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <div dir="ltr"><br>
    <br>
    On Sun, Apr 16, 2023 at 1:44 AM William Kenworthy &lt;<a
    href="mailto:billk@iinet.net.au" moz-do-not-send="true">billk@iinet.net.au</a>&gt;
    wrote:<br>
    &gt;<br>
    &gt;<br>
    &gt; On 16/4/23 15:18, Peter Humphrey wrote:<br>
    &gt; &gt; On Sunday, 16 April 2023 02:47:00 BST William
    Kenworthy wrote:<br>
    &gt; &gt;<br>
    &gt; &gt;&gt; look into mount options for SSD's (discard option)
    and "fstrim" for<br>
    &gt; &gt;&gt; maintenance. (read up on trimmimg - doing a manual
    trim before the drive<br>
    &gt; &gt;&gt; reaches full allocation (they delete files, but do
    not erase them<br>
    &gt; &gt;&gt; because erasing is time consuming so its an OS
    controlled operation) or<br>
    &gt; &gt;&gt; auto trimming (which can cause serious pauses at
    awkward times) can<br>
    &gt; &gt;&gt; prevent serious performance degradation as it has
    to erase before<br>
    &gt; &gt;&gt; writing.  I am not sure of the current status but
    in the early days of<br>
    &gt; &gt;&gt; SSD's, this was serious concern.<br>
    &gt; &gt; In short, see <a
    href="https://wiki.gentoo.org/wiki/SSD" moz-do-not-send="true">https://wiki.gentoo.org/wiki/SSD</a>
    .  :)<br>
    &gt; &gt;<br>
    &gt; Excellent, condenses it nicely.<br>
    &gt;<br>
    &gt; BillK<br>
    &gt;<br>
    &gt;<br>
    <div><br>
    </div>
    <div>OK Dale, I'm completely wrong, but also 'slightly' right.</div>
    <div><br>
    </div>
    <div>If you have an SSD or nvme drive installed then fstrim
    should be </div>
    <div>installed and run on a regular basis. However it's not
    'required'.<br>
    </div>
    <div><br>
    </div>
    <div>Your system will still work, but after all blocks on the
    drive have</div>
    <div>been used for file storage and later deleted, if they are
    not</div>
    <div>written back to zeros then the next time you go to use that</div>
    <div>block the write will be slower as the write must first
    write</div>
    <div>zeros and then your data.</div>
    <div><br>
    </div>
    <div>fstrim does the write to zeros so that during normal
    operation</div>
    <div>you don't wait.</div>
    <div><br>
    </div>
    <div>I've become so completely used to Kubuntu that I had to
    read</div>
    <div>that this is all set up automatically when the system finds
    an</div>
    <div>SSD or nvme. In Gentoo land you have to do this yourself.</div>
    <div><br>
    </div>
    <div>Sorry for any confusion. Time to unsubscribe from this list</div>
    <div>I guess and leave you all to your beloved distro.</div>
    <div><br>
    </div>
    <div>Bye,</div>
    <div>Mark</div>
    </div>
    </blockquote>
    <br>
    <br>
    Oh, please, don't go anywhere.  &lt;begging&gt;  We already lost the
    long term Alan.  BTW, I checked on him a while back.  He's still
    OK.  It's been a while tho.  <br>
    <br>
    I read during a google search that some distros handle this sort of
    thing automatically, some sort of firmware thing or something.  I
    figured Gentoo didn't, it rarely does since that is the point of
    Gentoo.  So, no harm.  Heck, I just now applied power to the thing. 
    I don't even have it partitioned or anything yet.  Just rebooted
    after rearranging all the cables, adding power splitter etc etc. <br>
    <br>
    I do have one gripe.  Why can't drive makers pick a screw size and
    stick to it on ALL drives?  It took some digging to find a screw
    that would fit.  Some I bought that are supposed to work on SSDs
    were to short.  It would likely work on a metal adapter but not a
    thicker plastic one.  Luckily, I found 4 screws.  No clue where they
    came from.  Just in my junk box.  Before this week, never laid eyes
    on a SSD before.  Anyone know the thread size and count on those
    things?  I want to order a few, just in case.  <br>
    <br>
    Is running fstrim once a week to often?  I update my OS once a week
    but given the amount of extra space, I'd think once a month would be
    often enough.  After all, it is 500GB and I'll likely only use less
    than half of that.  Most of the extra space will be extra boot
    options like Knoppix or something.  I'm just thinking it would give
    it a longer life.  Maybe my thinking is wrong???<br>
    <br>
    Now to play with this thing.  I got to remember what all has to be
    copied over so I can boot the new thing.  :/  Been ages since I
    moved a OS to another hard drive.  Maybe a reinstall would work
    better.  <span class="moz-smiley-s7"><span>:-\</span></span><br>
    <br>
    Thanks to all.  <br>
    <br>
    Dale<br>
    <br>
    :-)  :-)  <br>
    <br>
    P. S.  CCing Mark just in case.  <br>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to All on Sun Apr 16 18:20:01 2023
    <SNIP>


    Oh, please, don't go anywhere. <begging> We already lost the long term
    Alan. BTW, I checked on him a while back. He's still OK. It's been a
    while tho.


    Dale - I touched - truly. I'm happy to stick around but I no longer
    run Gentoo and don't want to cause problems or piss off the
    folks who need to be here.

    I read during a google search that some distros handle this sort of thing
    automatically, some sort of firmware thing or something. I figured Gentoo didn't, it rarely does since that is the point of Gentoo. So, no harm.
    Heck, I just now applied power to the thing. I don't even have it
    partitioned or anything yet. Just rebooted after rearranging all the
    cables, adding power splitter etc etc.

    I don't know of any distros that do any of this in firmware. Maybe someone
    else can address that. Many distros now install fstrim by default and
    update crontab. The Ubuntu family does, which I didn't know before this
    thread. However it is on both my Kubuntu machine and my Ubuntu
    Server machine.

    BTW - Windows does this in Disk Defragmenter but you have to
    schedule it yourself according to Bard and ChatGPT. I'll be in
    Windows later today to record some new music and plan to look into
    that then.

    Answering the question from below - weekly is what was set up by
    default here. If your drive isn't near full and you're not writing a lot of
    new
    data on it each week then weekly would seem reasonable to me.
    However being that you are running Gentoo and hence compiling
    lots and lots and lots of stuff every week it's possible that you
    might _possibly_ want to run fstrim more often if your intermediate
    files are going to this drive.



    I do have one gripe. Why can't drive makers pick a screw size and stick
    to it on ALL drives? It took some digging to find a screw that would fit.
    Some I bought that are supposed to work on SSDs were to short. It would
    likely work on a metal adapter but not a thicker plastic one. Luckily, I
    found 4 screws. No clue where they came from. Just in my junk box.
    Before this week, never laid eyes on a SSD before. Anyone know the thread
    size and count on those things? I want to order a few, just in case.

    I second your gripe. I've purchased a couple of PC builder screw
    sets from Amazon.


    Is running fstrim once a week to often? I update my OS once a week but
    given the amount of extra space, I'd think once a month would be often
    enough. After all, it is 500GB and I'll likely only use less than half of that. Most of the extra space will be extra boot options like Knoppix or something. I'm just thinking it would give it a longer life. Maybe my thinking is wrong???

    Now to play with this thing. I got to remember what all has to be copied
    over so I can boot the new thing. :/ Been ages since I moved a OS to
    another hard drive. Maybe a reinstall would work better. :-\


    I think you have at least 3 options to play with the drive:

    1) It's Gentoo so install from scratch. You'll feel great
    if it works. It will only take you a day or two.

    2) Possibly dd the old drive to the SSD. If the new
    SSD boots as the same /dev/sdX device it should
    work, maybe, maybe not.

    3) If you have another SATA port then dual boot,
    either with Gentoo on both or something simple
    like Kubuntu. A base Kubuntu install takes about
    15 minutes and will probably give you its own
    dual boot grub config. When you're sick of Kubuntu
    you can once again install Gentoo.

    Good luck no matter what path you take.

    Mark

    <div dir="ltr">&lt;SNIP&gt;<br>&gt;<br>&gt;<br>&gt; Oh, please, don&#39;t go anywhere.  &lt;begging&gt;  We already lost the long term Alan.  BTW, I checked on him a while back.  He&#39;s still OK.  It&#39;s been a while tho. <br>&gt;<div><br></div><
    Dale - I touched - truly. I&#39;m happy to stick around but I no longer </div><div>run Gentoo and don&#39;t want to cause problems or piss off the </div><div>folks who need to be here. </div><div><br>&gt; I read during a google search that some
    distros handle this sort of thing automatically, some sort of firmware thing or something.  I figured Gentoo didn&#39;t, it rarely does since that is the point of Gentoo.  So, no harm.  Heck, I just now applied power to the thing.  I don&#39;t even
    have it partitioned or anything yet.  Just rebooted after rearranging all the cables, adding power splitter etc etc.</div><div><br></div><div>I don&#39;t know of any distros that do any of this in firmware. Maybe someone</div><div>else can address that.
    Many distros now install fstrim by default and </div><div>update crontab. The Ubuntu family does, which I didn&#39;t know before this</div><div>thread. However it is on both my Kubuntu machine and my Ubuntu</div><div>Server machine.</div><div><br></div><
    BTW - Windows does this in Disk Defragmenter but you have to </div><div>schedule it yourself according to Bard and ChatGPT. I&#39;ll be in </div><div>Windows later today to record some new music and plan to look into</div><div>that then.</div><div><
    </div><div>Answering the question from below - weekly is what was set up by </div><div>default here. If your drive isn&#39;t near full and you&#39;re not writing a lot of new</div><div>data on it each week then weekly would seem reasonable to me. </
    <div>However being that you are running Gentoo and hence compiling</div><div>lots and lots and lots of stuff every week it&#39;s possible that you </div><div>might _possibly_ want to run fstrim more often if your intermediate </div><div>files are
    going to this drive. </div><div><br></div><div><br>&gt;<br>&gt; I do have one gripe.  Why can&#39;t drive makers pick a screw size and stick to it on ALL drives?  It took some digging to find a screw that would fit.  Some I bought that are supposed
    to work on SSDs were to short.  It would likely work on a metal adapter but not a thicker plastic one.  Luckily, I found 4 screws.  No clue where they came from.  Just in my junk box.  Before this week, never laid eyes on a SSD before.  Anyone know
    the thread size and count on those things?  I want to order a few, just in case.</div><div><br></div><div>I second your gripe. I&#39;ve purchased a couple of PC builder screw </div><div>sets from Amazon.</div><div>  <br>&gt;<br>&gt; Is running fstrim
    once a week to often?  I update my OS once a week but given the amount of extra space, I&#39;d think once a month would be often enough.  After all, it is 500GB and I&#39;ll likely only use less than half of that.  Most of the extra space will be
    extra boot options like Knoppix or something.  I&#39;m just thinking it would give it a longer life.  Maybe my thinking is wrong???<br>&gt;<br>&gt; Now to play with this thing.  I got to remember what all has to be copied over so I can boot the new
    thing.  :/  Been ages since I moved a OS to another hard drive.  Maybe a reinstall would work better.  :-\<br>&gt;<br> </div><div><br></div><div>I think you have at least 3 options to play with the drive:</div><div><br></div><div>1) It&#39;s Gentoo
    so install from scratch. You&#39;ll feel great </div><div>if it works. It will only take you a day or two.</div><div><br></div><div>2) Possibly dd the old drive to the SSD. If the new </div><div>SSD boots as the same /dev/sdX device it should </div><
    work, maybe, maybe not.</div><div><br></div><div>3) If you have another SATA port then dual boot, </div><div>either with Gentoo on both or something simple </div><div>like Kubuntu. A base Kubuntu install takes about</div><div>15 minutes and will
    probably give you its own</div><div>dual boot grub config. When you&#39;re sick of Kubuntu</div><div>you can once again install Gentoo.</div><div><br></div><div>Good luck no matter what path you take.</div><div><br></div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Sun Apr 16 20:10:02 2023
    Am Sun, Apr 16, 2023 at 08:08:59AM -0700 schrieb Mark Knecht:

    If you have an SSD or nvme drive installed then fstrim should be
    installed and run on a regular basis. However it's not 'required'.

    Your system will still work, but after all blocks on the drive have
    been used for file storage and later deleted, if they are not
    written back to zeros then the next time you go to use that
    block the write will be slower as the write must first write
    zeros and then your data.

    fstrim does the write to zeros so that during normal operation
    you don't wait.

    That is not quite correct. Trimming is about the oppisite of what you say, namely to *not* rewrite areas. Flash memory can only be written to in relatively large blocks. So if your file system wants to write 4 KiB, the drive needs to read all the many kB around it (several hundreds at least, perhaps eben MiBs, I’m not certain), change the small part in question and write the whole block back. This is called write amplification. This also occurs on hard drives, for example when you run a database which uses 4 kiB datafile chunks, but on a file system with larger sectors. Then the file system is the cause for write amplification.

    If the SSD knew beforehand that the area is unused, it does not need to read it all in and then write it back. The SSD controller has no knowledge of
    file systems. And this is where trim comes in: it does know file systems, detects the unused areas and translates that info for the drive controller. Also, only trimmed areas (i.e. areas the controller knows are unused) can be used for wear leveling.

    I even think that If you read from a trimmed area, the controller does not actually read the flash device, but simply returns zeroes. This is basically what a quick erase does; it trims the entire drive, which takes only a few seconds, and then all the data has become inaccessible (unless you address
    the memory chips directly). It is similar to deleting a file: you erase its entry in the directory, but not the actual payload bytes.

    AFAIK, SMR HDDs also support trim these days, so they don’t need to do their SMR reshuffling. I have a WD Passport Ultra external 2.5″ HDD with 5 TB, and it supports trim. However, a WD Elements 2.5″ 4 TB does not. Perhaps because it is a cheaper series. Every laptop HDD of 2 (or even 1) TB is SMR.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    “It is hard to be a conquering hero when it is not in your nature.”
    – Captain Hans Geering, ’Allo ’Allo

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ8OXcACgkQizG+tUDU MMrHOQ/9H0qqUFk+TF4Me2pMfm8xdmTCyK1fXj94JcFIyGIvJjVxjoD69ObUFNmA FE+15jmAR2owavyQbQ+pSm5NoLRGhhku+4NurHf1qzVLnJqogpgj2ZDqVHuiOzxR WE9kxQCPFFCQRbjJeL35rvV+gR8CD96Us5vLDzY7B+9LiBfwl6Hu6+DczQofZfxH VcHNmsgjPuGqF6/HFDng+8v8Z4gcFayCO1a/MXyCkVc17S/Q0RuMQ2Oya8Y7VbWa 1wARUedtwHafzfqjzNL956dL7KkVNFBndN4PS93vs96H9gtU2O0rRzeeeneZOKV9 D/iuvFAVWr4Uaa3HU60iAXs2M2nlP9aixHIDH5TpgY+sSR2ZzUUgy+LArwCef+qx vE848LI5YMNKWw+/URM8tl5VdhVNAyVpTskpZMtoc4WQhMAsjnzAlWR4coe0BuH8 v/uRDnHl9VCU79VnEX9nkwlverSwsVmxCaPHzKU/E7nBInuYxj+uSA2YKXdmQnZP Dud4nugP3JKnYblllyr9S+rn0HTBWUdwApyOY4jFcAjBFIqiVwOaSygbIk/eH8qw X5nx5YtwUYuD1DwfMv/gDrcF71W2g9TCZivDNBVfmJrk7xq/PCXqVmhC5dUXm2VD Gr5csc3SA1RrNs3YDa8p8K
  • From Jorge Almeida@21:1/5 to markknecht@gmail.com on Sun Apr 16 19:50:01 2023
    On Sun, Apr 16, 2023 at 4:09 PM Mark Knecht <markknecht@gmail.com> wrote:

    Sorry for any confusion. Time to unsubscribe from this list
    I guess and leave you all to your beloved distro.

    Please don't.
    I doubt someone is pissed off with you.

    Jorge Almeida

    Bye,
    See above.
    Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to rdalek1967@gmail.com on Sun Apr 16 20:20:01 2023
    On Sun, Apr 16, 2023 at 9:55 AM Dale <rdalek1967@gmail.com> wrote:
    <SNIP>

    I think what I read is that it is done automatically. They could have
    meant a cron job. I don't think they said how, just that it is already
    set up to do it. Firmware was mentioned in the thread somewhere so I
    thought maybe that was it. Either way, fstrim is installed here. It's
    part of util-linux and that is pulled in by several packages. I doubt
    it will be going away here anytime soon given the long list of packages
    that need it. Just to set up a cron job for it. Remembering the steps
    for that will take time tho. o_O


    Hey - it's the Internet. I thought we could trust everything we read...

    <SNIP>


    I've thought of a few options myself. I sort of have a OS copy/backup already. I currently do the compiling in a chroot on a separate drive.
    I then copy the compiled packages and use the -k option to update the
    live OS. I'll continue to do that when I start booting from the SSD.
    That should limit writes and such to the SSD. I also got to rearrange
    things so I can put swap on that spare drive I compile on. I don't want
    swap on a SSD. I wish this thing would stop using swap completely. I
    have swappiness set to 1 already and it still uses swap.


    Well, that sounds like a solution to do your emerge work although
    you're limited to the speed of that hard drive. If it's done in the
    background then maybe you don't care.

    Right now, I'm debating the size of /boot. Knoppix is pretty large.
    The Gentoo LiveGUI thingy is too. So, it will have to be larger than
    the few hundred megabytes my current one is. I'm thinking 10GBs or so.
    Maybe 12GBs to make sure I'm good to go for the foreseeable future.
    They may limit them to DVD size right now but one day they could pass
    that limit by. Software isn't getting smaller. Besides, USB is the
    thing now.


    I guess I don't understand why you would put Knoppix in the boot
    partition vs somewhere else. Is this for some sort of recovery
    process you're comfortable with vs recovering from a bootable DVD?

    - Mark

    <div dir="ltr"><br><br>On Sun, Apr 16, 2023 at 9:55 AM Dale &lt;<a href="mailto:rdalek1967@gmail.com">rdalek1967@gmail.com</a>&gt; wrote:<br>&lt;SNIP&gt;<br>&gt;<br>&gt; I think what I read is that it is done automatically.  They could have<br>&gt;
    meant a cron job.  I don&#39;t think they said how, just that it is already<br>&gt; set up to do it.  Firmware was mentioned in the thread somewhere so I<br>&gt; thought maybe that was it.  Either way, fstrim is installed here.  It&#39;s<br>&gt; part
    of util-linux and that is pulled in by several packages.  I doubt<br>&gt; it will be going away here anytime soon given the long list of packages<br>&gt; that need it. Just to set up a cron job for it.  Remembering the steps<br>&gt; for that will take
    time tho.  o_O<br>&gt;<div><br></div><div>Hey - it&#39;s the Internet. I thought we could trust everything we read...</div><div><br>&lt;SNIP&gt;<br>&gt;<br>&gt;<br>&gt; I&#39;ve thought of a few options myself.  I sort of have a OS copy/backup<br>&gt;
    already.  I currently do the compiling in a chroot on a separate drive. <br>&gt; I then copy the compiled packages and use the -k option to update the<br>&gt; live OS.  I&#39;ll continue to do that when I start booting from the SSD. <br>&gt; That
    should limit writes and such to the SSD.  I also got to rearrange<br>&gt; things so I can put swap on that spare drive I compile on.  I don&#39;t want<br>&gt; swap on a SSD.  I wish this thing would stop using swap completely.  I<br>&gt; have
    swappiness set to 1 already and it still uses swap.<br>&gt;</div><div><br></div><div>Well, that sounds like a solution to do your emerge work although</div><div>you&#39;re limited to the speed of that hard drive. If it&#39;s done in the </div><div>
    background then maybe you don&#39;t care.</div><div><br>&gt; Right now, I&#39;m debating the size of /boot.  Knoppix is pretty large. <br>&gt; The Gentoo LiveGUI thingy is too.  So, it will have to be larger than<br>&gt; the few hundred megabytes my
    current one is.  I&#39;m thinking 10GBs or so. <br>&gt; Maybe 12GBs to make sure I&#39;m good to go for the foreseeable future. <br>&gt; They may limit them to DVD size right now but one day they could pass<br>&gt; that limit by.  Software isn&#39;t
    getting smaller.  Besides, USB is the<br>&gt; thing now.<br>&gt;<br> </div><div><br></div><div>I guess I don&#39;t understand why you would put Knoppix in the boot </div><div>partition vs somewhere else. Is this for some sort of recovery </div><div>
    process you&#39;re comfortable with vs recovering from a bootable DVD?</div><div><br></div><div>- Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to rdalek1967@gmail.com on Sun Apr 16 21:40:01 2023
    On Sun, Apr 16, 2023 at 11:54 AM Dale <rdalek1967@gmail.com> wrote:

    Mark Knecht wrote:
    <<< SNIP >>>
    I guess I don't understand why you would put Knoppix in the boot
    partition vs somewhere else. Is this for some sort of recovery
    process you're comfortable with vs recovering from a bootable DVD?

    - Mark

    I'm wanting to be able to boot something from the hard drive in the
    event the OS itself won't boot. The other day I had to dig around and
    find a bootable USB stick and also found a DVD. Ended up with the DVD working best. I already have memtest on /boot. Thing is, I very rarely
    use it. ;-)

    So in the scenario you are suggesting, is grub working, giving you a
    boot choice screen, and your new Gentoo install is not working so
    you want to choose Knoppix to repair whatever is wrong with
    Gentoo?

    If that's the case why shoehorn Knoppix into the boot partition
    vs just give it its own partition?

    <div dir="ltr"><br><br>On Sun, Apr 16, 2023 at 11:54 AM Dale &lt;<a href="mailto:rdalek1967@gmail.com">rdalek1967@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Mark Knecht wrote:<br>&gt; &gt; &lt;&lt;&lt; SNIP &gt;&gt;&gt;<br>&gt; &gt; I guess I don&#39;t
    understand why you would put Knoppix in the boot <br>&gt; &gt; partition vs somewhere else. Is this for some sort of recovery <br>&gt; &gt; process you&#39;re comfortable with vs recovering from a bootable DVD?<br>&gt; &gt;<br>&gt; &gt; - Mark<br>&gt;<br>
    &gt; I&#39;m wanting to be able to boot something from the hard drive in the<br>&gt; event the OS itself won&#39;t boot.  The other day I had to dig around and<br>&gt; find a bootable USB stick and also found a DVD.  Ended up with the DVD<br>&gt;
    working best.  I already have memtest on /boot.  Thing is, I very rarely<br>&gt; use it.  ;-)<br> <div><br></div><div>So in the scenario you are suggesting, is grub working, giving you a</div><div>boot choice screen, and your new Gentoo install is not
    working so</div><div>you want to choose Knoppix to repair whatever is wrong with </div><div>Gentoo? </div><div><br></div><div>If that&#39;s the case why shoehorn Knoppix into the boot partition</div><div>vs just give it its own partition? </div><div><
    </div><div><br></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to Warp_7@gmx.de on Sun Apr 16 22:30:01 2023
    Frank,
    Thank you for the in-depth explanation.

    I need to do some study before commenting further other than to say
    so far I'm finding different comments depending on whether it's
    an SSD or an M.2 drive.

    Much appreciated,
    Mark

    On Sun, Apr 16, 2023 at 11:08 AM Frank Steinmetzger <Warp_7@gmx.de> wrote:

    Am Sun, Apr 16, 2023 at 08:08:59AM -0700 schrieb Mark Knecht:

    If you have an SSD or nvme drive installed then fstrim should be
    installed and run on a regular basis. However it's not 'required'.

    Your system will still work, but after all blocks on the drive have
    been used for file storage and later deleted, if they are not
    written back to zeros then the next time you go to use that
    block the write will be slower as the write must first write
    zeros and then your data.

    fstrim does the write to zeros so that during normal operation
    you don't wait.

    That is not quite correct. Trimming is about the oppisite of what you say, namely to *not* rewrite areas. Flash memory can only be written to in relatively large blocks. So if your file system wants to write 4 KiB, the drive needs to read all the many kB around it (several hundreds at least, perhaps eben MiBs, I’m not certain), change the small part in question and write the whole block back. This is called write amplification. This also occurs on hard drives, for example when you run a database which uses 4
    kiB
    datafile chunks, but on a file system with larger sectors. Then the file system is the cause for write amplification.

    If the SSD knew beforehand that the area is unused, it does not need to
    read
    it all in and then write it back. The SSD controller has no knowledge of
    file systems. And this is where trim comes in: it does know file systems, detects the unused areas and translates that info for the drive
    controller.
    Also, only trimmed areas (i.e. areas the controller knows are unused) can
    be
    used for wear leveling.

    I even think that If you read from a trimmed area, the controller does not actually read the flash device, but simply returns zeroes. This is
    basically
    what a quick erase does; it trims the entire drive, which takes only a few seconds, and then all the data has become inaccessible (unless you address the memory chips directly). It is similar to deleting a file: you erase
    its
    entry in the directory, but not the actual payload bytes.

    AFAIK, SMR HDDs also support trim these days, so they don’t need to do their
    SMR reshuffling. I have a WD Passport Ultra external 2.5″ HDD with 5 TB, and
    it supports trim. However, a WD Elements 2.5″ 4 TB does not. Perhaps because
    it is a cheaper series. Every laptop HDD of 2 (or even 1) TB is SMR.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    “It is hard to be a conquering hero when it is not in your nature.”
    – Captain Hans Geering, ’Allo ’Allo


    <div dir="ltr"><div>Frank,</div><div>   Thank you for the in-depth explanation.</div><div><br></div><div>   I need to do some study before commenting further other than to say</div><div>so far I&#39;m finding different comments depending on whether
    it&#39;s</div><div>an SSD or an M.2 drive.</div><div><br></div><div>Much appreciated,</div><div>Mark</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 16, 2023 at 11:08 AM Frank Steinmetzger &lt;<a href="mailto:Warp_7@gmx.
    de">Warp_7@gmx.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Sun, Apr 16, 2023 at 08:08:59AM -0700 schrieb Mark Knecht:<br>

    &gt; If you have an SSD or nvme drive installed then fstrim should be<br>
    &gt; installed and run on a regular basis. However it&#39;s not &#39;required&#39;.<br>
    &gt; <br>
    &gt; Your system will still work, but after all blocks on the drive have<br> &gt; been used for file storage and later deleted, if they are not<br>
    &gt; written back to zeros then the next time you go to use that<br>
    &gt; block the write will be slower as the write must first write<br>
    &gt; zeros and then your data.<br>
    &gt; <br>
    &gt; fstrim does the write to zeros so that during normal operation<br>
    &gt; you don&#39;t wait.<br>

    That is not quite correct. Trimming is about the oppisite of what you say, <br> namely to *not* rewrite areas. Flash memory can only be written to in <br> relatively large blocks. So if your file system wants to write 4 KiB, the <br> drive needs to read all the many kB around it (several hundreds at least, <br> perhaps eben MiBs, I’m not certain), change the small part in question and <br>
    write the whole block back. This is called write amplification. This also <br> occurs on hard drives, for example when you run a database which uses 4 kiB <br>
    datafile chunks, but on a file system with larger sectors. Then the file <br> system is the cause for write amplification.<br>

    If the SSD knew beforehand that the area is unused, it does not need to read <br>
    it all in and then write it back. The SSD controller has no knowledge of <br> file systems. And this is where trim comes in: it does know file systems, <br> detects the unused areas and translates that info for the drive controller. <br>
    Also, only trimmed areas (i.e. areas the controller knows are unused) can be <br>
    used for wear leveling.<br>

    I even think that If you read from a trimmed area, the controller does not <br> actually read the flash device, but simply returns zeroes. This is basically <br>
    what a quick erase does; it trims the entire drive, which takes only a few <br> seconds, and then all the data has become inaccessible (unless you address <br> the memory chips directly). It is similar to deleting a file: you erase its <br>
    entry in the directory, but not the actual payload bytes.<br>

    AFAIK, SMR HDDs also support trim these days, so they don’t need to do their <br>
    SMR reshuffling. I have a WD Passport Ultra external 2.5″ HDD with 5 TB, and <br>
    it supports trim. However, a WD Elements 2.5″ 4 TB does not. Perhaps because <br>
    it is a cheaper series. Every laptop HDD of 2 (or even 1) TB is SMR.<br>

    -- <br>
    Grüße | Greetings | Salut | Qapla’<br>
    Please do not share anything from, with or about me on any social network.<br>

    “It is hard to be a conquering hero when it is not in your nature.”<br>
      – Captain Hans Geering, ’Allo ’Allo<br>
    </blockquote></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Mon Apr 17 00:20:01 2023
    Am Sun, Apr 16, 2023 at 01:22:32PM -0700 schrieb Mark Knecht:
    Frank,
    Thank you for the in-depth explanation.

    I need to do some study before commenting further other than to say
    so far I'm finding different comments depending on whether it's
    an SSD or an M.2 drive.

    Uhm, I think you mix up some terms here. An M.2 drive *is* an SSD
    (literally, as the name says, a solid state drive). By “SSD”, did you mean the classic laptop form factor for SATA HDDs and SSDs?

    Because M.2 is also only a physical form factor. It supports both NVMe and SATA. While NVMe is more modern and better suited for solid state media and their properties, in the end it is still only a data protocol to transfer
    data to and fro.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    „He who prefers security to freedom deserves to be a slave.“ – Aristotle

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ8c+cACgkQizG+tUDU MMq6IQ/+MqDhmGVbwUWu02hraNp+UY0OPi8SUUB6c4zJ4TTObZSXnMpvc7eqRt9G 5euathzKXjUfGTyOpEAci2pgsSXtsfhcD6g6Oerlj5/UHH06Yzrhsv42OqNCFXbX v2D+k7hGhNgthTSQQickY0JXtUb7DueKr796dPhGFa6d0ukhOWOdr91PTVIZJbCi OisHEAfcE35R97tmlzphwb2H2Gjh4ePvq4J24KVxiSIbpNkWf2FUT4cRnmhb8WEj 4uFWkw4/y3YcpKaNBPhQCRspxZw07woULj1uU9yykpF0vDwDlzb47r47zZkOxrU+ LIaNU2ft6zHNezaUBUo+lEYZNG4wDFsQMHkzug4W9lG29UN7ByDTI9lfYk3nYI4v 7AEz3LB8YEy5pP2Qd2xfkbACzxj2KeW71ug07WSFXRDkVNX1OqeZEHOq2QX/y4Tg kzjwI7rfmG0acvmBhAjllcPgUGNNJ8oP3WYeZcDDwObAPfS+kCdvxM/TUOGUZQSF JFJnx3MEv35758AjBf8UJxtKmAS/LjZhsJp5NTCHPYjc9LG/JqHcAhV/YgJSrox4 V/y3p+cV7+iKKpNxbmPoF5rZkXFuYGTZQ+UFFBvbITekB2lMJoFuyHJC+TpnGYzL h1PuNEWRaeylJmg1JCOv5SWhWON6Z4T8+4Lc1JacnQpQOcQSho8=
    =MhGJ
  • From Frank Steinmetzger@21:1/5 to All on Mon Apr 17 01:20:01 2023
    Am Sun, Apr 16, 2023 at 05:26:15PM -0500 schrieb Dale:

    I'm wanting to be able to boot something from the hard drive in the
    event the OS itself won't boot.  The other day I had to dig around and find a bootable USB stick and also found a DVD.  Ended up with the DVD working best.  I already have memtest on /boot.  Thing is, I very rarely
    use it.  ;-)

    So in the scenario you are suggesting, is grub working, giving you a
    boot choice screen, and your new Gentoo install is not working so
    you want to choose Knoppix to repair whatever is wrong with 
    Gentoo? 

    Given I have a 500GB drive, I got plenty of space.  Heck, a 10GB
    partition each is more than enough for either Knoppix or LiveGUI.  I
    could even store info on there about drive partitions and scripts that I
    use a lot.  Jeez, that's a idea. 

    Back in the day, I was annoyed that whenever I needed $LIVE_SYSTEM, I had to reformat an entire USB stick for that. In times when you don’t even get sticks below 8 GB anymore, I found it a waste of material and useful storage space.

    And then I found ventoy: https://www.ventoy.net/

    It is a mini-Bootloader which you install once to a USB device, kind-of a
    live system of its own. But when booting it, it dynamically scans the
    content of its device and creates a new boot menu from it. So you can put
    many ISOs on one device as simple files, delete them, upgrade them,
    whatever, and then you can select one to boot from. Plus, the rest of the stick remains usable as storage, unlike sticks that were dd’ed with an ISO.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    The four elements: earth, air and firewater.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ8gc0ACgkQizG+tUDU MMqIQQ/8DhMAslU770yD/3e219FcdfyDfCfAC8JLgk0UUC2Hrb47EUq1C72qLeiY Eds5jSEOwKdVtVNfoL9mGn9mk8Kfw8mY5kS3AFYY8fZ0xAy4B34m+ZJJw9wPq5CY ali1SgiexyHr+BCdGSYmndnN0q3a0jehVLYcCdblA5poPrXzxNDn266KtXEuwLwR l/s142iQ4z/WlBvIlectCCR7bKDyVxV6q8S0XwhfSiecPAUdCvjx9JKAwarb+RlQ kTVL0+vKqfIBwrVi0Ccx0HyID84XbZYX35TMQnyDuK62RIyhJ7n9NVH5hcdtjf0g s9w2kW2kcR2Jl2g5nGx6imvp6rymMBRG4eJsAiaWTWGrNu4jDZpV8pN8G3QIqp6R pYgsKw2Kc4BTjtOPmGuuyp/myZTsi/QxlnwtW8TuC3sue9tfROFepwAoEiyOuA/6 UquIpZjF5PLv8igIwpq+AeyAjJb3ibjxMjcMY3/THaNkrpm8tKQSG6datrjQS9Jx IyMZVPXONv2h8HMrXVJZvYOfHbDQDH0wpNo6SuzCITQQrgx4PvhwuLfsaMDi1CiH q6BFOs8xG6o5aRwagr3qFaCFAX0fH1caCiklj+Op7gVEgZjAs14qzpGcHJoQUwfa 6rD5eKRw/Zr4w1xd9LD+qtoqodsL0s0jJSMj+pyjIcBZefiN9fE=
    =OOjM
    -----END PGP SIGNATURE-----

    --
  • From Mark Knecht@21:1/5 to Warp_7@gmx.de on Mon Apr 17 02:40:01 2023
    On Sun, Apr 16, 2023 at 3:18 PM Frank Steinmetzger <Warp_7@gmx.de> wrote:

    Am Sun, Apr 16, 2023 at 01:22:32PM -0700 schrieb Mark Knecht:
    Frank,
    Thank you for the in-depth explanation.

    I need to do some study before commenting further other than to say
    so far I'm finding different comments depending on whether it's
    an SSD or an M.2 drive.

    Uhm, I think you mix up some terms here. An M.2 drive *is* an SSD
    (literally, as the name says, a solid state drive). By “SSD”, did you mean
    the classic laptop form factor for SATA HDDs and SSDs?

    Because M.2 is also only a physical form factor. It supports both NVMe and SATA. While NVMe is more modern and better suited for solid state media
    and
    their properties, in the end it is still only a data protocol to transfer data to and fro.


    No, I don't believe I've mixed them up but if you see something I'm wrong
    about
    let me know.

    When I speak of SSDs I do mean devices that are marketed as SSDs &
    probably use SATA.

    When I speak of M.2 I mean what you and I both call M.2.

    While SSD & M.2 are both Flash devices they don't provide the same info
    when queried by smartctl which makes a direct comparison more
    difficult.

    Depending on the manufacturer & the foundry they build the chips in the technologies in these devices can be quite different independent of whether they are M.2 or SSD.

    1) Dale's Samsung 870 EVO - V-NAND TLC (8-bits/cell) and 600TB written
    2) My Crucial 1TB M.2 is QLC (16 bits/cell) and 450TB written
    3) My Sabrent 1TB M.2 is TLC (8 bits/cell) and 700TB written
    4) My Crucial 250GB is unknown because Crucial sells 5 versions
    that come from different fabs and have different specs.

    All 4 drives are warranted for 5 years or hitting the TB written value.

    All 4 drives have 16K page sizes.

    That said, I've been using the Crucial on my Kubuntu dual boot for over a
    year and only have 28TB written so I'm a long way from the 450TB spec and likely won't come close in 5 years. (If I'm even still using this machine.)

    On the Windows side which I use far less I've only written about 2TB total.

    In my case the workloads are generally fairly large files. They are
    generally
    either 24MB photo files for astrophotography or audio recording files which
    are typically 50-100K. Neither of them are 'modified' and need to be
    rewritten. They are either saved or deleted.

    Whether the write amplification makes a difference or not in real life
    I don't know. I'm sure for some work loads it does but the 'percent
    used' value that smartctl returns is 2% for the Crucial and 0% for
    the Sabrent so both appear to have a lot of life left in them.

    Mark

    <div dir="ltr"><br><br>On Sun, Apr 16, 2023 at 3:18 PM Frank Steinmetzger &lt;<a href="mailto:Warp_7@gmx.de">Warp_7@gmx.de</a>&gt; wrote:<br>&gt;<br>&gt; Am Sun, Apr 16, 2023 at 01:22:32PM -0700 schrieb Mark Knecht:<br>&gt; &gt; Frank,<br>&gt; &gt;  
    Thank you for the in-depth explanation.<br>&gt; &gt;<br>&gt; &gt;    I need to do some study before commenting further other than to say<br>&gt; &gt; so far I&#39;m finding different comments depending on whether it&#39;s<br>&gt; &gt; an SSD or an M.2
    drive.<br>&gt;<br>&gt; Uhm, I think you mix up some terms here. An M.2 drive *is* an SSD<br>&gt; (literally, as the name says, a solid state drive). By “SSD”, did you mean<br>&gt; the classic laptop form factor for SATA HDDs and SSDs?<br>&gt;<br>&gt;
    Because M.2 is also only a physical form factor. It supports both NVMe and<br>&gt; SATA. While NVMe is more modern and better suited for solid state media and<br>&gt; their properties, in the end it is still only a data protocol to transfer<br>&gt; data
    to and fro.<br>&gt;<div><br></div><div>No, I don&#39;t believe I&#39;ve mixed them up but if you see something I&#39;m wrong about</div><div>let me know.</div><div><br></div><div>When I speak of SSDs I do mean devices that are marketed as SSDs &amp; </
    <div>probably use SATA. </div><div><br></div><div>When I speak of M.2 I mean what you and I both call M.2.</div><div><div><br class="gmail-Apple-interchange-newline">While SSD &amp; M.2 are both Flash devices they don&#39;t  provide the same info <
    /div><div>when queried by smartctl which makes a direct comparison more</div></div><div>difficult.</div><div><br></div><div>Depending on the manufacturer &amp; the foundry they build the chips in the</div><div>technologies in these devices can be quite
    different independent of whether</div><div>they are M.2 or SSD.</div><div><br></div><div>1) Dale&#39;s Samsung 870 EVO - V-NAND TLC (8-bits/cell) and 600TB written</div><div>2) My Crucial 1TB M.2 is QLC (16 bits/cell) and 450TB written</div><div>3) My
    Sabrent 1TB M.2 is TLC (8 bits/cell) and 700TB written</div><div>4) My Crucial 250GB is unknown because Crucial sells 5 versions</div><div>that come from different fabs and have different specs.</div><div><br></div><div>All 4 drives are warranted for 5
    years or hitting the TB written value.</div><div><br></div><div>All 4 drives have 16K page sizes. </div><div><br></div><div>That said, I&#39;ve been using the Crucial on my Kubuntu dual boot for over a </div><div>year and only have 28TB written so I&#
    39;m a long way from the 450TB spec and</div><div>likely won&#39;t come close in 5 years. (If I&#39;m even still using this machine.)</div><div><br></div><div>On the Windows side which I use far less I&#39;ve only written about 2TB total.</div><div><br></
    <div>In my case the workloads are generally fairly large files. They are generally</div><div>either 24MB photo files for astrophotography or audio recording files which</div><div>are typically 50-100K. Neither of them are &#39;modified&#39; and need
    to be </div><div>rewritten. They are either saved or deleted.</div><div><br></div><div>Whether the write amplification makes a difference or not in real life </div><div>I don&#39;t know. I&#39;m sure for some work loads it does but the &#39;percent</
    <div>used&#39; value that smartctl returns is 2% for the Crucial and 0% for</div><div>the Sabrent so both appear to have a lot of life left in them.</div><div><br></div><div>Mark<br><br></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wols Lists@21:1/5 to Dale on Mon Apr 17 11:50:01 2023
    On 17/04/2023 02:14, Dale wrote:
    My current install is over a decade old.  My /boot partition is about 375MBs.  I should have made it larger but at the time, I booted CD/DVD
    media when needed.  I didn't have USB sticks at the time.  This time, I plan to make some changes.  If I put Knoppix and/or Gentoo LiveGUI in
    /boot, it will be larger.  Much larger.  Mark's idea is best tho.  If I can get Grub to work and boot it.

    If you dd your boot partition across, you can copy it into a larger
    partition on the new drive, and then just expand the filesystem.

    So changing partition sizes isn't a problem if you want to just copy
    your system drive onto a new disk.

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to antlists@youngman.org.uk on Mon Apr 17 19:50:01 2023
    On Mon, Apr 17, 2023 at 2:41 AM Wols Lists <antlists@youngman.org.uk> wrote:

    On 17/04/2023 02:14, Dale wrote:
    My current install is over a decade old. My /boot partition is about 375MBs. I should have made it larger but at the time, I booted CD/DVD media when needed. I didn't have USB sticks at the time. This time, I plan to make some changes. If I put Knoppix and/or Gentoo LiveGUI in /boot, it will be larger. Much larger. Mark's idea is best tho. If I
    can get Grub to work and boot it.

    If you dd your boot partition across, you can copy it into a larger
    partition on the new drive, and then just expand the filesystem.

    So changing partition sizes isn't a problem if you want to just copy
    your system drive onto a new disk.

    Cheers,
    Wol

    I'm not sure I'd use dd in this case. If he's moving from an HDD with
    a 4K block size and a 4K file system block size to an SDD with a 16K
    physical block size he might want to consider changing the filesystem
    block size to 16K which should help on the write amplification side.

    Maybe dd can do that but I wouldn't think so.

    And I don't know that formatting ext4 or some other FS to 16K
    really helps the write amplification issue but it makes sense to
    me to match the file system blocks to the underlying flash
    block size. Real speed testing would be required to ensure reading
    16K blocks doesn't slow him down though.

    Just a thought,
    Mark

    <div dir="ltr"><br><br>On Mon, Apr 17, 2023 at 2:41 AM Wols Lists &lt;<a href="mailto:antlists@youngman.org.uk">antlists@youngman.org.uk</a>&gt; wrote:<br>&gt;<br>&gt; On 17/04/2023 02:14, Dale wrote:<br>&gt; &gt; My current install is over a decade
    old.  My /boot partition is about<br>&gt; &gt; 375MBs.  I should have made it larger but at the time, I booted CD/DVD<br>&gt; &gt; media when needed.  I didn&#39;t have USB sticks at the time.  This time, I<br>&gt; &gt; plan to make some changes. 
    If I put Knoppix and/or Gentoo LiveGUI in<br>&gt; &gt; /boot, it will be larger.  Much larger.  Mark&#39;s idea is best tho.  If I<br>&gt; &gt; can get Grub to work and boot it.<br>&gt;<br>&gt; If you dd your boot partition across, you can copy it
    into a larger<br>&gt; partition on the new drive, and then just expand the filesystem.<br>&gt;<br>&gt; So changing partition sizes isn&#39;t a problem if you want to just copy<br>&gt; your system drive onto a new disk.<br>&gt;<br>&gt; Cheers,<br>&gt; Wol<
    <br></div><div>I&#39;m not sure I&#39;d use dd in this case. If he&#39;s moving from an HDD with</div><div>a 4K block size and a 4K file system block size to an SDD with a 16K </div><div>physical block size he might want to consider changing the
    filesystem </div><div>block size to 16K which should help on the write amplification side.</div><div><br></div><div>Maybe dd can do that but I wouldn&#39;t think so.</div><div><br></div><div>And I don&#39;t know that formatting ext4 or some other FS to
    16K </div><div>really helps the write amplification issue but it makes sense to</div><div>me to match the file system blocks to the underlying flash</div><div>block size. Real speed testing would be required to ensure reading</div><div>16K blocks doesn&
    #39;t slow him down though.</div><div><br></div><div>Just a thought,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Tue Apr 18 10:10:01 2023
    Am Mon, Apr 17, 2023 at 10:45:46AM -0700 schrieb Mark Knecht:

    And I don't know that formatting ext4 or some other FS to 16K
    really helps the write amplification issue but it makes sense to
    me to match the file system blocks to the underlying flash
    block size.

    The problem is finding out the write block size. This 7-year-old post says it’s reached 16 K: https://superuser.com/questions/976257/page-sizes-ssd

    So I would say don’t bother. If everything is trimmed, there is no amplification. And if the disk becomes full and you get WA when writing itsy-bitsy 4 K files, you probably still won’t notice much difference, as random 4 K writes are slow anyways and how often do you write thousands of
    4 K files outside of portage?

    Erase block sizes probably go into the megabytes these days: https://news.ycombinator.com/item?id=29165202

    Some more detailed explanation:
    https://spdk.io/doc/ssd_internals.html
    “For each erase block, each bit may be written to (i.e. have its bit
    flipped from 0 to 1) with bit-granularity once. In order to write to the
    erase block a second time, the entire block must be erased (i.e. all bits
    in the block are flipped back to 0).”

    This sounds like my initial statement was partially wrong – trimming does cause writing zeroes, because that’s what an erase does. But it still prevents write amplification (and one extra erase cycle) because
    neighbouring blocks don’t need to be read and written back.

    Real speed testing would be required to ensure reading
    16K blocks doesn't slow him down though.

    Here are some numbers and a conclusion gathered from a read test: https://superuser.com/questions/728858/how-to-determine-ssds-nand-erase-block-size

    Unless I positively need the speed for high-performance computing, I’d rather keep the smaller granularity for more capacity at low file sizes.

    A problem is what some call “parts lottery” these days: manufacturers promise some performance on the data sheet (“up to xxx”), but not with which
    parts they want to achieve this (types of flash chips, TLC/QLC, controller, DRAM and so on). Meaning during the lifetime of a product, its internals may change and as a consequence those specs are not in the data sheet:

    https://unix.stackexchange.com/questions/334804/is-there-a-way-to-find-out-ssd-page-size-on-linux-unix-what-is-physical-block
    “There is no standard way for a SSD to report its page size or erase block
    size. Few if any manufacturers report them in the datasheets. (Because
    they may change during the lifetime of a SKU, for example because of
    changing suppliers.)
    For practical use just align all your data structures (partitions, payload
    of LUKS containers, LVM logical volumes) to 1 or 2 MiB boundaries. It's an
    SSD after all--it is designed to cope with usual filesystems, such as NTFS
    (which uses 4 KiB allocation units).”

    --
    Grüße | Greetings | Qapla’
    Please do not share anything from, with or about me on any social network.

    The worst disease is indifference. So what?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ+TucACgkQizG+tUDU MMrrzQ/+K1DqgK7vv814CAOrPTEPzzBbs5ioySdpWinvIA+Je8YR7Iq1GSZjQcNJ Nho+V6ZWSDzfmDES4ZYwMWiMXECmiTnzd7xD1NY1c5KOXgtR+1sJUXK0WAjUoEDi SONH4pqyarwscLy/w6xSoOfHJuTqw27VOrL5kIg27nKUBrhzWqc+D61/rG+6F9aZ MbrRk+T9ppBeCNdSydlD3v6n99OwWCbqfK4FlbnevPGASfALxJn13RhKNzjSoiBH MdAGta4yjRcA6woPaGWpdejw9XJeY22wB9c8uK6nDeFPTMeejIRDOmavVxl+vStM bZ3CFjEANU5Pp2N7IiS9wESKM9QIZLn/+1UsxD8+2w+Ypc22wYzyHmXAb2+55Nfn MMaEBlLA9Yz3+KepQ/XVgOonIsNqVFUTnYGOve+L19eWA9OKTWGnzWJ2hjEtYAyM TEA95rlpbiy6hPHDT+kyJ88w8zv53sMbeWvC3HdeNpFgZ7+W++a2WIWSIQFyUFxI 4vnsey4CsnR/uoZgNaCKqPyjHKNAbUCDTnV5w+XWEk7bxHbEetp3O87iDSWJBfH8 lFAztutAj62QdEwZP7W6zD8iLa/OPulGjND3PqahtEUvB7cXWNbxqQszriJ+hCPf KYDZc8jthUloEn2m3WP/Csg2+CalJr235W0tSc/M21T2gcHIc3w=
    =jnx6
    -----END PGP SIGNATURE-----

    --- SoupGat