mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: get rid of large buffers (#19549)
these lead to run-away usage of memory beyond which the Go's GC can handle, we have to re-visit this differently, remove this for now.
This commit is contained in:
@@ -34,26 +34,12 @@ import (
|
||||
|
||||
// Block sizes constant.
|
||||
const (
|
||||
SmallBlock = 32 * humanize.KiByte // Default r/w block size for smaller objects.
|
||||
LargeBlock = 1 * humanize.MiByte // Default r/w block size for normal objects.
|
||||
XLargeBlock = 4 * humanize.MiByte // Default r/w block size for very large objects.
|
||||
XXLargeBlock = 8 * humanize.MiByte // Default r/w block size for very very large objects.
|
||||
SmallBlock = 32 * humanize.KiByte // Default r/w block size for smaller objects.
|
||||
LargeBlock = 1 * humanize.MiByte // Default r/w block size for normal objects.
|
||||
)
|
||||
|
||||
// aligned sync.Pool's
|
||||
var (
|
||||
ODirectPoolXXLarge = sync.Pool{
|
||||
New: func() interface{} {
|
||||
b := disk.AlignedBlock(XXLargeBlock)
|
||||
return &b
|
||||
},
|
||||
}
|
||||
ODirectPoolXLarge = sync.Pool{
|
||||
New: func() interface{} {
|
||||
b := disk.AlignedBlock(XLargeBlock)
|
||||
return &b
|
||||
},
|
||||
}
|
||||
ODirectPoolLarge = sync.Pool{
|
||||
New: func() interface{} {
|
||||
b := disk.AlignedBlock(LargeBlock)
|
||||
|
||||
Reference in New Issue
Block a user