Summary: | Integrate ionice in KDE for I/O activities | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | 0BADC0DE <vincenzo.romano> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | wishlist | CC: | bugs.kde, cfeck, karl, loonyphoenix, michael, roucaries.bastien+bug, squider |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
0BADC0DE
2009-02-05 09:05:39 UTC
Suggestions #1 and #4 could be merged into a new "ktop" program. What would also be good is when background indexing, http cache cleaning etc. ran with ionice. But as far as I know, ionice command is reserved for root user :( Also mount is only for root, nonetheless as a normal user I can still stick my USB memory in a port and get its partition mounted. Anyway, that was my suggestion/wish list. *** Bug 208877 has been marked as a duplicate of this bug. *** ionice can be run as an unpriveledged user too.
You can't switch classes (i.e., use realtime and idle classes) unleass you're root, but within the best effort class it's possible to use priorities from 0 to 7.
Here's a demonstration of this and the effectiveness of ionice:
$ ls -lh
total 513M
-rw-r--r-- 1 victor victor 256M Jan 26 02:46 file1
-rw-r--r-- 1 victor victor 256M Jan 26 02:45 file2
# echo 3 > /proc/sys/vm/drop_caches
3
$ /usr/bin/time -o ionice0 ionice -c2 -n0 cp file1 file1-cp & \
> /usr/bin/time -o ionice7 ionice -c2 -n7 cp file2 file2-cp
[1] 10115
[1]+ Done /usr/bin/time -o ionice0 ionice -c2 -n0 cp file1 file1-cp
$ cat ionice0
0.01user 0.84system 0:17.13elapsed 5%CPU (0avgtext+0avgdata 2784maxresident)k
524472inputs+524288outputs (1major+362minor)pagefaults 0swaps
$ cat ionice7
0.01user 0.91system 0:39.71elapsed 2%CPU (0avgtext+0avgdata 2784maxresident)k
524352inputs+524288outputs (2major+361minor)pagefaults 0swaps
# echo 3 > /proc/sys/vm/drop_caches
3
$ /usr/bin/time cp file1 file1-cp
0.00user 1.26system 0:20.27elapsed 6%CPU (0avgtext+0avgdata 2784maxresident)k
524752inputs+2570232outputs (2major+228minor)pagefaults 0swaps
I would like very much for ionice support to be implemented for background tasks in KDE SC.
(In reply to comment #5) > ionice can be run as an unpriveledged user too. > correct. > You can't switch classes (i.e., use realtime and idle classes) unleass you're > root, > man ioprio_set: Kernel versions up to 2.6.24 also required CAP_SYS_ADMIN to set a very low priority (IOPRIO_CLASS_IDLE), but since Linux 2.6.25, this is no longer required. *** Bug 251492 has been marked as a duplicate of this bug. *** This would be on my wishlist so that all kio_thumbnail would be ioniced to idle. wathing a HD video on my system causes problems, with the video being choppy, I'm pretty sure it's due to the desktop search and kio_thumbnail processes running. No news in 5 years! It needs to be a dumb idea, then! It's a nice idea (no pun intended), but needs some volunteer to actually implement it. Hi, kdelibs (version 4 and earlier) is no longer maintained since a few years. KDE Frameworks 5 or 6 might already have implemented this wish. If not, please re-open against the matching framework if feasible or against the application that shows the issue. We then can still dispatch it to the right Bugzilla product or component. Greetings Christoph Cullmann |