| .. SPDX-License-Identifier: GPL-2.0+ |
| .. Copyright 2023, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
| single: blkcache (command) |
| blkcache configure <blocks> <entries> |
| The *blkcache* command is used to control the size of the block cache and to |
| The block cache buffers data read from block devices. This speeds up the access |
| show and reset statistics |
| set the maximum number of cache entries and the maximum number of blocks per |
| maximum number of blocks per cache entry. The block size is device specific. |
| maximum number of entries in the cche. The initial value is 32. |
| => blkcache configure 16 64 |
| changed to max of 64 entries of 16 blocks each |
| The blkcache command is only available if CONFIG_CMD_BLOCK_CACHE=y. |
| If the command succeeds, the return code $? is set 0 (true). In case of an |
| error the return code is set to 1 (false). |