Shared DB - Linux

These results should be viewed as guidelines and not performance guarantees, since there are many variables that affect performance (file set, network configurations, hardware characteristics, etc.). If throughput is important to your implementation, OPSWAT recommends site-specific benchmarking before implementing a production solution.

Environment

Using AWS environment with the specification below:

MetaDefender Core

OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk typeBenchmark
MetaDefender Core #1Ubuntu 24.04c5.4xlarge1632Up to 10SSDAmazon EC2 c5.4xlarge - Geekbench
MetaDefender Core #2Ubuntu 24.04c5.4xlarge1632Up to 10SSDAmazon EC2 c5.4xlarge - Geekbench

RDS

OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk type
Windows Server 2022db.m7i.4xlarge1664Up to 10SSD

Deployment Model

Using a AWS Load Balancer to distribute files sent from the client tool to two (2) different MetaDefender Core servers applying Round Robin algorithm. With this algorithm, each MetaDefender Core server is supposed to receive same number of requests.

Client tool

A simple tool written in Python to collect files in a designated folder and submit requests to Load Balancer mentioned above.

Python
Copy
OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk type
CentOS 7c5.4xlarge1632Up to 10SSD

Dataset

Detailed information of dataset below will be used for testing:

File categoryFile typeNumber of filesTotal size (MB)Average file size (MB)
AdobePDF370385 MB1.0 MB
ExecutableEXE45309.5 MB6.9 MB
MSI1545.75 MB3.1 MB
ImageBMP80515 MB6.4 MB
JPG420237.5 MB0.6 MB
PNG345169 MB0.5 MB
MediaMP3135865 MB6.4 MB
MP450500 MB10.0 MB
OfficeDOCX235190 MB0.8 MB
DOC225486 MB2.2 MB
PPTX365860 MB2.4 MB
PPT3551950 MB5.5 MB
XLSX340283.5 MB0.8 MB
XLS335284.5 MB0.8 MB
TextCSV100236 MB2.4 MB
HTML107576 MB0.1 MB
TXT500210 MB0.4 MB
ArchiveZIP

Compressed files: 10

Extracted files: 270

Compressed size: 125.5 MB

Extracted size: 156.5 MB

Avg compressed size: 12.6 MB

Avg extracted size: 0.6 MB

Summary (compressed)50007728.5 MB1.55 MB average file size
Summary (extracted)52607759.5 MB1.48 MB average file size

Product Information

Product versions:

  • MetaDefender Core 5.16.0
  • Engines:
    • Metascan 5: Ahnlab, Bitdefender, ClamAV, ESET, K7
    • Metascan 10: Metascan 5 + Avira, Varist, IKARUS, Quick Heal, TACHYON
    • Metascan MAX: Metascan 10 + Lionic, CMC, CrowdStrike Falcon ML, Aurora, Trellix, NANOV, RocketCyber, Sophos, Webroot SMD, Xvirus Anti-Malware
    • Deep CDR: 7.6.0
    • Proactive DLP: 3.0.0
    • Archive: 7.6.0
    • File type analysis: 7.6.0
    • File-based vulnerability assessment: 4.57-236

MetaDefender Core settings

General settings

  • Turn off data retention
  • Turn off engine update

Archive extraction settings

  • Max recursion level: 99999999
  • Max number of extracted files: 99999999
  • Max total size of extracted files: 99999999
  • Timeout: 10 minutes
  • Handle archive extraction task as Failed: true
    • Extracted partially: true

Metascan AV settings

  • Max file size: 99999999
  • Scan timeout: 10 minutes
  • Per engine scan timeout: 1 minutes

Performance test results

MetaDefender Core with single engine (technology)

Summary metrics:

Performance Report
Use case Scan duration
(minutes)
Throughput
(processed objects/hour)
Avg. processing time
(seconds/object)
Metascan 5 6.8 1,121,911 0.003
Metascan 10 11.1 687,297 0.005
Metascan MAX 18.2 419,175 0.009
Deep CDR 9.1 838,351 0.004
Proactive DLP 7.5 1,017,200 0.004
Vulnerability 6.4 1,192,031 0.003

System resource utilization:

Performance Report - Dual Core
Use case Avg./Max CPU usage
(%)
Avg./Max RAM usage
(%)
Avg. Network speed
(KB/s)
Core 1 Core 2 Core 1 Core 2 Core 1 Core 2
Metascan 5 81.3/95.7 82.9/95.3 27.3/34.6 25.4/33.7 12,124 12,502
Metascan 10 84.8/96.5 83.5/95.2 33.5/37.1 34.0/35.8 7,614 7,545
Metascan MAX 89.5/99.0 88.7/99.1 50.7/60.2 50.4/61.8 8,517 8,435
Deep CDR 72.3/93.5 72.3/93.5 43.5/47.3 43.5/47.3 13,230 13,230
Proactive DLP 70.1/91.5 69.8/90.6 31.0/37.9 31.4/39.1 9,659 12,421
Vulnerability 76.5/96.1 74.5/94.8 25.9/30.1 24.8/28.9 12,411 10,135

MetaDefender Core with common engine packages

Summary metrics:

Performance Report - Combined Features
Use case Scan duration
(minutes)
Throughput
(processed objects/hour)
Avg. processing time
(seconds/object)
Metascan 5 + Deep CDR 11.9 641,092 0.006
Metascan 5 + Deep CDR
+ Proactive DLP
14.7 518,979 0.007
Metascan 5 + Deep CDR
+ Proactive DLP + Vulnerability
15.4 495,389 0.007
Metascan 10 + Deep CDR 16.2 470,925 0.008
Metascan 10 + Deep CDR
+ Proactive DLP
18.1 421,491 0.009
Metascan 10 + Deep CDR
+ Proactive DLP + Vulnerability
19.3 395,284 0.009
Metascan MAX + Deep CDR 28.4 268,626 0.013
Metascan MAX + Deep CDR
+ Proactive DLP
29.6 257,736 0.014
Metascan MAX + Deep CDR
+ Proactive DLP + Vulnerability
29.9 255,150 0.014

System resource utilization:

Performance Report - Combined Dual Core
Use case Avg./Max CPU usage
(%)
Avg./Max RAM usage
(%)
Avg. Network speed
(KB/s)
Core 1 Core 2 Core 1 Core 2 Core 1 Core 2
Metascan 5
+ Deep CDR
77.2/94.8 74.3/95.0 38.1/53.0 32.4/51.6 9,308 8,649
Metascan 5
+ Deep CDR
+ Proactive DLP
81.4/98.1 81.8/97.0 41.9/52.6 40.7/52.5 8,309 9,134
Metascan 5
+ Deep CDR
+ Proactive DLP
+ Vulnerability
87.8/99.3 87.8/99.3 46.8/59.4 46.8/59.4 8,512 8,930
Metascan 10
+ Deep CDR
98.0/99.9 98.2/99.9 45.1/59.5 44.6/58.2 7,630 7,215
Metascan 10
+ Deep CDR
+ Proactive DLP
97.2/99.9 96.9/99.9 50.1/59.2 51.4/59.1 7,035 6,240
Metascan 10
+ Deep CDR
+ Proactive DLP
+ Vulnerability
97.8/99.9 97.5/99.9 51.5/61.8 51.1/61.2 7,903 7,011
Metascan MAX
+ Deep CDR
91.2/98.3 90.6/97.4 70.2/84.1 74.9/84.1 9,154 9,063
Metascan MAX
+ Deep CDR
+ Proactive DLP
93.0/99.8 92.8/99.9 74.8/85.0 74.0/82.1 8,786 8,236
Metascan MAX
+ Deep CDR
+ Proactive DLP
+ Vulnerability
94.1/99.9 94.0/99.9 76.1/83.8 75.4/86.3 7,365 7,413

Recommendations

Controlling total processing time of each MD Core server:

In this deployment model, we should organize and send files in the way that it best utilizes the load of each MD Core server. It is not a good practice if one Core server is free while the other one is busy. By optimizing the distribution of files, we can ensure that each Core server is utilized efficiently, thereby improving overall system performance. Furthermore, this approach can help prevent bottlenecks and minimize the chances of system overload.

Adding proper number of MD Core servers to the cluster:

Adding more Core servers to this model will increase more load on the shared database. When adding a new MD Core server, users should monitor performance of database server such as memory/CPU consumption, disk usage, network bandwidth, request response time and so on… to see if it still can handle the load. This is important in order to maintain optimal performance and ensure that the database server can continue to efficiently serve the needs of the system.

Optimizing database server for better performance:

Continuing to add more Core servers to this model may result in increased strain on the shared database. As such, it is crucial to ensure that the database is optimized to handle the additional load effectively. Users can consider adjusting default database settings of PostgresSQL to optimize for more data load if needed. Here is where we can adjust PostgresSQL database settings: <PostgreSQL install location\version>\data\postgresql.conf.

Besides that, MD Core also supports a parameter (db_connection) for users to specify max connections that MD Core can handle, take a look at this guideline: MetaDefender Configuration.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard