HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

tmp+ramdisk
http://havp.hege.li/forum/viewtopic.php?f=3&t=177
Page 1 of 1

Author:  subset [ 31 Oct 2006 02:58 ]
Post subject:  tmp+ramdisk

Hi !

How many tmp size must for havp (lan with 40 client) ?
I use ramdisk, but the ramdisk size only 64Mb. I do not create larger (debian os).
I scan under 150Mb/file.

The 64Mb ramdisk is enough ?

Sorry my english :)

thx

Author:  hege [ 31 Oct 2006 10:41 ]
Post subject: 

You should set MAXSCANSIZE to something like 5000000 (5MB). If you have 150MB right now, then anyone downloading big file will hang your server..

Also you should set ClamAV to use same ramdisk as temp for best performance, so it might be a bit small..

Author:  subset [ 31 Oct 2006 13:09 ]
Post subject: 

Thx the reply :)

I reduce the MAXSCANSIZE .

Another question:
How to create I bigger than 64Mb ramdisk ?
Is this possible ?

Author:  hege [ 31 Oct 2006 13:26 ]
Post subject: 

If you have debian or such, you can see if you have /etc/default/tmpfs. Edit SHM_SIZE=256m. That will edit /dev/shm that is automatically created on boot. Naturally don't set is higher than you have memory. :)

You can change the size without booting like this:
# mount -o remount,size=256m /dev/shm

Or you can manually create new ones like this:
# mount -t tmpfs -o size=256m tmpfs /havp

Or add to fstab:
tmpfs /havp tmpfs defaults,size=256m 0 0

Cheers,
Henrik

Author:  subset [ 31 Oct 2006 21:08 ]
Post subject: 

Bigger ramdisk =

Only add to kernel boot parameters in grub.conf:
ramdisk_size=128000 #128Mb/disks

test:
# dmesg | grep RAMDISK

:)

thx hege

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/