View Single Post
Staro 17.04.2021., 10:55   #1143
tomek@vz
Premium
Moj komp
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 4,808
Citiraj:
Autor Ivo_Strojnica Pregled postova
Evo mene opet:
Za vikend sam odlučija malo se poigrati sa linuxom, prebacija se potpuno na NVME (A2000) + btrfs.
Uglavnom, koristim uredno komp i odjednom - freeze. katkad po nekoliko sekundi, katkad nekoliko minuta.
Mislim se sigurno je disk neispravan, kontroler ne radi, no idem vidjeti statse - sve ok, nema bad read/write poruka...

Na kraju iša čitati btrfs dokumentaciju i slagati mount opcije...
Uglavnom, glavni krivac mi je parametar "discard".
Stavio sam "discard=async" i sada mi uredno radi sustav.
Valjda će još nekome pomoći da ne gubi živce ko ja.
Cijeli fstab:
UUID=<blabla> / btrfs defaults,subvol=@,ssd,noatime,discard=async,space_cache,commit=120,compress=zstd:1 0 0

Na BTRFS-u nemoj discard koristiti:


Citiraj:
Copy-on-write means that allocated blocks are not overwritten – instead, when a data block in a file changes, a new block is allocated with the new data and the file is updated to refer to the new block instead of the original one. When the old block is no longer referenced by any part of the file system, it is freed. Copy-on-write does not mean that no blocks are ever freed.
The discard option just tells Btrfs to report free blocks to the underlying device. Btrfs already keeps track of which blocks are free, and reporting this information to the underlying device won't affect copy-on-write behaviour.
__________________
Lenovo LOQ 15AHP9 83DX || AMD Ryzen 5 8645HS / 16GB DDR5 / Micron M.2 2242 1TB / nVidia Geforce RTX 4050 / Windows 11 Pro
Lenovo Thinkpad L15 Gen 1 || Intel Core i5 10210U / 16GB DDR4 / WD SN730 256GB / Intel UHD / Fedora Workstation 42
tomek@vz je online   Reply With Quote