How to make Newsbin use only RAM for pre-assembly

Technical support and discussion of Newsbin Version 6 series.

How to make Newsbin use only RAM for pre-assembly

Postby reyosun » Fri Jan 27, 2012 11:33 am

Hi,

Instead of necroing an older thread, I thought I would ask this here:

How do I make newsbin pro (v6) download directly to RAM before assembly, to decrease fragmentation, and write the file in one go?

Thanks!
reyosun
n00b
n00b
 
Posts: 3
Joined: Wed Jul 23, 2003 9:46 am

Registered Newsbin User since: 04/01/03

Re: How to make Newsbin use only RAM for pre-assembly

Postby Quade » Fri Jan 27, 2012 12:25 pm

[SETTINGS]
MemCacheLimit=N

N in Megs. 200 is a good number.

Exit Newsbin, add this to the configuration file then restart. Watch your RAM usage.

Even without this, Newsbin doesn't cause fragmentation when it writes out files. Newsbin gets some chunks, determines how large the file will be and then allocates the whole file before it writes to it. That means, as much as possible, windows will hand it a contiguous chunk of disk space to play with.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: How to make Newsbin use only RAM for pre-assembly

Postby reyosun » Fri Jan 27, 2012 12:57 pm

Thanks!

Actually, I'm more concerned about limiting disk writes whenever possible. My downloads drive is already overused for many download sources, and keeping it in ram until the last write would be a big saver for disk access.

My 12 GB of ram should be sufficient to handle most chunks, I hope! :)

Btw: What happens to the chunks if I paused or exit Newsbin Pro before the downloads complete? Will it write to disk for posterity, keep in memory until I re-launch it (and lose it if I reboot)?
reyosun
n00b
n00b
 
Posts: 3
Joined: Wed Jul 23, 2003 9:46 am

Registered Newsbin User since: 04/01/03

Re: How to make Newsbin use only RAM for pre-assembly

Postby Quade » Fri Jan 27, 2012 1:22 pm

Btw: What happens to the chunks if I paused or exit Newsbin Pro before the downloads complete? Will it write to disk for posterity, keep in memory until I re-launch it (and lose it if I reboot)?


I'm pretty sure you lose the partial downloads that are in ram. One option would be pause all subsequent downloads and then just exit when the current download completes.

The issue with RAM usage is that incomplete files consume ram till they're flushed out. It's a good idea to keep an eye on how many incompletes you have sitting in the queue.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: How to make Newsbin use only RAM for pre-assembly

Postby reyosun » Fri Jan 27, 2012 3:05 pm

Thanks for the help! And thank you for such an excellent program ^_^
reyosun
n00b
n00b
 
Posts: 3
Joined: Wed Jul 23, 2003 9:46 am

Registered Newsbin User since: 04/01/03


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests