Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Marvin1973:pcs
ocfs2-test
0001-reflink-tune-reflink-direct-io-slice-size-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-reflink-tune-reflink-direct-io-slice-size-from-512-t.patch of Package ocfs2-test
From e75e2ae52a1c3afb8d728e1f729e13f9e212627e Mon Sep 17 00:00:00 2001 From: Gang He <ghe@suse.com> Date: Wed, 29 Apr 2020 11:12:11 +0800 Subject: [PATCH 1/2] reflink: tune reflink direct-io slice size from 512 to 4096 tune reflink direct-io slice size from 512 to 4096, since some disks' logic block(sector) size is 4096. e.g. blockdev --getss /dev/sdd 4096 --- programs/reflink_tests/multi_reflink_test.c | 2 +- programs/reflink_tests/reflink_test.c | 2 +- programs/reflink_tests/reflink_test.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/reflink_tests/multi_reflink_test.c b/programs/reflink_tests/multi_reflink_test.c index dcb8e51..ef4fec2 100755 --- a/programs/reflink_tests/multi_reflink_test.c +++ b/programs/reflink_tests/multi_reflink_test.c @@ -623,7 +623,7 @@ static int directio_test(void) unsigned long append_size = 0, truncate_size = 0; unsigned long interval, offset = 0; - unsigned long align_slice = 512; + unsigned long align_slice = 4096; unsigned long align_filesz = align_slice; o_flags_rw = open_rw_flags; diff --git a/programs/reflink_tests/reflink_test.c b/programs/reflink_tests/reflink_test.c index 2801968..51c52d9 100755 --- a/programs/reflink_tests/reflink_test.c +++ b/programs/reflink_tests/reflink_test.c @@ -2167,7 +2167,7 @@ static int directio_test(void) int ret, o_flags_rw, o_flags_ro; int sub_testno = 1; - unsigned long align_slice = 512; + unsigned long align_slice = 4096; unsigned long align_filesz = align_slice; while (align_filesz < file_size) diff --git a/programs/reflink_tests/reflink_test.h b/programs/reflink_tests/reflink_test.h index 3c39e85..4160f00 100755 --- a/programs/reflink_tests/reflink_test.h +++ b/programs/reflink_tests/reflink_test.h @@ -64,7 +64,7 @@ S_IWOTH|S_IXOTH|S_IRGRP|S_IWGRP|S_IXGRP) #define HUNK_SIZE (1024*1024) -#define DIRECTIO_SLICE (512) +#define DIRECTIO_SLICE (4096) #define PATTERN_SIZE (1024*1024*100) #define M_SIZE (1024*1024) #define G_SIZE (1024*1024*1024) -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor