Linux Server Load balancer TOP Command-display kernel chip Cache Information
The Linux kernel needs to allocate memory for temporary objects such as tasks, device structures, and nodes. The cache distributor manages the cache of these types of objects. The cache distributor is deployed in the modern Linux kernel to hold the cache, which is called a piece. Different types of slice cache are maintained by the slice distributor. This article focuses on the slabtop command, which displays the real-time kernel chip cache information.
1. command usage:
This command is easy to use. By default, no parameters are required during execution. However, it requires the root privilege to read kernel chip information. If you run this command as a common user, the following error occurs:
You can set "sudo" to run this command. The default output is as follows:
To exit slabtop, just press 'Q', as in the top command.
2. Slabtop options: 2.1 display interval:
By default, slabtop is refreshed every 3 seconds. However, if you want to adjust the interval, you can use the-d or -- delay = N option to adjust the refresh interval, in seconds:
2.2 sorting criteria:
There are many fields in the slabtop output. The-s or -- sort = S option can sort these fields according to the specified sorting standard. This option will be detailed in the next section.
2.3 output once:
The-o or -- once option does not refresh the output. It only throws the output result to STDOUT once and then exits.
Version 2.4:
The-V or -- version option displays the command version and exits.
2.5 help:
Common options:-h or -- help.
For more details, please continue to read the highlights on the next page: