OSDN Git Service

mm: change max readahead size to 512KB
authorLee Susman <lsusman@codeaurora.org>
Tue, 8 Oct 2013 06:47:59 +0000 (09:47 +0300)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 2 Feb 2018 08:58:39 +0000 (00:58 -0800)
Change the VM_MAX_READAHEAD value from the default 128KB
to 512KB. This will allow the readahead window to grow to a maximum size
of 512KB, which greatly benefits to sequential read throughput.

Change-Id: Ia0780ea4e2a4ae0b6111485b72fb25376dcb1f96
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
include/linux/mm.h

index 9d83f52..d2dcc87 100644 (file)
@@ -1985,7 +1985,7 @@ int write_one_page(struct page *page, int wait);
 void task_dirty_inc(struct task_struct *tsk);
 
 /* readahead.c */
-#define VM_MAX_READAHEAD       128     /* kbytes */
+#define VM_MAX_READAHEAD       512     /* kbytes */
 #define VM_MIN_READAHEAD       16      /* kbytes (includes current page) */
 
 int force_page_cache_readahead(struct address_space *mapping, struct file *filp,