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


          #5
          Thanks for these suggestions. For whatever reason, purge didn't stop baloo (it said "failed to stop!"), but subsequently I was able to stop it from system monitor. The index file size was 34.10 GiB, (but "used" was 609.37mb). Then after running purge again, it deleted the index database.
          I was able to figure out that "balooctl6 config list hidden" showed that yes, it's indexing hidden files, which I probably don't need. (And thanks to duck.ai for telling me how to change this, with "balooctl6 config set hidden false.").
          Now I shall try enabling it again, expecting it to run overnight.
          Question for Jlittle: If you don't run baloo, how do you index your files?

          Comment


            #6
            Originally posted by taxpayer View Post
            I was able to figure out that "balooctl6 config list hidden" showed that yes, it's indexing hidden files, which I probably don't need. (And thanks to duck.ai for telling me how to change this, with "balooctl6 config set hidden false.")
            It is a checkbox right in the System Settings Search section. It is disabled by default.
            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


              #7
              Originally posted by taxpayer View Post
              thanks to duck.ai for telling me how to change this, with "balooctl6 config set hidden false.").
              jebus, you don't need AI for this, just go to settings > file search and uncheck the box that says Index hidden files

              this is what the GUI is for so you don't have to find obscure command line arguments and have to resort to AI to figure out how to use your computer.


              some stuff i did: https://github.com/droidgoo

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

              Comment


                #8
                Actually I don't think I've ever used the GUI for this. Now that I've done so, I see that it shows me which file is being indexed right now. Baloo has spent at least several minutes indexing a file of 818kb. Overnight it indexed over 300,000 files, but now it's doing only ~1 per minute. Not big files. I guess I need to seek an alternative. Suggestions?

                Comment


                  #9
                  Originally posted by taxpayer View Post
                  Overnight it indexed over 300,000 files


                  That there *may* be a bit heavy depending on your specs. Maybe look at reducing the amount of locations being indexed, particularly browser profiles, ~/.cache (a major BIG one to skip), trash, Steam libraries, flatpak and snap dirs, and any location that really isn't worth indexing the file contents for.


                  Originally posted by taxpayer View Post
                  but now it's doing only ~1 per minute. Not big files
                  Yes, it throttles down when the system is in use. Assuming everything is working properly, of course.

                  Normally I do not index my hidden dirs, as that is seldom useful for the sheer number of files, and just stick to actual documents and files I use or need to search through, and leave out all the config files.
                  I would use kfind for digging through that sort of stuff if needed.

                  I also think that indexing many of the directories that see a lot of constant changes (~/,cache and browser configs for example) are a strong cause for any "churning" of the drives (and maybe hitting swap) with all the added i/o from continuously detecting file changes.
                  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


                    #10
                    I had this problem when I was using KDE Neon. I just turned baloo off. Things didn't seem to run any slower with it turned off, as far as I could tell.

                    Comment


                      #11
                      i just looked at my settings - file search , and it's off...must be by default when i installed kubuntu cause i never touched there.
                      anyway, i don't have a problem so i'll leave it be , OFF

                      Click image for larger version

Name:	Screenshot_20261205_192218.png
Views:	0
Size:	71.9 KB
ID:	695500
                      Last edited by die.boer; Today, 11:23 AM.
                      ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                      Comment


                        #12
                        Originally posted by skyfishgoo View Post

                        jebus, you don't need AI for this, just go to settings > file search and uncheck the box that says Index hidden files

                        this is what the GUI is for so you don't have to find obscure command line arguments and have to resort to AI to figure out how to use your computer.

                        tell ya the truth, i've been on KDE only bout a year now and this is the 1st time i heard about baloo...
                        i had to search what it is lol, now i know
                        nevermind knowing it is under setting - file search

                        ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                        Comment


                          #13
                          Originally posted by die.boer View Post
                          tell ya the truth, i've been on KDE only bout a year now and this is the 1st time i heard about baloo...
                          i had to search what it is lol, now i know
                          nevermind knowing it is under setting - file search
                          the only reason i found out about it was because my media file meta data was not appearing in dolphin (size, length etc) even tho i had those columns enabled in the detail view.

                          it was only from asking about how to get that info to show in dolphin that someone pointed me to file search settings and mentioned the backend process of baloo which is behind the GUI.
                          some stuff i did: https://github.com/droidgoo

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

                          Comment

                          Users Viewing This Topic

                          Collapse

                          There are 0 users viewing this topic.

                          Working...
                          X