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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
ensure memory is aligned
chrisluae93c966d9d2
diff --git a/weed/mount/page_writer/upload_pipeline.go b/weed/mount/page_writer/upload_pipeline.goindex 4ed5ed7676..586e05b3fa 100644--- a/weed/mount/page_writer/upload_pipeline.go+++ b/weed/mount/page_writer/upload_pipeline.go@@ -12,6 +12,8 @@ import (type LogicChunkIndex inttype UploadPipeline struct {+ uploaderCount int32+ uploaderCountCond *sync.Condfilepath util.FullPathChunkSize int64writableChunks map[LogicChunkIndex]PageChunk@@ -19,8 +21,6 @@ type UploadPipeline struct {sealedChunks map[LogicChunkIndex]*SealedChunksealedChunksLock sync.Mutexuploaders *util.LimitedConcurrentExecutor- uploaderCount int32- uploaderCountCond *sync.CondsaveToStorageFn SaveToStorageFuncactiveReadChunks map[LogicChunkIndex]intactiveReadChunksLock sync.Mutexdiff --git a/weed/server/filer_server.go b/weed/server/filer_server.goindex a243b07f90..7b57c68c72 100644--- a/weed/server/filer_server.go+++ b/weed/server/filer_server.go@@ -72,6 +72,9 @@ type FilerOption struct {}type FilerServer struct {+ inFlightDataSize int64+ inFlightDataLimitCond *sync.Cond+filer_pb.UnimplementedSeaweedFilerServeroption *FilerOptionsecret security.SigningKey@@ -90,9 +93,6 @@ type FilerServer struct {// track known metadata listenersknownListenersLock sync.MutexknownListeners map[int32]int32-- inFlightDataSize int64- inFlightDataLimitCond *sync.Cond}func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) (fs *FilerServer, err error) {diff --git a/weed/util/limiter.go b/weed/util/limiter.goindex 2debaaa855..9d63c12a11 100644--- a/weed/util/limiter.go+++ b/weed/util/limiter.go@@ -50,10 +50,10 @@ func (c *LimitedConcurrentExecutor) Execute(job func()) {type OperationRequest func()type LimitedOutOfOrderProcessor struct {- processorSlots uint32- processors []chan OperationRequestprocessorLimit int32processorLimitCond *sync.Cond+ processorSlots uint32+ processors []chan OperationRequestcurrentProcessor int32}