Cache Figures

Technical support and discussion of Newsbin Version 6 series.

Cache Figures

Postby Bazza42 » Sat Jul 09, 2011 6:47 am

I apologize if this has been asked and answered but I can't see such a topic since V6 went live.

My cache figures show 172/200 - should I be worried that this is impacting performance?

I assume that the figure is less a factor of 'space' and more of access times.

My data disk, which I guess is the important one, is an 80Gb SSD with 35.30GB free with 'only'
Windows 7 being the only other user.

My download disk, an USB2 2Tb external disk which is dedicated, shows 1.09Tb free
Bazza42
Occasional Contributor
Occasional Contributor
 
Posts: 17
Joined: Fri May 08, 2009 5:00 pm

Registered Newsbin User since: 06/03/08

Re: Cache Figures

Postby itimpi » Sat Jul 09, 2011 7:29 am

The cache is the buffers that Newsbin uses for downloading chunks into. It is only going to ever impact performance if the free figure gets to 0.

As long as the free figure stays above 0, then Newsbin can continue to download even though it is also doing other things (checking/repairing/decoding etc). If Newsbin gets so busy that it cannot write the cache to disk fast enough, then when the value of free cache gets to 0, Newsbin will stop downloading until it can do some catching up and free some cache buffers.

If you want to allocate more RAM to the cache, then an entry can be set in the Newsbin configuration file (each buffer represents on average about 600KB of space)
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12605
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Re: Cache Figures

Postby Quade » Sat Jul 09, 2011 9:30 am

172/200 means you're running 28 connections to the server. Each download worker thread acquires a block of data to work with out of the cache. When a chunk is downloaded, this block is handed off and the worker acquires another block from the cache. If you run out of blocks, it means that disk IO is bottlenecking the download speed. There's another related setting called the "MemCacheLimit" which allows you to tell Newsbin to cache the entire file in memory before writing it out. This also can improve performance. It defaults to 20 megs meaning all smaller files are downloaded to RAM and written out in one block when done. That's why you might not see any NB2 files when you you're downloading smaller files.

I'll write something up about these settings and what they do.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44879
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Cache Figures

Postby Bazza42 » Sun Jul 10, 2011 2:43 am

Many thanks to you both for your comprehensive response.
Bazza42
Occasional Contributor
Occasional Contributor
 
Posts: 17
Joined: Fri May 08, 2009 5:00 pm

Registered Newsbin User since: 06/03/08


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests