Smarter by Design.Simpler for Business
sys-cmd memory drop-all-caches
sys-cmd memory drop-all-caches first makes the pending disk writes complete in WEB-CLI, and then empties, together with the page cache, the dentry and inode caches that keep the file and directory information. It is the more comprehensive form of the memory drop-page-cache command.
Command Summary
admin@TR7LBWAF01> sys-cmd memory drop-all-caches
⚠ You are about to drop all caches
This will clear page cache, dentries and inodes. A noticeable performance degradation may occur.
Type "yes" to confirm: yes
All caches dropped successfully (page cache, dentries and inodes).
admin@TR7LBWAF01>
The command has no field or parameter. When it is run, the confirmation screen opens; when evet is written in the Turkish interface and yes in the English interface, the operation is applied. If anything else is written, the Invalid confirmation. Operation cancelled. message appears; Esc closes the confirmation screen.
How It Works
| Subject | Behavior |
|---|---|
| Context | It is not affected by the selected v-device and route table; it always runs on the device itself. |
| Effect | The file and directory information is read from the disk again together with the file contents; on services that write logs and open many files, the temporary slowdown can be noticeable. |
| The result message | When the work finishes, All caches dropped successfully (page cache, dentries and inodes). is written. This message is written without looking at the exit status of the operation; if there is a red line above it, the operation may not have been completed. |
| Recording | Every run is written to the user logs. |
The Difference from drop-page-cache
| Command | The caches that are emptied | Performance effect |
|---|---|---|
memory drop-page-cache | The page cache | Temporary |
memory drop-all-caches | The page cache, dentry and inode | Noticeable |
admin@TR7LBWAF01> sys-cmd memory status
admin@TR7LBWAF01> sys-cmd memory drop-all-caches
admin@TR7LBWAF01> sys-cmd memory status
admin@TR7LBWAF01>
Things to Know
- It is not run during busy hours. The performance effect is felt more under traffic; a maintenance window is preferred.
- It is not a permanent solution. The caches fill up again in a short time. First,
memory statusis used to see whether there is a real shortage.
