This forum has been archived. All content is frozen. Please use KDE Discuss instead.

UI freeze during delete

Tags: None
(comma "," separated)
Tanktalus
Registered Member
Posts
67
Karma
0
OS

UI freeze during delete

Mon Jul 04, 2011 11:35 pm
When I select to delete a torrent and its data, the UI can freeze while the OS is busy reclaiming tons of inodes or whatever it's doing. Could this be moved off the main GUI thread? Either move it to some thread pool, or use libaio or some such to do it asynchronously (I'm guessing the former is easier).

It's not a huge deal, it's just spit-n-polish at this point :-)

(Running KTorrent from git - reporting as 4.2-dev, last checked for new code a few days ago.)

Thanks,
George
Moderator
Posts
5421
Karma
1

Re: UI freeze during delete

Wed Jul 06, 2011 4:57 pm
The deletion of the files is done in the background (using KIO), so it must be the directory tree cleanup.
Tanktalus
Registered Member
Posts
67
Karma
0
OS

Re: UI freeze during delete

Wed Jan 11, 2012 12:23 am
I'm just confused as to why that would freeze the UI. If it were really done in the background, the UI shouldn't freeze.
George
Moderator
Posts
5421
Karma
1

Re: UI freeze during delete

Thu Jan 12, 2012 7:49 pm
The directory tree cleanup isn't done in the background.

Must be a problem for big trees.
Tanktalus
Registered Member
Posts
67
Karma
0
OS

Re: UI freeze during delete

Fri Jan 13, 2012 11:17 pm
Could this be moved to a background (non-UI) thread?

In my case, the torrents are held on an external USB disk, and that disk has nearly nothing else on it. This disk spins down frequently as it's rarely in use. For the most part, this is sufficient. It means that it takes a bit longer to use the downloaded material, but generally that's fine.

However, it's not just the spin-down, as I have deleted torrents while downloading new ones, and I notice my network usage drop to near zero(*) for a few seconds (using conky to monitor) while ktorrent's UI freezes, and then ktorrent seems to need to renegotiate before my network usage gets back to "normal" for the current torrent.

(*) other apps continue to function, so if I'm browsing the web the network doesn't necessarily go to actual zero.
George
Moderator
Posts
5421
Karma
1

Re: UI freeze during delete

Tue Jan 17, 2012 5:40 pm
I will move it to the background for 4.2.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell