mm: new writeback and swappiness values from Ktweak

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
This commit is contained in:
Nahuel Gómez 2024-10-25 20:49:49 -03:00 committed by Ksawlii
parent bcec04dde1
commit bfb3710a7c
2 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ int vm_highmem_is_dirtyable;
/*
* The generator of dirty data starts writeback at this percentage
*/
int vm_dirty_ratio = 20;
int vm_dirty_ratio = 30;
/*
* vm_dirty_bytes starts at 0 (disabled) so that it is a function of
@ -102,14 +102,14 @@ unsigned long vm_dirty_bytes;
/*
* The interval between `kupdate'-style writebacks
*/
unsigned int dirty_writeback_interval = 5 * 100; /* centiseconds */
unsigned int dirty_writeback_interval = 3000; /* centiseconds */
EXPORT_SYMBOL_GPL(dirty_writeback_interval);
/*
* The longest time for which data is allowed to remain dirty
*/
unsigned int dirty_expire_interval = 30 * 100; /* centiseconds */
unsigned int dirty_expire_interval = 3000; /* centiseconds */
/*
* Flag that makes the machine dump writes/reads and block dirtyings.

View file

@ -179,7 +179,7 @@ struct scan_control {
/*
* From 0 .. 200. Higher means more swappy.
*/
int vm_swappiness = 60;
int vm_swappiness = 100;
#define DEF_KSWAPD_THREADS_PER_NODE 1
static int kswapd_threads = DEF_KSWAPD_THREADS_PER_NODE;