Le (On) Thu, Jun 21, 2007 at 01:37:29PM +0200, Bjorn
Hellqvist ecrivit (wrote):
>
> > All of my spoolers and feeders have 3GB of RAM.
The feeders have pretty
> > small dhistory (300M-500M) but the binary spoolers
have big dhistory files,
> > around 1.2GB. This works fine, but when I rebuild
the file I have to use
> > disk.
> >
> > /news/dbin/dhisexpire -m -a -o0
/news/memory/dhistory /news/dhistory.new
>
> Can you describe the steps you use to set up the memory
disk?
>
> I tried to set up this quite a while ago, but always
got into trouble.
> system reboots and stuff.
On FreeBSD 6.x you can use something like this:
md /opt/news/db mfs noatime,async,rw,-S,-s2500m 2 0
In your /etc/fstab.
I use async mount and disable soft updates, because it
doesn't make sense for a
memory file system. This one will be 2.5Gb sized.
On FreeBSD 7.0 tmpfs has just been merged into the tree,
which makes it more
fast, uses less memory (less UFS overhead), and spreads the
load more gracefully
(swap usage is much better, partition is sized according to
phys RAM + swap).
You can use it with this line in your /etc/fstab:
tmpfs /opt/diablo/news/hist tmpfs rw 2 0
Cheers,
--
Sameh Ghane
_______________________________________________
Diablo-users mailing list
Diablo-users openusenet.org
htt
p://www.plig.net/mailman/listinfo/diablo-users
|