Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clamav-unofficial-sigs and very high CPU cycles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 887

PostPosted: Wed Feb 05, 2020 10:18 am    Post subject: clamav-unofficial-sigs and very high CPU cycles Reply with quote

Hi,

I'm using clamav-unofficial-sigs because the default ClamAV signatures are unable to detect some malware that other commercial antivirus are.
The clamav-unofficial-sigs software (which actually downloads third-party clamav signatures) works great in my setup except for the fact that it uses up a LOT of CPU. Even on an enterprise-grade server its CPU usage can be extremely high (top can show a global value of 300% which I don't know exactly how to interpret on a system with multiple cores -- even pressing '1' to show the cores doesn't clear things up much). Anyway, I know clamd can be configured with niceness values in conf.d:

Code:
CLAMD_NICELEVEL=3
FRESHCLAM_NICELEVEL=19
IONICE_LEVEL=2


The higher the value the "nicer" it is, which means that the clamd process should have lower priority.

So, if I want clamd to be as nice as possible, what values should I use in conf.d?
I'm guessing that these should be OK:
Code:
CLAMD_NICELEVEL=19
FRESHCLAM_NICELEVEL=19


Any drawbacks?

What about IONICE_LEVEL?
According to rc.conf "The format is class[:data]".
So what does the default "2" mean? Does it mean that it's of class 2 (best-effort)?
Wouldn't the following be "nicer" on I/O?

Code:
IONICE_LEVEL=2:7


What about this:

Code:
IONICE_LEVEL=3


Vieri
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum