Rate This Document
Findability
Accuracy
Completeness
Readability

Managing Acache_client and Hcache Logs

The acache_client and hcache logs are stored in the acache_client.log and acache_client_[No.].log files in the /var/log/prefetch/ directory. The logs that were generated a long time ago are stored in the acache_client_[No.].log files. There can be up to 20 acache_client_[No.].log files. A log with a larger [No.] was generated earlier.

By default, each log file is 10 MB, and info-level logs are printed. You can add options to the boot command to modify the log file size and log printing level.

For example:

  • Add the --logsize option to change the log size and --loglevel to change the log printing level.
    1. Set the size of a single log file to 20 MB (20,480 KB).
      acache_client --logsize=20480
    2. Set the log printing level to ERROR.

      The ERROR level has four options:

      • 1: prints error logs.
      • 2: prints warning logs.
      • 3: prints info logs.
      • 4: prints debug logs.
      acache_client --loglevel=4
  • Incorporate the log file size and log printing level settings into the acache_client.service file.
    1. Stop the acache_client. For details, see Stopping the Smart Prefetch Engine.
    2. Modify the acache_client.service file.

      File path: /usr/lib/systemd/system/acache_client.service

    When the acache_client is running, do not delete the acache_client.log file in the /var/log/prefetch/. Otherwise, logs cannot be generated.

    If the acache_client.log file is deleted by mistake, restart the acache_client to recover it.