Constant disk activity without any process

Hello everyone,

I am having the issue that sometimes the disk activity LED starts blinking constantly after my PC is running for a while.
I have not been able to identify the program, which is causing the issue:
A was not able to see a correlation to opened applications.
Searching for the issue, I found that baloo file indexer can cause it. However, disabling it had no effect.
Also the Firefox session restore file seems to accumulate a lot of disk io.
But increasing browser.sessionstore.interval seemingly did not help.
While Firefox is my most likely suspect, the writes also happen without firefox running (and no access with it running).

Also, I tried the following commands, suggested in answers related to this issue and guidelines:

journalctl --boot=-1 --priority=3 --catalog --no-pager did not show any output for the time the access happens.

sudo iotop -o

This only shows some process every few seconds (for example nextcloud, or some kworker, btrf-transactions). However, most of the time no process is shown (still while the LED is flashing).

Next, I tried

while true; do date; sudo ps aux | awk '{if($8=="D") print $0;}'; sleep 1; done

root       25560  0.0  0.0      0     0 ?        D    23:10   0:00 [kworker/u64:2+events_unbound]
Di 2. Mai 23:31:24 CEST 2023
root       25560  0.0  0.0      0     0 ?        D    23:10   0:00 [kworker/u64:2+events_unbound]
Di 2. Mai 23:31:25 CEST 2023
root       25560  0.0  0.0      0     0 ?        D    23:10   0:00 [kworker/u64:2+events_unbound]
Di 2. Mai 23:31:26 CEST 2023
Di 2. Mai 23:31:27 CEST 2023
root       25560  0.0  0.0      0     0 ?        D    23:10   0:00 [kworker/u64:2+events_unbound]

However, without the LED constantly flashing, with my (untrained) I could not see a difference, in case there was no constant access.

Below is the output of `inxi -v7azy`, in case it is relevant:

System:
  Kernel: 6.0.19-4-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.0-x86_64
    root=UUID=83410bdc-26c5-410c-a31b-7c8732935e32 rw rootflags=subvol=@
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: X570 AORUS ELITE v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X570 AORUS ELITE v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: F33 date: 05/21/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 31.29 GiB used: 5.33 GiB (17.0%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
    model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 32 MiB
    desc: 2x16 MiB
  Speed (MHz): avg: 2815 high: 4241 min/max: 2200/4426 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 4241 2: 2139
    3: 4216 4: 2142 5: 3893 6: 2196 7: 2200 8: 2191 9: 3604 10: 2132 11: 3942
    12: 2146 13: 3795 14: 2053 15: 2082 16: 2069 bogomips: 115032
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2
    sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext
    tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: ASUSTeK
    driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-3
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 0a:00.0 chip-ID: 1002:73bf class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
    loaded: amdgpu unloaded: modesetting,radeon alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
    s-diag: 1165mm (45.88")
  Monitor-1: DP-3 mapped: DisplayPort-2 model: LG (GoldStar) HDR 4K
    serial: <filter> built: 2022 res: 3840x2160 hz: 60 dpi: 140 gamma: 1.2
    size: 697x392mm (27.44x15.43") diag: 806mm (31.7") ratio: 16:9 modes:
    max: 3840x2160 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon RX 6900 XT (navi21
    LLVM 15.0.7 DRM 3.48 6.0.19-4-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    bus-ID: 1-1:2 gen: 4 chip-ID: 1235:8012 class-ID: fe01 speed: 16 GT/s
    serial: <filter> lanes: 16 bus-ID: 0a:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: Focusrite-Novation Scarlett 6i6 type: USB driver: snd-usb-audio
  API: ALSA v: k6.0.19-4-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
    status: active 2: pipewire-media-session status: active 3: pipewire-alsa
    type: plugin 4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-6.2:3 chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.08 TiB used: 382.31 GiB (18.0%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 4B2QGXA7 temp: 43.9 C scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM010-2EP102
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC43 scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-4: /dev/sdc maj-min: 8:32 type: USB vendor: Transcend
    model: JetFlash 32GB size: 29.42 GiB block-size: physical: 512 B
    logical: 512 B type: SSD serial: <filter> rev: 1100 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 382.31 GiB (41.1%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 83410bdc-26c5-410c-a31b-7c8732935e32
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: NO_LABEL uuid: 6FDC-7188
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 382.31 GiB (41.1%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 83410bdc-26c5-410c-a31b-7c8732935e32
  ID-4: /var/cache raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 382.31 GiB (41.1%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 83410bdc-26c5-410c-a31b-7c8732935e32
  ID-5: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 382.31 GiB (41.1%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 83410bdc-26c5-410c-a31b-7c8732935e32
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 232.88 GiB fs: ext4 label: N/A
    uuid: 164ec3ea-17ab-4628-b228-b27794b464c2
  ID-2: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ext4 label: N/A
    uuid: aa5d1605-8cd0-4858-bf68-a383fe974e20
  ID-3: /dev/sdc1 maj-min: 8:33 size: 29.42 GiB fs: vfat label: Transcend
    uuid: F4B4-B597
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: Focusrite-Novation Scarlett 6i6 type: Audio
    driver: snd-usb-audio interfaces: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1235:8012 class-ID: fe01 serial: <filter>
  Device-2: 1-2:3 info: Razer USA DeathAdder Elite type: Mouse,Keyboard
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 500mA
    chip-ID: 1532:005c class-ID: 0300
  Hub-2: 1-3:4 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-3.1:6 info: Transcend Information JetFlash type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 2.1 speed: 480 Mb/s power: 300mA
    chip-ID: 8564:1000 class-ID: 0806 serial: <filter>
  Device-2: 1-4:5 info: Integrated Express IT8297 RGB LED Controller
    type: Keyboard driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 048d:8297 class-ID: 0301
  Hub-3: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-4: 3-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-5: 3-6:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 3-6.2:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
    class-ID: e001
  Hub-6: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-7: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 5-1:2 info: ZSA Labs Moonlander Mark I type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 500mA
    chip-ID: 3297:1969 class-ID: 0300
  Hub-8: 6-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 52.2 C mobo: 37.0 C gpu: amdgpu temp: 56.0 C
    mem: 50.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
  Processes: 413 Uptime: 2h 13m wakeups: 0 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: 2178 pm: pacman pkgs: 2165 libs: 428 tools: pamac,yay pm: flatpak
  pkgs: 13 Shell: Zsh v: 5.9 running-in: kitty inxi: 3.3.26

Are there any other possibilities to find out which process is responsible?
Are there any other known processes, that I could try to disable?

Let me know, if I missed some crucial information.

Many thanks in advance for your help!

Hello,

On KDE Plasma there is baloo_file that sometimes creates a bit of an issue. The forum has some topics about it with some proper suggestions how to deal with it when it happens.

Thank you for your help!
The suggested solutions for baloo_file I found, did not have any effect.
So far, I tried disabling file search in the system settings and disabling it with

balooctl disable
balooctl purge

After that, baloo_file did not show up any more in iotop or htop.
But the constant access remained.
The only other option I saw, was switching to ext4, in case baloo is needed.
But I am happy to “kill the bear”, as someone suggested :slight_smile:

I searched again now, but I could not find any other solutions.
Sorry, if I missed something obvious, but are there other steps necessary to disable it?
If so, I will search once more.

If not, I found more possibly helpful information, that was asked for in related posts:

$ free --human
               total        used        free      shared  buff/cache   available
Mem:            31Gi       4,7Gi        19Gi        54Mi       7,0Gi        26Gi
Swap:             0B          0B          0B

Also journalctl -b does not show anything for the duration of the disk activity.

Thank you again!

When using Btrfs there is always something to do to keep Btrfs in a clean state. This is especially the case when the file system was (at any time) over 80% full. If that is the cause, it can be determined by monitoring the relevant processes with htop.

In any case, behind an activity on a device there is ALWAYS a process (which becomes visible with htop and appropriate fine tuning).

On the other hand, if the flash is very brief, I would overlook it. Otherwise you are chasing ghosts.

Andreas :footprints: