Game loading times Btrfs vs Ext4

Hello i use garuda linux for gaming and i love it!!, i came from pop os.

I have started to notice strange issues with garuda.

All games take a very long time to load, is this because of btrfs?

Because when i was running pop os my games loaded so much faster.

Pop OS Loading Times
Cyberpunk 2077 = 5 seconds
Red Dead Redemption 2 = 5 seconds

Garuda Loading Times
Cyberpunk 2077 = 30+ seconds
Red Dead Redemption 2 = 30+ seconds

Now the only change from pop os to garuda is Btrfs > Ext4

Interested to hear peoples thoughts on this matter.

I/O performance depends on many things: HDD vs SSD, SATA vs NVME, file systems, etc.
Please post the output of inxi -Fxxxza as always :slight_smile:

You may want to check out the relevant benchmarks post like this one from Phoronix.

4 Likes

My computer stays the same, all i did was swap from pop os to garuda linux

❯ inxi -Fxxxza 

System:
  Kernel: 5.10.1-103-tkg-pds x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: intel_pstate=passive BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-pds 
  root=UUID=1ffdc7fa-3b86-4cd6-b70e-b96c9861911a rw [email protected] quiet 
  splash rd.udev.log_priority=3 vt.global_cursor_default=0 
  systemd.unified_cgroup_hierarchy=1 loglevel=3 
  Desktop: GNOME 3.38.2 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 3.38.2.1 
  Distro: Garuda Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z390 GAMING EDGE AC (MS-7B17) 
  v: 2.0 serial: <filter> UEFI: American Megatrends v: A.70 date: 01/02/2020 
CPU:
  Info: 8-Core model: Intel Core i9-9900K bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: D (13) 
  microcode: DE L2 cache: 16 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 115312 
  Speed: 2909 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 2909 2: 3601 
  3: 3278 4: 3600 5: 3596 6: 3600 7: 3133 8: 3600 9: 2577 10: 2923 11: 3600 
  12: 3493 13: 2964 14: 3600 15: 3297 16: 3595 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds mitigation: TSX disabled 
  Type: tsx_async_abort mitigation: TSX disabled 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] vendor: Micro-Star MSI 
  driver: nvidia v: 455.46.04 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f06 
  Display: x11 server: X.Org 1.20.10 compositor: gnome-shell driver: nvidia 
  display ID: :1 screens: 1 
  Screen-1: 0 s-res: 3440x1440 s-dpi: 96 s-size: 910x381mm (35.8x15.0") 
  s-diag: 987mm (38.8") 
  Monitor-1: DP-0 res: 3440x1440 dpi: 109 size: 800x330mm (31.5x13.0") 
  diag: 865mm (34.1") 
  OpenGL: renderer: GeForce RTX 2060 SUPER/PCIe/SSE2 
  v: 4.6.0 NVIDIA 455.46.04 direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:a348 
  Device-2: NVIDIA TU106 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f9 
  Sound Server: ALSA v: k5.10.1-103-tkg-pds 
Network:
  Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi 
  v: kernel bus ID: 00:14.3 chip ID: 8086:a370 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e 
  v: kernel port: efa0 bus ID: 00:1f.6 chip ID: 8086:15bc 
  IF: eno2 state: down mac: <filter> 
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A 
Drives:
  Local Storage: total: 6.92 TiB used: 1.86 TiB (26.9%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: WDS100T3XHC-00SJG0 size: 931.51 GiB block size: physical: 512 B 
  logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 102000WD 
  temp: 44.9 C 
  ID-2: /dev/sda maj-min: 8:0 vendor: Zotac model: ZTSSD-A5P-480G-PE 
  size: 447.13 GiB block size: physical: 512 B logical: 512 B 
  speed: 6.0 Gb/s serial: <filter> rev: 01.6 
  ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital 
  model: WD6003FZBX-00K5WB0 size: 5.46 TiB block size: physical: 4096 B 
  logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 1A01 
  ID-4: /dev/sdc maj-min: 8:32 type: USB vendor: Samsung model: Flash Drive 
  size: 119.51 GiB block size: physical: 512 B logical: 512 B 
  serial: <filter> rev: 1100 
Partition:
  ID-1: / raw size: 931.22 GiB size: 931.22 GiB (100.00%) 
  used: 540.44 GiB (58.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 560 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  ID-3: /home raw size: 931.22 GiB size: 931.22 GiB (100.00%) 
  used: 540.44 GiB (58.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-4: /var/log raw size: 931.22 GiB size: 931.22 GiB (100.00%) 
  used: 540.44 GiB (58.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-5: /var/tmp raw size: 931.22 GiB size: 931.22 GiB (100.00%) 
  used: 540.44 GiB (58.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2 
Swap:
  Kernel: swappiness: 10 (default 60) cache pressure: 75 (default 100) 
  ID-1: swap-1 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram0 
  ID-2: swap-2 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram1 
  ID-3: swap-3 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram2 
  ID-4: swap-4 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram3 
  ID-5: swap-5 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram4 
  ID-6: swap-6 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram5 
  ID-7: swap-7 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram6 
  ID-8: swap-8 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram7 
  ID-9: swap-9 type: zram size: 3.92 GiB used: 2 MiB (0.0%) priority: 32767 
  dev: /dev/zram8 
  ID-10: swap-10 type: zram size: 3.92 GiB used: 2 MiB (0.0%) 
  priority: 32767 dev: /dev/zram9 
  ID-11: swap-11 type: zram size: 3.92 GiB used: 2 MiB (0.0%) 
  priority: 32767 dev: /dev/zram10 
  ID-12: swap-12 type: zram size: 3.92 GiB used: 2 MiB (0.0%) 
  priority: 32767 dev: /dev/zram11 
  ID-13: swap-13 type: zram size: 3.92 GiB used: 1.8 MiB (0.0%) 
  priority: 32767 dev: /dev/zram12 
  ID-14: swap-14 type: zram size: 3.92 GiB used: 1.8 MiB (0.0%) 
  priority: 32767 dev: /dev/zram13 
  ID-15: swap-15 type: zram size: 3.92 GiB used: 1.8 MiB (0.0%) 
  priority: 32767 dev: /dev/zram14 
  ID-16: swap-16 type: zram size: 3.92 GiB used: 1.8 MiB (0.0%) 
  priority: 32767 dev: /dev/zram15 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A gpu: nvidia temp: 43 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 25% 
Info:
  Processes: 454 Uptime: 12h 55m wakeups: 0 Memory: 62.75 GiB 
  used: 11.27 GiB (18.0%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  Packages: pacman: 1306 lib: 396 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.2.00

Thanks for that info i can see it says

"Btrfs with its copy-on-write behavior leads to it having a lot of features but at least in its out-of-the-box behavior generally being a fair amount slower than EXT4/F2FS/XFS. "

So now i understand why its slow sometimes, but its ok i will deal with this because garuda and btrfs with timeshift is amazing! :sunglasses:

2 Likes

Afaik you can turn that off for files.
Might be worth creating a ext4 partition to hold games maybe? Also keep in mind btrfs does compression via zstd which be another reason :thinking:

5 Likes

Yes this seems to be the best solution thank you