Increase drive caching?

General support for problems installing or using Deluge
Post Reply
Trahloc
New User
New User
Posts: 9
Joined: Tue Jun 30, 2009 5:57 pm

Increase drive caching?

Post 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.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Increase drive caching?

Post 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 10904 times
robzane
New User
New User
Posts: 6
Joined: Fri Sep 19, 2008 4:24 pm

Re: Increase drive caching?

Post by robzane »

Cache size is in kilobytes or bytes or 16kib*value I write?

Thank you
anonymous_user
Member
Member
Posts: 40
Joined: Sat Jan 31, 2009 7:28 am

Re: Increase drive caching?

Post 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.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Increase drive caching?

Post by andar »

It's in 16KiB blocks.. So 512 * 16 KiB equals 8192KiB or 8MiB
anonymous_user
Member
Member
Posts: 40
Joined: Sat Jan 31, 2009 7:28 am

Re: Increase drive caching?

Post 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.
http://www.bugmenot.com
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Increase drive caching?

Post 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.
anonymous_user
Member
Member
Posts: 40
Joined: Sat Jan 31, 2009 7:28 am

Re: Increase drive caching?

Post 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?
http://www.bugmenot.com
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Increase drive caching?

Post 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.
anonymous_user
Member
Member
Posts: 40
Joined: Sat Jan 31, 2009 7:28 am

Re: Increase drive caching?

Post 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.
http://www.bugmenot.com
Post Reply