Installing and Configuring Acache_client and Hcache
Installing Acache_client and Hcache Using RPM
- 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/
- After obtaining the installation package, verify its integrity and consistency for security purposes.
Perform the verification:
- 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.
- If it is the initial installation, run the following 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.
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.
|