All things Linux

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6911
Credit: 9847997906
RAC: 4358215

Ian&Steve C. wrote: Ubuntu

Ian&Steve C. wrote:

Ubuntu trims automatically every week.

Ah.

A Proud member of the O.F.A.  (Old Farts Association).

Jimbocous
Jimbocous
Joined: 31 Mar 17
Posts: 72
Credit: 1387453763
RAC: 1896963

Easy to tell what the deal

Easy to tell what the deal is:

systemctl status fstrim.timer

mikey
mikey
Joined: 22 Jan 05
Posts: 12967
Credit: 1884538703
RAC: 13157

Ian&Steve C. wrote: Ubuntu

Ian&Steve C. wrote:

Ubuntu trims automatically every week. 

What's the Windows equivalent and does it also do it every week?

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6911
Credit: 9847997906
RAC: 4358215

mikey wrote:Ian&Steve C.

mikey wrote:

Ian&Steve C. wrote:

Ubuntu trims automatically every week. 

What's the Windows equivalent and does it also do it every week?

I googled this. And if the AI is right then trimming is done every time a file is deleted. And then when the SSD garbage collection runs the blocks are made available again? So I looked some more.

xxx edit xxx

Here is a more extended explanation 

https://www.techtarget.com/searchstorage/definition/TRIM#:~:text=SSD%20TRIM%20is%20complementary%20to,the%20life%20of%20the%20SSD.

Here is what I now think is going on. So windows marks a file as deleted but the blocks are still allocated. Trim de-allocates the blocks of the deleted file. When garbage collection runs it doesn't move any of the deleted file because the blocks have been deallocated. This reduces the number   of read/write cycles during garbage collection and extends the life of the SSD.

 

 

A Proud member of the O.F.A.  (Old Farts Association).

Jimbocous
Jimbocous
Joined: 31 Mar 17
Posts: 72
Credit: 1387453763
RAC: 1896963

Windows equivalent here,

Windows equivalent here, without the annoying email fish routine:

fsutil behavior query DisableDeleteNotifyExecuting "fsutil behavior query DisableDeleteNotify" from a command line you should get a result of zero (0). This means that TRIM is enabled, and no further action is required.

Note that to verify this in Windows Drive-> Properties > Tools -> Optimize the drive should be described as Media Type "Solid state drive". This tells you that Windows will not be racking up writes trying to optimize (defrag) files,

 

 

 

 

 

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6911
Credit: 9847997906
RAC: 4358215

Jimbocous wrote: Windows

Jimbocous wrote:

Windows equivalent here, without the annoying email fish routine:

fsutil behavior query DisableDeleteNotifyExecuting "fsutil behavior query DisableDeleteNotify" from a command line you should get a result of zero (0). This means that TRIM is enabled, and no further action is required.

Note that to verify this in Windows Drive-> Properties > Tools -> Optimize the drive should be described as Media Type "Solid state drive". This tells you that Windows will not be racking up writes trying to optimize (defrag) files,

+42

A Proud member of the O.F.A.  (Old Farts Association).

mikey
mikey
Joined: 22 Jan 05
Posts: 12967
Credit: 1884538703
RAC: 13157

Jimbocous wrote: Windows

Jimbocous wrote:

Windows equivalent here, without the annoying email fish routine:

fsutil behavior query DisableDeleteNotifyExecuting "fsutil behavior query DisableDeleteNotify" from a command line you should get a result of zero (0). This means that TRIM is enabled, and no further action is required.

Note that to verify this in Windows Drive-> Properties > Tools -> Optimize the drive should be described as Media Type "Solid state drive". This tells you that Windows will not be racking up writes trying to optimize (defrag) files,

 

Thank you very much, I think I have one drive that is NOT listed as an SSD drive but in fact is one and that's why it's running and nearly 100% over 80% of the time!! I'm going to upgrade it to Win11 soon so hopefully that will fix the problem, if not I will stick a different drive in there!

 

 

 

Risky64
Risky64
Joined: 1 Feb 25
Posts: 30
Credit: 87589
RAC: 3777

lscpu Architecture:          

lscpu
Architecture:           x86_64
  CPU op-mode(s):       32-bit, 64-bit
  Address sizes:        36 bits physical, 48 bits virtual
  Byte Order:           Little Endian
CPU(s):                 8
  On-line CPU(s) list:  0-7
Vendor ID:              GenuineIntel
  Model name:           Intel(R) Core(TM) i7 CPU         870  @ 2.93GHz
    CPU family:         6
    Model:              30
    Thread(s) per core: 2
    Core(s) per socket: 4
    Socket(s):          1
    Stepping:           5
    BogoMIPS:           6173,87
    Flags:              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat 
                        pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdts
                        cp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology n
                        onstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 
                        ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ib
                        pb stibp dtherm flush_l1d
Caches (sum of all):    
  L1d:                  128 KiB (4 instances)
  L1i:                  128 KiB (4 instances)
  L2:                   1 MiB (4 instances)
  L3:                   8 MiB (1 instance)
 

What about using sse3 or SSE4_2 ?  Every new intel, and AMD CPU has it.

 

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6911
Credit: 9847997906
RAC: 4358215

Risky64 wrote:What about

Risky64 wrote:

What about using sse3 or SSE4_2 ?  Every new intel, and AMD CPU has it.

Two questions.

1) If a CPU doesn't have those does the task fail soft or die with a computation error?

2) What software development brings the most benefit to the project? And the related question what software can enjoy the widest use by volunteers?

All that said, the anonymous platform allows individuals, teams and groups to write code to solve the same task as the baseline programs, that may run faster or use less resources.

I am aware of such efforts and use them.

A Proud member of the O.F.A.  (Old Farts Association).

San-Fernando-Valley
San-Fernando-Valley
Joined: 16 Mar 16
Posts: 570
Credit: 10968666128
RAC: 7530025

+1

+1

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.