Jump to content


Photo

SSD Trim


  • Please log in to reply
22 replies to this topic

#1 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 4 January 2024 - 20:13

SSD in een Enigma 2 ontvanger, moet ik iets doen om Trim actief te maken, staat dit standaard aan, wanneer wordt het dan uitgevoerd.

E.v.t een plug-in, als die bestaat.


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #2 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 5 January 2024 - 06:23

enigma2-plugin-systemplugins-mountmanager

press menu-->press green

Start trim manually.


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: SSD Trim #3 adri

  • Senior Member
  • 373 posts

+5
Neutral

Posted 5 January 2024 - 08:37

If the SSD is formatted as EXT4, you can add the following to /etc/fstab:

/dev/sda1               /media/hdd      ext4            rw,noatime,discard,data=ordered         1  2

The option noatime prevents updating the access time for each file.

The option discard actives the automatic trim.

The option data=ordered disables the EXT4 journal, which will cause excessive writing, but still trying to maintain file system integrity in case of an unexpected crash.



Re: SSD Trim #4 WanWizard

  • PLi® Core member
  • 70,554 posts

+1,813
Excellent

Posted 5 January 2024 - 15:17

In general using fstab isn't a good idea, and in many cases, using discard isn't either, as you can't control when the SSD decides to spend time trimming instead of servicing I/O requests. This might be a bad thing when writing time critical data that can't be buffered, like recordings.

 

It is probably better / safer to schedule an fstrim once a week, for example in the night or early morning. It might not even be a bad idea to add this to the image by default, as it is a no-op for devices without TRIM support, and more and more people use SSD's.

 

Alternatively, the udev automounter can add "discard" to the mount options when it detects a non-rotational ATA device formatted in ext4. I see it already adds "noatime" that way.


Edited by WanWizard, 5 January 2024 - 15:27.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: SSD Trim #5 Loui (PD1LOI)

  • Senior Member
  • 4,620 posts

+146
Excellent

Posted 19 January 2024 - 10:58

If the SSD is formatted as EXT4, you can add the following to /etc/fstab:

/dev/sda1               /media/hdd      ext4            rw,noatime,discard,data=ordered         1  2

The option noatime prevents updating the access time for each file.

The option discard actives the automatic trim.

The option data=ordered disables the EXT4 journal, which will cause excessive writing, but still trying to maintain file system integrity in case of an unexpected crash.

Een vraag hierover, ik heb een bestaande ssd die alweer redelijk vol is. wat is de beste manier om deze te trimmen zeg maar net als in windows schijfcontrole te doen?



Re: SSD Trim #6 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 19 January 2024 - 11:13

Dat heeft @Drimitrij hierboven toch al gezegd?


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: SSD Trim #7 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 19 January 2024 - 11:16

fstrim kan ook nog, dus iets als

 fstrim -v /media/hdd

 


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: SSD Trim #8 adri

  • Senior Member
  • 373 posts

+5
Neutral

Posted 19 January 2024 - 16:29

 

If the SSD is formatted as EXT4, you can add the following to /etc/fstab:

/dev/sda1               /media/hdd      ext4            rw,noatime,discard,data=ordered         1  2

The option noatime prevents updating the access time for each file.

The option discard actives the automatic trim.

The option data=ordered disables the EXT4 journal, which will cause excessive writing, but still trying to maintain file system integrity in case of an unexpected crash.

Een vraag hierover, ik heb een bestaande ssd die alweer redelijk vol is. wat is de beste manier om deze te trimmen zeg maar net als in windows schijfcontrole te doen?

 

De beste optie is om eerst handmatig fstrim vanuit een ssh sessie te draaien.

Daarna kun je ervoor kiezen om een scheduled task aan te maken of de discard optie in /etc/fstab toe te voegen.



Re: SSD Trim #9 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 19 January 2024 - 18:45

Nogmaals fstab beter niet gebruiken, het heeft alleen nut als je om specifieke redenen vroeg in het boot proces wil mounten, mocht er iets mis gaan met de mount kun je ca. 20 minuten wachten op een time-out.


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: SSD Trim #10 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 19 January 2024 - 18:52

Waarom doet Linux zelf niets met een SSD om degradatie tegen te gaan, hij herkent een SSD toch vanzelf, dus ....


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #11 WanWizard

  • PLi® Core member
  • 70,554 posts

+1,813
Excellent

Posted 19 January 2024 - 19:38

Omdat de implementatie van TRIM niet door alle SSD's ondersteund wordt, er hele series  zijn van SSD's die TRIM wel ondersteunen maar slecht of fout, en er zijn SSD's die het intern beter geregeld hebben.

 

En derhalve is het een gebruikerskeuze, gebaseerd op de SSD die gekocht is.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: SSD Trim #12 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 19 January 2024 - 20:04

login as: root
root@192.168.1.23's password:**********
root@vuduo4kse:~# fstrim -v /media/hdd
/media/hdd: 468312399872 bytes trimmed
root@vuduo4kse:~#

Werkt dus goed, zou je dit vanaf de ontvanger ook kunnen, e.v.t met een plugin of zo, kan iemand dit maken.


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #13 catastrofus

  • Senior Member
  • 3,480 posts

+43
Good

Posted 19 January 2024 - 20:11

cronjob maken voor dit?


2 x vu+ultimo4k ((nb & 9.0r) dvb-c fbc + 1 dvb-s2) + een vu+duo4k ((nb) fallbackclient) met een Synology ds214+ (2 x 6 TB) op DSM 7.1.1 in ziggo oost (voormalig @Home) + A1/A2/A3/HB (TechniSat)
 


Re: SSD Trim #14 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 20 January 2024 - 17:34

login as: root
root@192.168.1.23's password:*********
root@vuduo4kse:~# fstrim -v /media/hdd
/media/hdd: 468312399872 bytes trimmed
root@vuduo4kse:~#

Werkt dus goed, zou je dit vanaf de ontvanger ook kunnen, e.v.t met een plugin of zo, kan iemand dit maken.

 

 

 

enigma2-plugin-systemplugins-mountmanager

press menu-->press green

Start trim manually.


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: SSD Trim #15 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 20 January 2024 - 19:50

 

login as: root
root@192.168.1.23's password:*********
root@vuduo4kse:~# fstrim -v /media/hdd
/media/hdd: 468312399872 bytes trimmed
root@vuduo4kse:~#

Werkt dus goed, zou je dit vanaf de ontvanger ook kunnen, e.v.t met een plugin of zo, kan iemand dit maken.

 

 

 

enigma2-plugin-systemplugins-mountmanager

press menu-->press green

Start trim manually.

 

Hokido, let's trim ... ;)


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #16 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 24 January 2024 - 20:23

Cronjob ( fstrim -v /media/hdd )aangemaakt (dagelijks), hoe controleer ik dan of dit werkt,


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #17 WanWizard

  • PLi® Core member
  • 70,554 posts

+1,813
Excellent

Posted 24 January 2024 - 20:56

fstrim -v /media/hdd | logger

schrijft de output naar /var/log/messages


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: SSD Trim #18 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 24 January 2024 - 22:57

Morgen een checken ;)


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #19 pgmpli

  • Senior Member
  • 665 posts

+24
Neutral

Posted 25 January 2024 - 11:31

Dit staat er,

 

Jan 25 11:28:01 vuduo4kse cron.info CROND[3684]: (root) CMD (fstrim -v /media/hdd)
Jan 25 11:28:01 vuduo4kse cron.info CROND[3683]: (root) CMDOUT (/bin/sh: line 1: fstrim: command not found)
Jan 25 11:28:01 vuduo4kse cron.info CROND[3683]: (root) CMDEND (fstrim -v /media/hdd)
Jan 25 11:28:01 vuduo4kse authpriv.info CROND[3683]: pam_unix(crond:session): session closed for user root

 

Jullie advies,


Vu+ DUO 4K - 1x FBC DUAL DVB-S2X v2 tuner + 1x VU+ FBC DVB-C v2 tuner + 1 x Hauppauge Dual Tuner USB DVB-C / DVB-T  --  Vu+ Ultimo 4K - 2x FBC DUAL DVB-S2X v2 tuner + 1 x VU+ DVB-C/T/T2 DUAL (TWIN) tuner + 1 x VU+ Turbo USB DVB-C/T2 Hybrid Tuner -- 2 x Triple LNB  :)


Re: SSD Trim #20 WanWizard

  • PLi® Core member
  • 70,554 posts

+1,813
Excellent

Posted 25 January 2024 - 11:37

Aannemende dat fstrim wel op de box staat ( als je het zelf uitvoert werkt het dan wel? ) zal het wel zijn omdat cron geen PATH heeft.

 

In welk geval het dit moet worden:

/sbin/fstrim -v /media/hdd | logger

 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users