https://bugs.kde.org/show_bug.cgi?id=478457

--- Comment #6 from Eddie J Carswell II <eddiecarswel...@yahoo.com> ---
(In reply to Harald Sitter from comment #5)
> If it is the system io wait that is high, then how can you tell it's
> kioslave5 causing it?
> 
> Also, how are you measuring this?

The system iowait percentage is normally less than 1% on my system, sometimes
reaching higher in the single digits when doing tasks. I only see really high
numbers when I do something like write a 10GB+ file with no throttling (dd and
friends) or when some process is misbehaving. You can see this value with `top`
as `wa` and with `iostat` as `iowait`.

> It is certainly weird, but from what you describe your problem seems to be
> more with the kernel and its io scheduler than with kioslave5. The solution
> here really shouldn't be don't-do-IO - that's like saying don't turn your
> computer on, then you also don't have io wait.

The issue is not so much trying to stop IO, but ensuring it doesn't put undue
load (pressure?) on the rest of the system while doing it's job.

> idle priority unfortunately won't work because it is subject to starvation.
> Users do expect previews to be generated eventually.

Then perhaps somewhat higher but still less than normal priority? Like best
effort priority 7? I still think it shouldn't have the default priority of best
effort 0. Anything lower than the default would ensure it yields to other
processes with the default or higher priority, yet won't face starvation like
idle might.

> We jump through the file as a matter of fact, it's fairly cheap. There
> already is a setting for disabling previews on remotes, the sequence
> generation isn't nearly expensive enough to justify yet another setting.

Ah, found that setting. It doesn't seem to account for filesystems mounted via
fstab unfortunately. Not sure how much extra work it would be to check if we're
traversing a mount point not connected via a local block device. And I've found
performance using `smb://` in dolphin to be worse than just using an fstab
automount, which is why I have it setup that way.

> How do you rename the file? Via dolphin or terminal?

This was done in dolphin, both renaming and moving video files. I haven't
tested the behavior with a terminal rename. Would that be useful?

> When you have directory previews enabled, then yes it'd naturally have to
> create previews for the first couple files in subdirectories. Otherwise not.

I don't suppose there's an option I'm missing to disable directory previews so
they only generate on files in the current directory? Then I can avoid certain
folders when browsing via dolphin to ensure they don't trigger this issue. It
would be nice to have a way to filter specific paths (maybe even with
wildcards) from preview generation, but that's already requested in bug 406725.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to