Rate This Document
Findability
Accuracy
Completeness
Readability

Installing and Configuring Acache_client and Hcache

Installing Acache_client and Hcache Using RPM

  1. Obtain the RPM installation package (hcache included) and digital certificate of acache_client from Huawei technical support.

    Table 1 lists the default RPM installation files and paths.

    Table 1 Installation files and paths

    File

    Description

    Path

    acache_client

    Smart prefetch framework

    /usr/local/bin/

    bcache.conf

    Bcache configuration file

    /etc/modprobe.d/

    acache_client.service

    Configuration file required for using systemctl to start acache_client

    /usr/lib/systemd/system/

    hcache_config.cfg

    Hcache configuration file

    /usr/local/bin/

    libhcache.so.[version_number]

    Hcache library file

    /usr/lib64/

  2. After obtaining the installation package, verify its integrity and consistency for security purposes.

    Perform the verification:

    1. Obtain the software digital certificate and installation package. For details, see 1.
    2. Obtain the verification tool and method from the following link:
    3. Verify the software package integrity by following the procedure described in the OpenPGP Signature Verification Guide obtained in 2.
  3. Use the root permission to start the installation.
    • If it is the initial installation, run the following command:
      rpm -ivh acache_client-x.x.x_x.x.x-1.el7.aarch64.rpm
    • If it is an upgrade, run the following command:
      rpm -U acache_client-x.x.x_x.x.x-1.el7.aarch64.rpm

    During the installation, if the message "package acache_client... is already installed" is displayed, continue the installation using either of the following methods:

    • Run the rpm -e acache_client command to uninstall the RPM package and then run the rpm -ivh command to install it.
    • Run the rpm -ivh acache_client-x.x.x_x.x.x-1.el7.aarch64.rpm -force command.

Configuring Hcache

The smart prefetch algorithm hcache provides the initial configuration file hcache_config.cfg, which is stored in the same directory as acache_client by default, that is, /usr/local/bin. The algorithm reads the file as the initial parameter during the initial loading.

Table 2 describes the configuration items of hcache_config.cfg.

After the modification is complete, restart acache_client. For details, see Stopping the Smart Prefetch Engine and Starting the Smart Prefetch Engine.

Table 2 Configuration items of hcache_config.cfg

Parameter

Default Initial Value

Value Scope

Description

g_pagecacheReadaheadControl

1

[0,1]

Indicates whether to allow the prefetch algorithm to take over the pagecache function. It is determined by you.

  • If the value is 1, the takeover is enabled. The smart prefetch algorithm dynamically modifies the prefetch parameters of pagecache, and works with bcache to prefetch data.
  • If the value is 0, the takeover is disabled. The smart prefetch algorithm works only on bcache.