BTRFS su openssue leap 42.1

dogma

Utente Attivo
676
13
vorrei finalmente passare a questo benedetto file system, con opensuse.
quindi prima cosa chiedo se gira bene o da casini.
seconda cosa, devo settare qualcosa per ottimizzare l'ssd o pensa a tutto BTRFS ? e nel caso, basta che mi tengo i vecchi setting che avevo fatto su kubuntu, o derivando da parti diverse, la procedura cambia ?
 

rebellion

Utente Èlite
1,593
506
CPU
intel i5 9500
Dissipatore
cooler master hyper 212 evo
Scheda Madre
asrock b360 pro4
HDD
samsung 850evo 250GB+samsung 840pro 128GB+seagate barracuda 2TB+seagate barracuda 2TB
RAM
corsair vengeance lpx ddr4 2133MHz 2x4GB CL13
GPU
integrata intel hd graphics 630
Audio
integrata
Monitor
samsung ue55mu6500u
PSU
xfx pro series 550w core edition
Case
mastercooler
OS
archlinux x64 + gnome3.34.1 && windows10 pro x64
leap 42.1 fa il trim programmato con un cron settimanale.
io per ora non ho fatto alcuna modifica una volta installato su ssd con btrfs, mi sto documentando sull'opportunità di usare l'opzione compress=lzo.
 

EmanueleC

Utente Èlite
5,636
1,841
CPU
Ryzen 5 2600x
Dissipatore
stock
Scheda Madre
ROG STRIX B450-F GAMING
HDD
OS: WD BLue SN570 500GB, Dati: 1TB Toshiba p300, Game: 2TB Toshiba P300
RAM
Corsair DDR4 3000 Mhz 2x8 GB
GPU
AMD Radeon RX 6600
PSU
Seasonic Focus Gold 450W
Case
BitFenix Neos
OS
Fedora Linux
vorrei finalmente passare a questo benedetto file system, con opensuse.
quindi prima cosa chiedo se gira bene o da casini.
seconda cosa, devo settare qualcosa per ottimizzare l'ssd o pensa a tutto BTRFS ? e nel caso, basta che mi tengo i vecchi setting che avevo fatto su kubuntu, o derivando da parti diverse, la procedura cambia ?

btrfs è stabile, io lo uso da 2 anni circa, su hard disk meccanico. Su l'ssd, puoi ottimizzarlo un pò, di default abilita in automatico l'ottimizzazione su SSD, che è il comando: ssd:
ssd
Turn on some of the SSD optimized behaviour within btrfs. This is enabled automatically by checking /sys/block/sdX/queue/rotational to be zero. This does not enable discard/TRIM!
Per altre ottimizzazioni, li devi fare manualmente, aggiungendo i comandi al file: /etc/fstab. Per l'SSd, il mio consiglio è: compress=lzo,dsicard,noatime.

Ti elenco cosa fanno le varie opzioni che ho messo:
discard:
Enables discard/TRIM on freed blocks. This can decrease performance on devices that do not support queued TRIM command, like SATA prior to revision 3.1. Alternatively, you can run fstrim command periodically.


compress,compress-force
Enable compression. Starting with kernel 2.6.38 you can choose the algorithm for compression:
  • compress=zlib - Better compression ratio. It's the default and safe for olders kernels.
  • compress=lzo - Faster compression.
  • compress=no - Disables compression (starting with kernel 3.6).
compress-force=<method> - Enable compression even for files that don't compress well, like videos and dd images of disks. The options compress-force=zlib and compress-force=lzo works for kernels >2.6.38.
Note that old (before 2012) btrfs-progs versions will probably fail some operations (e.g. fsck) on filesystems with LZO compression.
[h=3]Performance[/h]
  • noatime - as discussed in the mailing list noatime mount option might speed up your file system, especially in case you have lots of snapshots. Each read access to a file is supposed to update its unix access time. COW will happen and will make even more writes. Default is now relatime which updates access times less often (see: http://kerneltrap.org/node/14148).
Note that noatime will break some applications like the venerable mutt (unless you use Maildir mailboxes).

Fonte: https://btrfs.wiki.kernel.org/index.php/Mount_options
 

rebellion

Utente Èlite
1,593
506
CPU
intel i5 9500
Dissipatore
cooler master hyper 212 evo
Scheda Madre
asrock b360 pro4
HDD
samsung 850evo 250GB+samsung 840pro 128GB+seagate barracuda 2TB+seagate barracuda 2TB
RAM
corsair vengeance lpx ddr4 2133MHz 2x4GB CL13
GPU
integrata intel hd graphics 630
Audio
integrata
Monitor
samsung ue55mu6500u
PSU
xfx pro series 550w core edition
Case
mastercooler
OS
archlinux x64 + gnome3.34.1 && windows10 pro x64
@lele.deb ho visto che opensuse 42.1 ha un cron settimanale nel quale fa il trim, non ci dovrebbe essere bisogno dell'opzione discard o mi sbaglio?
 

EmanueleC

Utente Èlite
5,636
1,841
CPU
Ryzen 5 2600x
Dissipatore
stock
Scheda Madre
ROG STRIX B450-F GAMING
HDD
OS: WD BLue SN570 500GB, Dati: 1TB Toshiba p300, Game: 2TB Toshiba P300
RAM
Corsair DDR4 3000 Mhz 2x8 GB
GPU
AMD Radeon RX 6600
PSU
Seasonic Focus Gold 450W
Case
BitFenix Neos
OS
Fedora Linux
@lele.deb ho visto che opensuse 42.1 ha un cron settimanale nel quale fa il trim, non ci dovrebbe essere bisogno dell'opzione discard o mi sbaglio?

In questo caso no. Anche Ubuntu ha il cron del TRIM sugli SSD.
 
  • Mi piace
Reazioni: rebellion

dogma

Utente Attivo
676
13
ieri ho finalmente trovato tempo per installarla.

questo è il nuovo ftsab immacolato:
Codice:
UUID=a98d754d-530f-447d-9980-ac19d3cf0104 swap swap defaults 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 / btrfs defaults 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /opt btrfs subvol=@/opt 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /srv btrfs subvol=@/srv 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /tmp btrfs subvol=@/tmp 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /usr/local btrfs subvol=@/usr/local 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/crash btrfs subvol=@/var/crash 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/log btrfs subvol=@/var/log 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/opt btrfs subvol=@/var/opt 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/spool btrfs subvol=@/var/spool 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=818717bd-404a-436f-a288-d587aa60475c /home                btrfs      defaults              0 0


questo invece era quello ottimizzato su kubuntu:

Codice:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=6549fae9-7e33-42e6-ae72-050bf296361c /               ext4    errors=remount-ro,noatime,discard 0       1
# swap was on /dev/sda5 during installation
#UUID=d469c7ea-2d76-46ae-b28b-c9698ad58617 none            swap    sw              0       0
# temp e log su RAM
tmpfs /tmp tmpfs nodev,nosuid 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/log/apt tmpfs defaults,noatime 0 0



per rimettere su suse tutte le ottimizzazioni che avevo, più altre se possibili, quali comandi aggiungo, in quali righe ?
scusate, ma è passato tanto tempo da quando avevo ottimizzato kubuntu, e per di pià usavo ext4, oltre al fatto che era una distro derivata da tut'altra origine.
 

rebellion

Utente Èlite
1,593
506
CPU
intel i5 9500
Dissipatore
cooler master hyper 212 evo
Scheda Madre
asrock b360 pro4
HDD
samsung 850evo 250GB+samsung 840pro 128GB+seagate barracuda 2TB+seagate barracuda 2TB
RAM
corsair vengeance lpx ddr4 2133MHz 2x4GB CL13
GPU
integrata intel hd graphics 630
Audio
integrata
Monitor
samsung ue55mu6500u
PSU
xfx pro series 550w core edition
Case
mastercooler
OS
archlinux x64 + gnome3.34.1 && windows10 pro x64
@dogma la seconda riga del tuo fstab deve divenire così:
Codice:
/ btrfs noatime,ssd,compress=lzo 0 0
apri yast2 vai in partizionatore seleziona la partizione / cliccaci col destro seleziona modifica e in opzioni di fstab nel campo valore opzioni arbitrarie metti:
Codice:
ssd,noatime,compress=lzo
salvi le modifiche et voilè!
per temp/log su ram passo non l'ho mai fatto e lo ritengo superfluo per un uso normale ma anche domesticamente intensivo di un SO.

EDIT: in più ho messo lo scheduler deadline (yast2-->impostazioni del kernel-->impostazioni del kernel-->pianificazione I/O globale: selezioni nel menù a tendina deadline -oppure noop per un ssd, vedi tu quale ti torna meglio, per me deadline-).
 
Ultima modifica:

dogma

Utente Attivo
676
13
ho fatto di mia iniziative alcune modifiche: discard su root, disabilitazione swap, e logt&temp su ram, o almeno spero :)

Codice:
#UUID=a98d754d-530f-447d-9980-ac19d3cf0104 swap swap defaults 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 / btrfs ssd,discard,noatime,compress=lzo 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /opt btrfs subvol=@/opt 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /srv btrfs subvol=@/srv 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /tmp btrfs subvol=@/tmp 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /usr/local btrfs subvol=@/usr/local 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/crash btrfs subvol=@/var/crash 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/log btrfs subvol=@/var/log 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/opt btrfs subvol=@/var/opt 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/spool btrfs subvol=@/var/spool 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=6715562f-b737-42d7-a877-48f526f5a0c5 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=818717bd-404a-436f-a288-d587aa60475c /home                btrfs      defaults              0 0
# temp e log su RAM
tmpfs /tmp tmpfs defaults,noatime 0 0
tmpfs /var/tmp tmpfs defaults,noatime 0 0
tmpfs /var/log tmpfs defaults,noatime 0 0


adesso dovrei capire come disattivare il journaling; non credo che sia la stessa procedura che usavo per ext4.
inoltre, le varie modifiche che ho fatto per la partizione di root, posso farle anche per la home ?
 

rebellion

Utente Èlite
1,593
506
CPU
intel i5 9500
Dissipatore
cooler master hyper 212 evo
Scheda Madre
asrock b360 pro4
HDD
samsung 850evo 250GB+samsung 840pro 128GB+seagate barracuda 2TB+seagate barracuda 2TB
RAM
corsair vengeance lpx ddr4 2133MHz 2x4GB CL13
GPU
integrata intel hd graphics 630
Audio
integrata
Monitor
samsung ue55mu6500u
PSU
xfx pro series 550w core edition
Case
mastercooler
OS
archlinux x64 + gnome3.34.1 && windows10 pro x64
le varie modifiche che ho fatto per la partizione di root, posso farle anche per la home ?
dovresti altrimenti non ce le hai su /home.
temp/log su ram ti velocizza qualcosa?
 

dogma

Utente Attivo
676
13
mmmm, forse.
cmq kubuntu era ben più rapido di suo.
dopo tutte le modifiche, in avvio siamo quasi uguali, ma per chiudere o per lo standby ci mette il doppio.


inizio a preoccuparmi però, dato che è la terza volta che mi esce schermata nera, con varie righe di codice, con la dicitura "kernel panic: watchdog detected hard lockup on cpu".
che vuol dire ?
 
Ultima modifica:

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!

Discussioni Simili