Announcement

Collapse
No announcement yet.

Baloo, (or perhaps something else?), causes my disk to be constantly active

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [System] Baloo, (or perhaps something else?), causes my disk to be constantly active

    When running Kubuntu 24.04, I had for a couple of weeks a problem that my disk drive was constantly active. The only way to stop this was to log out. As a test, I set up another user, with minimal data, and when logged on there the disk was only occasionally active. I figured there might be a virus, so I ran ClamAV and deleted the suspect files it found. Still, on my main account the disk was constantly active.
    So I upgraded to 26.04.1. Problem was not solved. System Monitor told me that baloo_file_extractor was always running, so that's a suspect. System Monitor offered to let me suspend or terminate that program, but the program kept running. At the command line, "balooctl6 suspend" also has no effect.
    The only thing I can think to try next would be to take my other user, and gradually move all my files etc over there, watching to see when constant disk activity resumes. But that would take a long time, as baloo would naturally want to index all the "new" stuff coming over.
    So, (a) Where (other than
    https://community.kde.org/Baloo, which is minimal) can I learn more about how Baloo works?
    (b) Any other suggestions for fixing this?

    #2
    That's definitely one of baloo's failure modes. Not good for the lifetime of SSDs.

    You could try (untested, I don't let baloo run because of this failure):
    Code:
    balooctl6 disable
    balooctl6 purge
    balooctl6 enable
    baloo will run for some minutes, depending on how much, and what type of, data you have, but should then be idle. That fixes a corrupt index.

    However, the corruption may be caused by some gnarly file it doesn't handle properly and that corrupts the index again.
    Regards, John Little

    Comment


      #3
      worth looking at your file search settings to make sure that it's not indexing hidden files... that creates a LOT of churn.

      i index contents but not hidden files... and i exclude the entirety of the `/snap` directory since lots of changes go on in there that don't need to care about.
      some stuff i did: https://github.com/droidgoo

      Intel® Core™ i7-14700K | 64 GiB of RAM | AMD RX 6800

      Comment


        #4
        I *think* that baloo does skip certain dirs in $HOME by default, and ~/snap is probably one of them, I'll see if I can verify.


        But Baloo might just have gone wild or rogue.

        Code:
        $ balooctl6 status
        This will show some useful info, particularly the index size - if it is huge then it may have gone bonkers.
        Also the amount of files that have failed to index, if any.


        Are the settings for this stock, or have you added locations to index or ignore?



        Here is mine
        Code:
        $ balooctl6 status
        Baloo File Indexer is running
        Indexer state: Idle
        Total files indexed: 9,029
        Files waiting for content indexing: 0
        Files failed to index: 0
        Current size of index is 61.09 MiB​
        And here it is after adding a backup sysc on another dirve, which is basically adding the same files indexed above plus a huge chunk of my configs in hidden directories minus my Steam library and all my browser profile dirs.
        Note the yuuuge increase in the index size relative to the number of files added. Lotsa lotsa text content

        Code:
        ​$ balooctl6 status
        Baloo File Indexer is running
        Indexer state: Idle
        Total files indexed: 30,774
        Files waiting for content indexing: 0
        Files failed to index: 0
        Current size of index is 3.16 GiB

        balooctl6 monitor can show what it is doing *right now.* usful when you nootice it churning.
        And balooctl6 failed will show the files it could not index, if you had any.
        Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
        HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
        HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux​

        Comment

        Users Viewing This Topic

        Collapse

        There are 0 users viewing this topic.

        Working...
        X