Hi, so, I have a bit of a problem or maybe brainstorming topic.
The short story: for various reasons I want to be able to stop thumbnails from being generated. Search results suggest that disabling “previews” in dolphin should be the solution, but the reality is that ~/.cache/thumbnails/ still gets populated and I can’t seem to find a way to configure this any other way. (On Plasma 6.5.4)
Now for the long story:
I don’t actually want to completely get rid of thumbnails, but I work a lot with large folder structures containing images. And by large, I mean huge, think multiple thousand folders each containing images in one parent folder (the worst offender sits at about 15000 sub folders at the moment). Since these folders also take up a lot of space and the main purpose is archiving, they’re stored on a rather slow, NAS grade hard drive (WD Red).
By now it is probably not hard to imagine that working in these folders can be a bit sluggish (although dolphin does do a pretty decent job once everything’s been loaded from disk), and, getting to the core of the problem, it gets worse when kioworker decides it is thumbnailing time, which it does quite often when opening one of those folders. So the IO performance tanks even harder as multiple kioworker processes start crawling through thousands of folders, looking for image files to create folder thumbnails from, which I won’t ever see because I got them disabled. So loading the file list in dolphin can sometimes take like a minute while the IO processes fight over who gets priority.
Of course, this would also generate gigabytes of thumbnails (and write cycles) on my main SSD, which I have mitigated by mounting ~/.cache/thumbnails onto a ram disk. And then, to keep my RAM from filling up, I had to create a cron task for cleaning out the thumbnail folders periodically. But, since thumbnails keep getting deleted, kioworker goes back to recreating them in a beautiful vicious cycle.
For now I’d be happy for any suggestions to help with my specific problem. For instance, thumbnails won’t be generated for FUSE mounts, but I’m not sure if there is a way of mounting a local hard drive through FUSE and what repercussions this might have. Moving the image archives to an actual network storage is financially not viable at the moment.
And then, back to the brainstorming part, here’s my wish list of how I would like to configure thumbnail generation in order of preference:
- Having a way to configure thumbnail generation per path, this could be including all bells and whistles (basically the current dolphin “preview settings” on a per-folder basis)
- Being able to exclude specific paths from either folder or file thumbnail generation, so for instance in
~/image-archives/I only want thumbnails for files in folders I actually open, no generation of folder thumbnails, but everywhere else I’d be okay with folder thumbnails as well - Being able to exclude paths just in general, not ideal, but probably easy to implement
- At least being able to keep kioworker from generating thumbnails in general
As an aside, since thumbnails are not only used for dolphin (which I guess might be the reason why disabling them in dolphin’s settings won’t actually stop them from being created), I’d actually suggest creating a new “thumbnails” page in System Settings for these sorts of configurations.