Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

use 2MB chunk size. cache size is the wrong option

chrislu41bbf320bb56
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index e25437fd30..4d4774f34f 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -42,7 +42,7 @@ func newFileHandle(file *File, uid, gid uint32) *FileHandle {
fh := &FileHandle{
f: file,
// dirtyPages: newContinuousDirtyPages(file, writeOnly),
- dirtyPages: newPageWriter(file, file.wfs.option.CacheSizeMB*1024*1024),
+ dirtyPages: newPageWriter(file, 2*1024*1024),
Uid: uid,
Gid: gid,
}