Koozali.org: home of the SME Server

clamd versus clamscan

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
clamd versus clamscan
« on: March 04, 2018, 09:21:18 PM »
Today I noticed that clamscan was running, and that it ran for nearly 7 hours. The system does have a fair amount of data, about 180GB. However, I wasn't aware that clamscan was being invoked. I thought clamd was handling the workload.

I can see clamd show up in top from time to time as expected. I do have SME backup (not affa) enabled.

What is the normal use of clamd and clamscan in the SME distro?
- Mark

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: clamd versus clamscan
« Reply #1 on: March 05, 2018, 12:46:28 AM »
Mophilly

clamd monitors email for viruses, enabled in server manager
clamscan scans your server files for viruses, seperately (than clamd) enabled in server manager

PS a google search would have answered both these for you, so please search first
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: clamd versus clamscan
« Reply #2 on: March 05, 2018, 07:19:00 PM »
Thank you, Janet.

I did not state my question properly.

We have observed clamscan running for eight hours today, and yesterday. This is causing a drag on the system, naturally.

My expectation is that a full scan occurs on some schedule, say weekly, but not daily. It seems to me the daily scan should consider only files changed or added in the past 24 hours.

This also seems to be a new behavior, or previously unnoticed, as we have not modified the system save for SME updates in the past month or so.

My question is this, what is the normal schedule of operations for invoking clamscan? Do I need to adjust something to gain better system performance?
- Mark

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: clamd versus clamscan
« Reply #3 on: March 05, 2018, 07:41:32 PM »
Well.. Did you spend at least 2 mins to check cron* files/dirs and your configuration?
As Janet pointed out, clamd is used for mail real-time scan and clamscan for fs scan.
You're here since a quite long time now: I expect you're able to debug your server.
If you find something that isn't working as expected, please give us some facts (configuration, logs etc) to help you
Thank you

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: clamd versus clamscan
« Reply #4 on: March 05, 2018, 07:59:12 PM »
Mophilly

As advised, virus scan schedule setting is in server manager.
It seems you have daily  file system scanning enabled, so as you are less happy with this, then I suggest you change it to weekly scan.

Virus scanning will use a lot of  processor resources.
File system scanning time will increase as your file system gets bigger & the size & types of files also affect performance.

What you have advised so far does not seem abnormal.

Quote
My expectation is that a full scan occurs on some schedule, say weekly, but not daily.

My question is this, what is the normal schedule of operations for invoking clamscan?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: clamd versus clamscan
« Reply #5 on: March 05, 2018, 09:06:49 PM »
Doh! I completely forgot about the manager panel! Sorry for the noise.

Still, a question remains. This setting has not been changed in a very long time. Yet, we have noticed slower performance recently. There has been news about the Intel processor flaws and performance. I am wondering what might be different from, say, last week.

In any case, thank you for your responses. Very much appreciated.
- Mark

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: clamd versus clamscan
« Reply #6 on: March 06, 2018, 02:20:21 AM »
Mophilly

Quote
I am wondering what might be different from, say, last week.

Already answered in part.
File system scanning time will increase as your file system gets bigger & the size & types of files also affect performance.

You need to investigate your server to see what else may be going on.

What problem are you actually noticing (apart from taking 8 hrs to complete)  ?

You could temporarily disable file system scanning to see if you notice a significant change (improvement).
Maybe you want to exclude certain ibays from scanning and/or play with "nice" settings for clamscan & so on...
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: clamd versus clamscan
« Reply #7 on: March 07, 2018, 08:50:21 AM »
Doh! I completely forgot about the manager panel! Sorry for the noise.

Still, a question remains. This setting has not been changed in a very long time. Yet, we have noticed slower performance recently. There has been news about the Intel processor flaws and performance. I am wondering what might be different from, say, last week.

In any case, thank you for your responses. Very much appreciated.

Maybe you want to read this: https://forums.contribs.org/index.php/topic,53476.0.html
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)