[Devel] [PATCH rh7] fuse: increase min/max_dirty_pages up to 256/512 MB

Vladimir Davydov vdavydov at virtuozzo.com
Mon Apr 25 05:02:53 PDT 2016


According to Alexey, the pstorage chunk size was increased from 64 MB up
to 256 MB, which made the default min/max fuse dirty pages limits (64
and 256 MB) too low to yield maximal rate while doing sequential writes
over pstorage. Let's increase the default limits up to 256 and 512 MB
respectively to restore pstorage performance.

Suggested-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 fs/fuse/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index bb010cbc5097..3772b62f7ad1 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -1100,8 +1100,8 @@ static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb)
 	/*
 	 * These values have precedence over max_ratio
 	 */
-	bdi_set_max_dirty(&fc->bdi, (256 * 1024 * 1024) / PAGE_SIZE);
-	bdi_set_min_dirty(&fc->bdi, (64 * 1024 * 1024) / PAGE_SIZE);
+	bdi_set_max_dirty(&fc->bdi, (512 * 1024 * 1024) / PAGE_SIZE);
+	bdi_set_min_dirty(&fc->bdi, (256 * 1024 * 1024) / PAGE_SIZE);
 
 	return 0;
 }
-- 
2.1.4



More information about the Devel mailing list