User Tools

Site Tools


linux:clear_swap_cache_buffer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:clear_swap_cache_buffer [2016/11/29 10:25]
admin
linux:clear_swap_cache_buffer [2016/11/29 10:27] (current)
admin
Line 4: Line 4:
 Like any other operating system, GNU/Linux has implemented a memory management efficiently and even more than that. But if any process is eating away your memory and you want to clear it, Linux provides a way to flush or clear ram cache. Like any other operating system, GNU/Linux has implemented a memory management efficiently and even more than that. But if any process is eating away your memory and you want to clear it, Linux provides a way to flush or clear ram cache.
  
-====== How to Clear Cache in Linux? ​======+===== How to Clear Cache in Linux? =====
  
  
Line 32: Line 32:
 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. It is not recommended to use 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. It is not recommended to use third option above  “...echo 3 >” in production until you know what you are doing, as it will clear PageCache, dentries and inodes.
  
-===== Is it a good idea to free Buffer and Cache in Linux that might be used by Linux Kernel? ​=====+==== Is it a good idea to free Buffer and Cache in Linux that might be used by Linux Kernel? ====
    
  
Line 67: Line 67:
 For more details on how to cron a job you may like to check our article on 11 Cron Scheduling Jobs. For more details on how to cron a job you may like to check our article on 11 Cron Scheduling Jobs.
  
-===== Is it good idea to auto clear RAM cache on production server? ​=====+==== Is it good idea to auto clear RAM cache on production server? ====
  
  
Line 74: Line 74:
 At the same time scheduled script run and clears everything in cache. Now all the user are fetching data from disk. It will result in server crash and corrupt the database. So clear ram-cache only when required,​and known your foot steps, else you are a Cargo Cult System Administrator. At the same time scheduled script run and clears everything in cache. Now all the user are fetching data from disk. It will result in server crash and corrupt the database. So clear ram-cache only when required,​and known your foot steps, else you are a Cargo Cult System Administrator.
  
-====== How to Clear Swap Space in Linux? ​======+===== How to Clear Swap Space in Linux? =====
  
 If you want to clear Swap space, you may like to run the below command. If you want to clear Swap space, you may like to run the below command.
linux/clear_swap_cache_buffer.1480411515.txt.gz · Last modified: 2016/11/29 10:25 by admin