GuitarBob
|
You're right--it looks like the compression only applies to main database. There is probably a reason. The Clam daily signature database is only merged with the main database a few times a year--maybe every 3 or 4 months. I'll make some people aware of this and see what happens. Anyway, it helps a little, eh?
Regards, |
||||||||||||
|
Re: main cld/cvd file size |
tizef
|
Hello all, as a new user I had exactly the same questions blgd had :
About the two extensions 1. CVD stands for "ClamAV Virus Database", native, compressed tarball ; 2. CLD stands for "ClamAV Local Database", updated, compressed or not. References : lurker.clamav.net, wiki.clamav.net. About the file sizes I made my own little tests and it seemed pretty clear to me that the (case sensitive) option "CompressLocalDatabase" works fine. 1. With all (main, daily, bytecode) database files, but only ; 2. When the original file (cvd or cld) is already compressed. I tried the CLI first, with a minimalistic new FreshClam.conf file :
And then the GUI, with adding this line to the ClamWin.conf file :
As expected, the results were identical. Here are some details :
I could’nt explain the 137 bytes difference between the "native" bytecode.cvd and the "updated" bytecode.cld files, but the "native" daily.cvd and the "updated" daily.cld files were exactly the same size :-) |
||||||||||||||||||||
Last edited by tizef on Sat Mar 23, 2013 8:15 pm; edited 1 time in total |
Re: main cld/cvd file size |
blgd
|
Thanks for sharing your digs Maybe the above explains all as we were testing with updated ones and, therefore, uncompressed (or a mix of all, even what's been said in the thread). I'm downloading the compressed databases and see what happens with the new update. At least daily, which grown to 6MB. |
||||||||||||||
|
blgd
|
Ooooook, now is clear and there was my fault.
Dumb of me I was using the "program files\clamwin\bin\clamwin.conf" file, instead the one in (windows 2000 and XP) "documents and settings\user profile\application data\.clamwin\clamwin.conf" (Windows Vista and above, if I'm not wrong, as I don't use them "users\user profile\application data\.clamwin\clamwin.conf"). I didn't know that Clamwin uses and creates a new clamwin.conf on each profile used (!?!?!?) on a Windows System. I noticed this when I didn't found the server set in the GUI in the bin\clamwin.conf file for one of my country. It was set in the file said above, inside the profile path. But let me fix your message, tizef . There is no need for the already existing clv/cld files in the db folder to be as compressed for the compression to work. I tested with both cases and the file was correctly recompressed/compressed (in either case) after download of the update. So, long story short, the file to modify must be the clamwin.conf at your profile folder and the modification that must be made is to the freshclamparams option under [ClamAV] section as follows, without quotes, "freshclamparams = CompressLocalDatabase yes" (or appending it if you are using more parameters). In my case, tonight, as the only update was to daily file, I can't tell more, but is supposed to work with every database file. I'll try to report when happens to others. Regards. P.S.: in my log window/file doesn't show the compression task, what debug level do you use? |
||||||||||||
|
tizef
|
Well, at least let me say that under Windows 98 SE it has to be ;-) |
||||||||||||||
|
blgd
|
Ok, I didn't know that Different OSs, different behaviors I think it shouldn't be as Clamwin is not part of it, but... The final question (debug), is related to Win98 too? I set debug to 0 or 1 and it's the same under Windows 2000. |
||||||||||||||||
|
tizef
|
I will try again next week to confirm that (or not). Only two dailies are needed.
Sorry. No debug mode, just a DIY log file-like based on the sigtool’s outputs :-)
Anyway, we should keep in mind that the database has to be uncompressed in memory each time ClamWin is launched (or even permanently if Clam Sentinel is used). Forcing the database compression may be pointless, don’t you think ? Now we have quite understood the way update works, let’s go back to the default configuration, which is certainly as smart as possible ;-) |
||||||||||||||||||
|
blgd
|
Haha
May be pointless, but it depends on preferences. For example, I don't use sentinel, if you mean by sentinel the clamtray utility to keep updated (as clamwin hasn't a resident scan). I do all manually I prefer to keep free space and wait for Clamwin to decompress databases every time you scan. In the last months, since when I started this thread, haven't been any main.cvd update, that is the biggest file, but, you know, let's be prepared for it In my case and personal preferences, of course. But you are right, now we know better how updates work and that's enough Here is left a bit of knowledge for those out there to decide |
||||||||||||
|
tizef
|
By Clam Sentinel I mean… Clam Sentinel. Keep it simple, stupid ;-) |
||||||||||||||
Last edited by tizef on Sat Mar 23, 2013 8:16 pm; edited 1 time in total |
tizef
|
Well, now let me say that you were completely right. I should avoid nightly tests :-?
What did you mean exactly by "appending it" ? I did several attempts, all of them failed to make ClamWin to pass more than one parameter to freshclam (e.g. LogTime yes and LogVerbose yes).
That one even prevented freshclam from starting ! |
||||||||||||||||||
|
blgd
|
For me worked the two ways: files compressed, files uncompressed. Under Windows 2000, at least.
My fault there then. I admit. I thought they could be appended :S Sorry, I said guessing that could be possible. I didn't really test. Maybe can be done by calling the freshclam.conf file (or other) via "--config-file" in freshclamparams. As there is no explanation anywhere...
Maybe, as I pointed above freshclamparams = --config-file="C:\Windows\Application Data\.clamwin\FreshClam.conf" Testing..... EDIT: no way I don't know how it could be achieved even changing to freshclamparams = config-file "C:\Windows\Application Data\.clamwin\FreshClam.conf" I didn't test, or I did...: freshclamparams = config-file="C:\Windows\Application Data\.clamwin\FreshClam.conf" |
||||||||||||||||||||||||
|
main cld/cvd file size |
|
||
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.