Let user choose larger buffers for IO reading
PATCH 1/1 Let user choose larger buffers for IO reading
From: Eduard Bloch <[email protected]>
Simultaneous reading of multiple files through a small one-page buffer is slow with classic HDDs. Let the user improve it by chosing buffers of several mebibytes if needed.
Signed-off-by Eduard Bloch <[email protected]>
--- misc-utils/hardlink.1.adoc | 6 +++++ misc-utils/hardlink.c | 50 ++++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 7 deletions(-)
misc-utils/hardlink.1.adoc +6 -0
@@ -71,6 +71,12 @@ A regular expression to include files. If the option *--exclude* has been given, *-s*, *--minimum-size* _size_:: The minimum size to consider. By default this is 1, so empty files will not be linked. The _size_ argument may be followed by the multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g., "K" has the same meaning as "KiB"). +*-S*, *--buffer-size* _size_:: +The size of read buffer used when comparing file contents (default: 8KiB). This +costs some additional memory but potentially reduces the amount of seek +operations and therefore improve performance, especially with mechanic disk +drives. Optional factor suffixes are supported, like with the *-s* option. This is mostly efficient with other filters (i.e. with *-f* or *-X*) and can be less efficient with *-top* options. + == ARGUMENTS *hardlink* takes one or more directories which will be searched for files to be linked.
misc-utils/hardlink.c +43 -7
130 lines not on this page · raw message
Signature · 1 line
2.33.0
Karel Zak
maintainerQuoted 3 lines · Chris Hofstaedtler
misc-utils/hardlink.1.adoc | 6 +++++ misc-utils/hardlink.c | 50 ++++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 7 deletions(-)
Good idea, merged (with small changes). Thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com