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

Konstantin Khorenko khorenko at virtuozzo.com
Fri Apr 23 11:54:53 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.19
------>
commit 0b03c6ea119a379e70fc096bb13ca2273cedec73
Author: Vladimir Davydov <vdavydov.dev at gmail.com>
Date:   Fri Apr 23 11:54:53 2021 +0300

    fuse: increase min/max_dirty_pages up to 256/512 MB
    
    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>
    
    Acked-by: Maxim Patlasov <mpatlasov 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 667e6c33cfdf..07c28ee12d8d 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -1293,8 +1293,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(sb->s_bdi, (256 * 1024 * 1024) / PAGE_SIZE);
-	bdi_set_min_dirty(sb->s_bdi, (64 * 1024 * 1024) / PAGE_SIZE);
+	bdi_set_max_dirty(sb->s_bdi, (512 * 1024 * 1024) / PAGE_SIZE);
+	bdi_set_min_dirty(sb->s_bdi, (256 * 1024 * 1024) / PAGE_SIZE);
 
 	return 0;
 }


More information about the Devel mailing list