Page 1 of 1

How to make Newsbin use only RAM for pre-assembly

PostPosted: Fri Jan 27, 2012 11:33 am
by reyosun
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!

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

PostPosted: Fri Jan 27, 2012 12:25 pm
by Quade
[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.

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

PostPosted: Fri Jan 27, 2012 12:57 pm
by reyosun
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)?

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

PostPosted: Fri Jan 27, 2012 1:22 pm
by Quade
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.

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

PostPosted: Fri Jan 27, 2012 3:05 pm
by reyosun
Thanks for the help! And thank you for such an excellent program ^_^