Wols Lists wrote: > On 24/12/19 18:35, Dale wrote: >> I'll try to see if I can get the actual error here in a bit, either a >> picture or the actual text. I only need one line because it is the same >> for them all except the name and path of the file. > I've just had an idea ... > > I think it was on LWN they were talking about how a directory scan on > linux can take absolutely ages, because as it goes through it pulls > everything into cache and knackers the system. (Which is why a lot of > programs go through the grief of using direct rather than buffered io.) > > Not sure which developer it was, but they've brought in a new mode which > leaves cache untouched (sort of). If it can retrieve the file from > cache, it does so. If it's not in cache, it pulls it in, processes it, > and drops it. That way the cache does not fill up with recently accessed > files that are never going to be touched again, and your system doesn't > start swapping like mad to save all this unwanted data. > > Maybe when that is enabled in plasmashell it'll fix the problem ... how > big is this directory that's being scanned? If it's similar or larger in > size to your ram that could be the problem. Even if it's rather less, if > other programs are using up your ram ... > > Cheers, > Wol > >
I found out something else. In the old KDE3 days, it would start at login at the top directory and work its way down while remember the last image. If you logout and back in, it picks up where it left off at. KDE5 does something totally different. It scans every file and puts them in order by the name no matter what directory they are in. In other words, if I have 100 directories with a image named 0000.jpeg, then it will show the images named 0000.jpeg regardless of what directory they are in. When that is done, it then moves to say 0001.jpeg. How did I notice this you ask?? When I added a larger directory, I noticed it did a preview thing in another part of the dialog window. It also has a little checkbox to disable/enable that image. What I noticed was what I posted above, how it was putting the images in order. It just so happens that folder had some slideshow type images in it that are numbered in sequence. Thing is, in the preview they were all clumped together but were mixed up and not sorted by the directory they were in. I hate to say it but it is the same result as random done this way. So, it appears what several of you came up with is correct. It is building some sort of index/cache/whatever system to organize the images. That results in a lot of CPU time. The only question left, if I were to allow it to build that index/whatever, does it rebuild at each login or not?? I wonder, if I add each directory within wallpapers a few at a time if it would be workable. Would it build that index/whatever without locking up? Even if that works, would it then shows slideshow type directories in sequence or would it still jump to other directories? Find one possible answer and end up with more questions. ROFL Dale :-) :-)

