Linux Lite Forums
Freshclam AV suddenly using 50-80% CPU - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: Freshclam AV suddenly using 50-80% CPU (/showthread.php?tid=4151)

Pages: 1 2


Freshclam AV suddenly using 50-80% CPU - maciaccio - 06-08-2017

I tried to install Freshclam AV last week. At the end of the process, I got an error regarding a config file not found, and it did not seem to finish the install.

Looking for Freshclam AV from the Whisker Menu or App Finder, it does not show, but if I type it into the search box in Whisker Menu, I see a 'gears' icon with 'Run Freshclam' text - but nothing happens when I click on it.

Suddenly today, my CPU is maxed at or near 100% and my CPU is running dangerously hot, around 90-deg C, with laptop placed 12-inches from a window AC. This laptop hits fatal temp at 94-deg C.

Checking 'show all processes' in Task Man shows Freshclam using between 50-80% CPU, but the graph shows solid 100% total CPU usage since startup.

Here is the install log from Freshclam last week - note that this just started today, after two weeks of no CPU issues in LL, and at least one week after Freshclam install attempt.


  [Image: 6zFThXdl.png]



  [Image: ORkeIjzl.png]


Here is the Freshclam Install Log:

mac@HP-dv8000:~$ sudo freshclam
ClamAV update process started at Fri Jun  2 00:53:20 2017
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host db.local.clamav.net (IP: 168.143.19.95)
Trying host db.local.clamav.net (208.72.56.53)...
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host db.local.clamav.net (IP: 208.72.56.53)
Trying host db.local.clamav.net (69.12.162.28)...
Downloading main.cvd [100%]
main.cvd updated (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Downloading daily.cvd [100%]
daily.cvd updated (version: 23439, sigs: 2081810, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 301, sigs: 58, f-level: 63, builder: anvilleg)
Database updated (6300658 signatures) from db.local.clamav.net (IP: 69.12.162.28)

ERROR: NotifyClamd: Can't find or parse configuration file /etc/clamav/clamd.conf

Thanks in advance...


Re: Freshclam AV suddenly using 50-80% CPU - tomt - 06-08-2017

Do yourself a favor and use the free sophos. It does not slow my computer down at all and actually prevents unlike Clam maleware. Here is a step by step guide to install


[color=rgb(17, 85, 204)]https://www.youtube.com/watch?v=QH9gRThLEag[/color]


Re: Freshclam AV suddenly using 50-80% CPU - tomt - 06-08-2017

If you decide you want to use sophos after install do an update.
[color=rgb(70, 74, 79)] Sudo /opt/sophos-av/bin/savupdate[/color]
[color=rgb(70, 74, 79)][/color]
[color=rgb(70, 74, 79)]After update you can run a scan. Simply copy and paste this in your terminal. [/color]
[color=rgb(70, 74, 79)][/color]
[color=rgb(70, 74, 79)]sudo savscan -archive -suspicious -pua -remove /[/color]
[color=rgb(70, 74, 79)][/color]
[color=rgb(70, 74, 79)]Cheers[/color]


Re: Freshclam AV suddenly using 50-80% CPU - maciaccio - 06-08-2017

Okay, will do.

FWIW: A reboot seems to have fixed it, maybe it was just a fluke - "Freshclam -d --foreground=true" process now using 0% CPU in Task Man and temps are back to normal range. But at 0%, is it even doing anything, I wonder?

I have read all about not needing AV in Linux - but I am about to set up Samba shares between 10Gb NTFS data partition on laptop and Windows box, so better safe than sorry with what has been going on in the world of Win viruses lately.

This is a single-core Turion mobile CPU, and it is the bottleneck for the system. So anything to take a load off the CPU will help the whole system run smoother.

Should I run "sudo apt-get purge xxx" of all clamav files?

Here are the entries when I run "dpkg --list"


  [Image: XcvaPCPl.png]



Re: Freshclam AV suddenly using 50-80% CPU - maciaccio - 06-09-2017

This is what I did to completely remove clamav:

Code:
sudo apt-get purge clamav
sudo apt-get purge clamav-base
sudo apt-get purge clamav-freshcl
sudo apt autoremove
sudo rm -r /var/lib/clamav

Autoremove got rid of two unused lib entries.
The last line removed a lingering folder




Re: Freshclam AV suddenly using 50-80% CPU - maciaccio - 06-09-2017

[member=4764]tomt[/member],  You say Sophos is easy on resources...

My system seems to be using a lot more RAM now - was around 350Mb at start and is now up to 1Gb+/ or 50% with about 46 threads in Htop.

In Htop I see tree view, but not in Task Man


Re: Freshclam AV suddenly using 50-80% CPU - tomt - 06-09-2017

Sorry. That`s the only suggestion I can offer. Perhaps someone with more knowledge can help.


Re: Freshclam AV suddenly using 50-80% CPU - newtusmaximus - 06-09-2017

For me, Sophos seems to be using more memory - circa 50% total.  However it is continually running in the background - screening  etc. so that is not surprising.    Needs care setting up  and did report for me one false positive  in the LL software  (Lite-info) see  forum writeup elsewhere

https://www.freecinema2022.gq/forums/security-bug-fixes/sophos-reported-infection-false-positive/msg30913/#msg30913


Re: Freshclam AV suddenly using 50-80% CPU - tomt - 06-09-2017

(06-09-2017, 12:13 PM)tomt link Wrote: Sorry. Glad you got it sorted. Sometimes it`s the obvious we overlook. The app using high resources on mine is Pulse Audio Control. Cheers.



Re: Freshclam AV suddenly using 50-80% CPU - tomt - 06-09-2017

(06-09-2017, 12:13 PM)tomt link Wrote: Sorry. Glad you got it all sorted. Sometimes it`s the obvious we overlook. The only app using high resources on mine is Pulse Audio Control. Cheers.