Use RAMDISK for the tempdirectory

In order to improve the file scan speed, a custom tempdirectory can be set for Metadefender Core.

Instructions for windows

Step 1:

Create a RAMDISK on your system.

We recommend the following tool for this: http://www.ltr-data.se/opencode.html/#ImDisk

After installation, use the ImDisk Virtual Disk Driver application, to create a new RAMDISK.

images/download/attachments/32847696/ImDiskManager.PNG

Mount new virtual disk:

images/download/attachments/32847696/ImDiskManager-Mount-New-Disk.PNG

After disk creation, windows will ask you to format the new disk.

images/download/attachments/32847696/Format-new-disk.PNG

Step 2:

Create, or edit the following registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\OPSWAT\Metascan Node\global\tempdirectory

In versions older that v4.6.0 the location of the configuration option is HKEY_LOCAL_MACHINE\SOFTWARE\OPSWAT\Metascan Agent\global\tempdirectory

where tempdirectory should be a string value with a desired location, for example: Z:\tempDir

images/download/attachments/32847696/Regedit-edit-create-new-key.PNG

images/download/attachments/32847696/Regedit-edit-key.PNG

The Recommended minimum size for the tempdirectory is:

  • For non archive files: the average file size * 40, at least 10GB

  • For archive files: the average archive size * 200

Step 3:

The changes to take effect restart the OPSWAT Metadefender Code Node service.

After the service restart, your custom directory will be used for temporary file storage during file scan.