Skip to content

McAfee Process Handling

Raphael Fretter edited this page Nov 6, 2023 · 5 revisions

This information is regarding the processes run on the LEAF servers under the McAfee installation. The intention is to limit the resource usage of these processes to allow stronger operation on the server and, subsequently, a smoother user experience on the LEAF platform.


When ENSL is installed with OAS enabled (without Deferred Scan), it blocks access to the file until ENSL scans it and finds it to be clean. If the file isn't clean, ENSL takes the specified action and then blocks access to the file. A file scan might complete in milliseconds or might take longer for bigger files.

We observed that in high I/O intensive environments (for example, Hadoop and splunkd), a small delay in getting events from the system (due to the scan of files) causes a delay in performance and the operation of the application. So, blocking the events while scanning caused operation issues. To address this issue, ENSL 10.7.5 and later provide the "Deferred Scan" option. Both the READ and WRITE events get scanned but aren't blocked during scanning.

With Fanotify, ENSL uses a "Deferred Scan" option that enables users to perform the scan in a non-blocking manner to support high I/O intensive applications to run smoothly.

  • NOTE: Deferred Scan is applicable only on Fanotify-based systems.

Check defered scan status

  1. /opt/McAfee/ens/tp/bin/mfetpcli --getdeferredscan

Enable Deferred Scanning 

  1. /opt/McAfee/ens/tp/bin/mfetpcli --usefanotify
  2. service mfetpd restart
  3. /opt/McAfee/ens/tp/bin/mfetpcli --setdeferredscan enable
  4. service mfetpd restart

Using CPU Throttling for on-access scan

  1. /opt/McAfee/ens/tp/bin/mfetpcli --getoascpulimit
  2. /opt/McAfee/ens/tp/bin/mfetpcli --setoascpulimit 60 (can be 50- 99%)
  3. /opt/McAfee/ens/tp/bin/mfetpcli --getoascpulimit