mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
lib/fs: clarify description for -fs.disableMmap
command-line flag
This commit is contained in:
parent
6daa5f7500
commit
a23806f486
@ -14,7 +14,8 @@ import (
|
||||
)
|
||||
|
||||
var disableMmap = flag.Bool("fs.disableMmap", is32BitPtr, "Whether to use pread() instead of mmap() for reading data files. "+
|
||||
"By default mmap() is used for 64-bit arches and pread() is used for 32-bit arches, since they cannot data files bigger than 2^32 bytes in memory")
|
||||
"By default mmap() is used for 64-bit arches and pread() is used for 32-bit arches, since they cannot read data files bigger than 2^32 bytes in memory. "+
|
||||
"mmap() is usually faster for reading small data chunks than pread()")
|
||||
|
||||
const is32BitPtr = (^uintptr(0) >> 32) == 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user