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

[Feature request] Caching of disk writes and reads

Tags: None
(comma "," separated)
ankle
Registered Member
Posts
6
Karma
0
Would it be possible to add options to
a) cache more received data before it's written to disk
and
b) allocate more memory to cache data being uploaded
?

I find that KTorrent's constant disk usage can be distractingly noisy, and worry that the heavy access may be wearing the drive out unnecessarily.
agforsyth
Registered Member
Posts
133
Karma
0

Fri Feb 06, 2009 5:54 pm
I also think grouping 1MB or so of the pieces before writing them to disk might be a good compromise between memory usage and frequency of i/o operations. With the current method of writing pieces out as they are recieved, KTorrent makes my computer iowait a lot when downloading quickly.
Guffen
Registered Member
Posts
55
Karma
0

Fri Feb 13, 2009 3:24 am
KTorrent shouldnæt be trying to emulate the OS. If you find that your OS doesn't cache enough, tune that instead (using sysctls and whatnot).
Lain_13
Registered Member
Posts
103
Karma
0

Fri Feb 13, 2009 8:57 pm
For example uTorrent have ability to cache reads and writes for faster perfomance. Maybe it's because of not very good caching in Windows, but I think it's because cache settings for torrent-client not so good for everything else.


What isn`t remembered never happened. Memory is merely a record. You just need to rewrite that record.
mfb52
Registered Member
Posts
15
Karma
0

Tue Feb 17, 2009 10:44 pm
Like what was said above, the OS should already do a good job at caching disk reads (even Windows, but perhaps not with default settings). There may be some advantage to application-level write caching though. For torrents it may be desirable to maintain large buffers and wait before writing out data; any data lost in case of a power failure can just be downloaded again.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar