From b2e44e6cf009584a2b57e0a7adebd67124fc8983 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Mon, 15 Sep 2025 13:09:00 +0000 Subject: [PATCH] rgw/d4n: change cache write ::open() flags changing the default flags to O_DSYNC a small performance improvement is observable Signed-off-by: Mark Kogan --- src/common/options/rgw.yaml.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/options/rgw.yaml.in b/src/common/options/rgw.yaml.in index ffec3bacb24..6ab18332f5f 100644 --- a/src/common/options/rgw.yaml.in +++ b/src/common/options/rgw.yaml.in @@ -3932,8 +3932,11 @@ options: long_desc: For example, to configure synchronized I/O, fcntl-linux.h defines (converted from octal) O_SYNC = 1052672 O_DSYNC = 4096 + O_DIRECT = 16384 + O_SYNC | O_DIRECT = 1118208 + O_DSYNC | O_DIRECT = 65552 (0 for no modification of the flags) - default: 1052672 + default: 4096 services: - rgw with_legacy: true -- 2.39.5