![]() You can drop cache as explained above without rebooting the System i.e., no downtime required. When you are applying various settings and want to check, if it is actually implemented specially on the I/O-extensive benchmark, then you may need to clear the buffer cache. Is it a good idea to free Buffer and Cache in Linux that might be used by Linux Kernel? Free Buffer and Cache in Linux ![]() It is not recommended to use the third option above “.echo 3 >” in production until you know what you are doing, as it will clear pagecache, dentries, and inodes. If you have to clear the disk cache, the first command is safest in enterprise and production as “.echo 1 > ….” will clear the PageCache only. As mentioned in the kernel documentation, writing to drop_cache will clean cache without killing any application/service, command echo is doing the job of writing to file. The shell waits for each command to terminate before executing the next command in the sequence. Command Separated by “ ” run sequentially.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |