Page 1 of 1

Increase drive caching?

Posted: Thu Jul 02, 2009 12:22 am
by Trahloc
Hello,

In forum post:
viewtopic.php?f=7&t=7325

It was mentioned that .6 had 2MB of cache and there was talk of making a user configurable option. We're now on 1.1.9 and I've got a server with more than enough ram to dedicate a healthy chunk to caching, prices have plummeted last few years. This option live now? Can't find a mention of it in the man page. Thanks for checking out the post.

Re: Increase drive caching?

Posted: Thu Jul 02, 2009 3:58 am
by johnnyg
It's currently in trunk and should be in 1.2:
Cache page in trunk
Cache page in trunk
cache.png (50.99 KiB) Viewed 10898 times

Re: Increase drive caching?

Posted: Fri Jan 29, 2010 5:14 pm
by robzane
Cache size is in kilobytes or bytes or 16kib*value I write?

Thank you

Re: Increase drive caching?

Posted: Sat Jan 30, 2010 9:21 pm
by anonymous_user
robzane wrote:Cache size is in kilobytes or bytes or 16kib*value I write?

Thank you
I have same question. the wording needs to be improved in newer versions.

Re: Increase drive caching?

Posted: Mon Feb 01, 2010 7:12 am
by andar
It's in 16KiB blocks.. So 512 * 16 KiB equals 8192KiB or 8MiB

Re: Increase drive caching?

Posted: Wed Feb 03, 2010 2:29 pm
by anonymous_user
So it is using bits instead of bytes measurement?
That will add even more confusion.

I want 250mb of cache. What unit should I input?
250,000*8/16= 12,500??
250,000 megabytes * 8 to roughly convert to bits divided by 16 kilobit blocks...

utorrent uses simple megabyte input.
Image

please please please change this setting to something simpler to understand in the future. There's too much math involved.

Re: Increase drive caching?

Posted: Wed Feb 03, 2010 2:52 pm
by johnnyg
KiB is a kibibyte, see http://en.wikipedia.org/wiki/Kibibyte

In short,
b == bit
B == Byte
KB is ambiguous as it used as both 1000B and 1024B
KiB is always 1024B

Therefore,
250MiB = 250 * 1024 KiB = 256000 KiB
which in blocks of 16KiB is 16000.

Re: Increase drive caching?

Posted: Wed Feb 03, 2010 9:25 pm
by anonymous_user
Well this leaves me even more confused.

When I go to speedtest.net and get internet speed test, it shows 1.35MB/s download speed. But my max download speed is 170kb/s (0.17mb/s).

That why I divide the 1.35 megabit number by 8 to get 0.16875 which is in megabytes (168.75 kilobytes).
As far as I know at the bottom of deluge main screen the max download speed I get is around 170.

I know I have 3 gigabytes of ram in my computer. I don't want to have to convert to bits, and also have to multiply(divide?) by 16 blocks.

Isn't utorrents input cache size much simpler to understand?

Or am I completely misunderstanding the point?

Re: Increase drive caching?

Posted: Wed Feb 03, 2010 11:26 pm
by andar
anonymous_user wrote:Well this leaves me even more confused.

When I go to speedtest.net and get internet speed test, it shows 1.35MB/s download speed. But my max download speed is 170kb/s (0.17mb/s).

That why I divide the 1.35 megabit number by 8 to get 0.16875 which is in megabytes (168.75 kilobytes).
As far as I know at the bottom of deluge main screen the max download speed I get is around 170.

I know I have 3 gigabytes of ram in my computer. I don't want to have to convert to bits, and also have to multiply(divide?) by 16 blocks.

Isn't utorrents input cache size much simpler to understand?

Or am I completely misunderstanding the point?
Why are you converting to bits? Like I said above it's 16 KiB blocks. Figure out how many KiB you want your cache size and divide it by 16 to get the number of blocks you want. You are over-complicating things.

Re: Increase drive caching?

Posted: Thu Feb 04, 2010 12:35 am
by anonymous_user
Ok, I understand it now. Got confused with kibibit and kilobit.
Don't usually hear about kibibits.

I'll remember this thread to do the calculations when I want to change ram amount.