diff options
| author | chrislu <chris.lu@gmail.com> | 2022-02-14 20:42:33 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-02-14 20:42:33 -0800 |
| commit | 4e181db21a79777f229f5695e897a694b66d9937 (patch) | |
| tree | 25acbb92c7d0ff4f87ab2099ac0cfa29c10d6c14 /weed/command/mount2.go | |
| parent | ebc22625b4d485430b33f67819692da08e11c97c (diff) | |
| download | seaweedfs-4e181db21a79777f229f5695e897a694b66d9937.tar.xz seaweedfs-4e181db21a79777f229f5695e897a694b66d9937.zip | |
mount: default disable cache
* Prevent cases as https://github.com/seaweedfs/seaweedfs-csi-driver/issues/43
* Improve read write benchmarks
* Improve AI training performance. Most of the files are just read once.
Diffstat (limited to 'weed/command/mount2.go')
| -rw-r--r-- | weed/command/mount2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/mount2.go b/weed/command/mount2.go index d7b125c6f..b285f5d3f 100644 --- a/weed/command/mount2.go +++ b/weed/command/mount2.go @@ -47,7 +47,7 @@ func init() { mount2Options.chunkSizeLimitMB = cmdMount2.Flag.Int("chunkSizeLimitMB", 2, "local write buffer size, also chunk large files") mount2Options.concurrentWriters = cmdMount2.Flag.Int("concurrentWriters", 32, "limit concurrent goroutine writers if not 0") mount2Options.cacheDir = cmdMount2.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data") - mount2Options.cacheSizeMB = cmdMount2.Flag.Int64("cacheCapacityMB", 1000, "local file chunk cache capacity in MB (0 will disable cache)") + mount2Options.cacheSizeMB = cmdMount2.Flag.Int64("cacheCapacityMB", 0, "local file chunk cache capacity in MB") mount2Options.dataCenter = cmdMount2.Flag.String("dataCenter", "", "prefer to write to the data center") mount2Options.allowOthers = cmdMount2.Flag.Bool("allowOthers", true, "allows other users to access the file system") mount2Options.umaskString = cmdMount2.Flag.String("umask", "022", "octal umask, e.g., 022, 0111") |
