Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-19-2020, 08:01 PM
|
#1
|
LQ Newbie
Registered: Jun 2020
Distribution: Ubuntu, Raspbian
Posts: 3
Rep: 
|
ClamAV memory consumption
I prefer to have some sort of antivirus even with Linux, but when I installed ClamAV on a Raspberry Pi Zero it kept locking up. I discovered it can easily consume <all> available memory (only 512MB on the Zero) and this may be a problem if I make tiny VMs.
Does anyone know of a free/cheap antivirus for Linux that does not have so large a footprint?
|
|
|
06-20-2020, 01:12 PM
|
#2
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.6
Posts: 5,903
|
Please post how and what you are doing/scanning with clamav?
Scanning emai? Periodic disk scans?
I don’t find it intrusive while scanning incoming email.
Welcome to LQ
|
|
|
06-20-2020, 09:59 PM
|
#3
|
LQ Newbie
Registered: Jun 2020
Distribution: Ubuntu, Raspbian
Posts: 3
Original Poster
Rep: 
|
New build, was just trying to set up the picam but it kept burning up CPU (100% a lot) and memory (801mb out of 840mb, actual physical is more like 280 out of 305). I finally caught -- it was freshclam trying to download first-round updates, but it never could finish.
I wouldn't mind having it if there is a way to get past the update issue, otherwise the original question stands: is there a suitable substitute?
|
|
|
06-21-2020, 03:30 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by dcruz99801
I prefer to have some sort of antivirus even with Linux, but when I installed ClamAV on a Raspberry Pi Zero it kept locking up. I discovered it can easily consume <all> available memory (only 512MB on the Zero) and this may be a problem if I make tiny VMs.
|
Sorry to say but I think you already answered your question.
Virtualisation on a pi0 with 512MB RAM? Didn't know that alone was possible.
Add to that an antivirus - it's too much.
Is ClamAV running constantly, in Windows-like fashion? I don't think that's necessary or desired on GNU/Linux.
|
|
|
06-21-2020, 04:03 PM
|
#5
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.6
Posts: 5,903
|
Quote:
Originally Posted by dcruz99801
New build, was just trying to set up the picam but it kept burning up CPU (100% a lot) and memory (801mb out of 840mb, actual physical is more like 280 out of 305). I finally caught -- it was freshclam trying to download first-round updates, but it never could finish.
I wouldn't mind having it if there is a way to get past the update issue, otherwise the original question stands: is there a suitable substitute?
|
freshclam is not "clamav"
Try shutting down everything (stopping all daemons) except freshclam to see if that frees enough memory to allow it to finish, but that's probably not going to be practical. On my production server, freshclam runs 8 times per day. I have no idea how much RAM it uses for each run.
Again, why do you think you need anti-virus checking on your pi? Are you receiving email there?
|
|
|
06-27-2020, 03:00 PM
|
#6
|
LQ Newbie
Registered: Jun 2020
Distribution: Ubuntu, Raspbian
Posts: 3
Original Poster
Rep: 
|
SOLVED: Pi Zero ClamAV issue
After running TaskMgr while installing/running ClamAV and finding it was using up all available memory with freshclam (initial update), I was going to run without AV...but...I plan to eventually set my unit up as a surveillance/webcam so AV might be necessary, and who knows if it might have email.
The fix was to increase the dphys-swapfile size parameter from 100MB to 1024MB; this is twice the onboard physical, and the <normal/recommended> amount. So far it seems happy. I'm not sure why the original swapfile is only 100MB, unless it was established when Pi's were still using 4GB or 8GB SD cards.
|
|
|
All times are GMT -5. The time now is 05:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|