Vishesh Handa's personal website

Baloo 5.15

We have a new release of Baloo. For those of you who don’t know about it - It’s a file indexing and searching solution for Linux. It’s quite fast, and shipped by default in KDE Plasma.

Baloo is part of KDE Frameworks and has a fast 1 month release cycle. So, I’m probably going to be spamming you about the big changes in Baloo each month.

The 5.15 release focused a lot on tooling and bug fixing.

One of our main tools balooctl got a few additional commands -

Additionally, a large number of bugs have been fixed. The largest is fixing the corruption issue with the Baloo index. Internally, Baloo uses LMDB which provides us with a very efficient BTree. The Btree file is memory mapped and we get direct access to the kernel page table. This is dangerous but also makes us very efficient as we can avoid copies. One of the way of avoiding copies was to never copy words into memory and use QByteArray::fromRawData. This worked quite well, however since QByteArray, like all Qt containers, is copy-on-write, the original QByteArray would be copied and used even after the original had been destroyed.

For now we have fixed this by copying the memory each time. It is a little bit slower, but much safer, and this fixes a large number of crashes. Unfortunately, this also means that the previous index needs to be discarded.

With Baloo 5.15, all your files will be reindexed from scratch. It’s unavoidable.