Set the file size in advance on GPFS

When started to use the buffer on GPFS we notices an increase
of metadata access times on GPFS. To try to reduce the number
of metadata updates we set the file size at creation time.
This commit is contained in:
2020-07-17 12:09:46 +02:00
parent 83dc003c79
commit 2bf658d30c
2 changed files with 41 additions and 0 deletions
+3
View File
@@ -7,6 +7,9 @@
class BufferBinaryWriter {
const size_t MAX_FILE_BYTES =
buffer_config::FILE_MOD * sizeof(BufferBinaryFormat);
const std::string root_folder_;
const std::string device_name_;
std::string latest_filename_;