Vm.dirty_ratio and vm.dirty_background_ratio

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Vm.dirty_ratio and vm.dirty_background_ratio
# 1  
Old 08-01-2017
Vm.dirty_ratio and vm.dirty_background_ratio

Can anyone explain me about vm.dirty_ration and vm.dirty_background_ratio in layman terms and whats the difference between this two parameters? I know both are writing the data from RAM to disk for better performance but I am not sure about the difference between this two parameters.
# 2  
Old 08-01-2017
The background one is a permanent flush thread in the kernel that regularly checks and executes if above threshold.
The other one is checked and eventually ececuted when a process allocates memory. In case it executes it causes a delay in that process.
# 3  
Old 08-01-2017
Thanks and You mean to say lock will happen on I/O until the process writes the data between RAM and the disk in the dirty_ratio. Am I understanding correct?
# 4  
Old 08-01-2017
Yes, the process is locked in D state until the kernel has flushed enough RAM cache to disk.
This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question