Summary: | Baloo seems to be too aggressive and blocks disc access | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | Ian Proudler <i.proudler> |
Component: | Baloo File Daemon | Assignee: | Stefan Brüns <stefan.bruens> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | baloo-bugs-null, nate, tagwerk19 |
Priority: | NOR | ||
Version: | 5.68.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ian Proudler
2021-05-16 11:40:08 UTC
Did you want to index hidden files and folders? You might be able to cut down the number of files "looked at" on startup if you exclude the .cache directory and wastebasket (ref: Bug 434705) (In reply to tagwerk19 from comment #1) > Did you want to index hidden files and folders? > > You might be able to cut down the number of files "looked at" on startup if > you exclude the .cache directory and wastebasket (ref: Bug 434705) Adding .directory to the exclude list is definitely the wrong approach. Either something is rewriting .directory files recurrently, then there is something wrong with the application, or a change is detected although there is none. (In reply to Stefan Brüns from comment #2) > Either something is rewriting .directory files recurrently ... > ... or a change is detected although there is none. Possible way forward (if focusing on the .directory files), is to install inotify-tools and run inotifywait -mr ~ | grep .directory in one window and compare this to what baloo is indexing by running: balooctl monitor in a second... If I do this; running dolphin with per-folder settings enabled and pressing Ctrl-H a few times to show and hide "hidden" files, iNotify shows a lock and temporary file being created, the .directory file being deleted and the tempfile renamed back to .directory. For me that seems sensible - and it's nice to see inotify showing the actions In parallel, balooctl monitor reindexes the .directory file each time I change the config. So, for me, it's behaving. Do you see anything suspicious? Neon Unstable Plasma: 5.22.80 Frameworks: 5.83.0 Qt: 5.15.2 (In reply to tagwerk19 from comment #3) > (In reply to Stefan Brüns from comment #2) > > Either something is rewriting .directory files recurrently ... > > ... or a change is detected although there is none. > Possible way forward (if focusing on the .directory files), is to install > inotify-tools and run > > inotifywait -mr ~ | grep .directory > > in one window and compare this to what baloo is indexing by running: > > balooctl monitor > > in a second... > > If I do this; running dolphin with per-folder settings enabled and pressing > Ctrl-H a few times to show and hide "hidden" files, iNotify shows a lock and > temporary file being created, the .directory file being deleted and the > tempfile renamed back to .directory. > > For me that seems sensible - and it's nice to see inotify showing the actions > > In parallel, balooctl monitor reindexes the .directory file each time I > change the config. > > So, for me, it's behaving. Do you see anything suspicious? > > Neon Unstable > Plasma: 5.22.80 > Frameworks: 5.83.0 > Qt: 5.15.2 I don't see anything wrong as such. Baloo is doing what it is supposed to do. It's just that it leaps into action immediately rather than waiting for the PC to idle. When baloo reads files it seems, on occasions, to slow down access to the HDD. I was just suggesting that it would be nice if baloo had a lower priority than the user when it came to accessing the disk. Although I'm not 100% sure, I feel that baloo's aggressive access to the disk is interfering with the operation of Octave. It certainly slows down the PC when I first login. Thanks to everyone for their input. Baloo already uses lowest priorities for both I/O and CPU. It also slows itself down by sleeping between files while the computer is used interactively. It delays more resource intensive operations on login, so other resource hungry applications like firefox can start faster. Baloo does everything possible do be friendly to other applications. But every now an then, it *has* to commit its data to disk. Here's another guess, maybe worth mentioning... You are doing content indexing - and indexing a lot of data? How big has your .local/share/baloo/index file become? What does balooctl indexSize say? It could be that baloo is wanting more bits of the database in memory than there is memory available. In that case there'll be lots of going back and forth to disc. Having a look at your system load (memory, swap) might give some clues (In reply to Stefan Brüns from comment #5) > Baloo already uses lowest priorities for both I/O and CPU. It also slows > itself down by sleeping between files while the computer is used > interactively. It delays more resource intensive operations on login, so > other resource hungry applications like firefox can start faster. > > Baloo does everything possible do be friendly to other applications. But > every now an then, it *has* to commit its data to disk. My apologies. Perhaps my issue lies with the Linux kernel. (In reply to tagwerk19 from comment #6) > Here's another guess, maybe worth mentioning... > > You are doing content indexing - and indexing a lot of data? How big has > your .local/share/baloo/index file become? What does > > balooctl indexSize > > say? It could be that baloo is wanting more bits of the database in memory > than there is memory available. In that case there'll be lots of going back > and forth to disc. Having a look at your system load (memory, swap) might > give some clues Thanks for the suggestion. I have 8GB RAM. I have conky running on the desktop showing RAM and swap useage. but I've never noticed baloo causing swap useage. I will take more notice in future. balooctl indexSize: File Size: 2.58 GiB Used: 1.61 GiB PostingDB: 495.27 MiB 29.957 % PositionDB: 886.12 MiB 53.598 % DocTerms: 257.66 MiB 15.585 % DocFilenameTerms: 4.32 MiB 0.262 % DocXattrTerms: 4.00 KiB 0.000 % IdTree: 744.00 KiB 0.044 % IdFileName: 3.21 MiB 0.194 % DocTime: 1.82 MiB 0.110 % DocData: 2.57 MiB 0.155 % ContentIndexingDB: 0 B 0.000 % FailedIdsDB: 0 B 0.000 % MTimeDB: 1.54 MiB 0.093 % (In reply to tagwerk19 from comment #6) > Here's another guess, maybe worth mentioning... > > You are doing content indexing - and indexing a lot of data? How big has > your .local/share/baloo/index file become? What does > > balooctl indexSize > > say? It could be that baloo is wanting more bits of the database in memory > than there is memory available. In that case there'll be lots of going back > and forth to disc. Having a look at your system load (memory, swap) might > give some clues Just in case it helped, I decided to 'purge' the index. I'm happy to report that so far, baloo is is indexing files and contents without any obvious impact on my system. So perhaps there was something wrong with my index file. The last time I reset it was some years ago. Good news! Yes, there were reports of trouble with 'older' indexes where reindexing was a solution (Bug 431664). Sounds like it's OK to close. |