You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/gce-pd-csi-driver/cache.go
+23-18
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,18 @@ import (
17
17
)
18
18
19
19
const (
20
-
cacheSuffix="csi-fast"
21
-
mainLvSuffix="csi-main"
22
-
raidedLocalSsdName="csi-driver-data-cache"
23
-
raidMode="0"
24
-
maxAllowedChunksint64=1000000// This is the max allowed chunks for LVM
25
-
GiBint64=1024*1024*1024
26
-
KiBint64=1024
20
+
cacheSuffix="csi-fast"
21
+
mainLvSuffix="csi-main"
22
+
raidedLocalSsdName="csi-driver-data-cache"
23
+
raidMode="0"
24
+
maxAllowedChunksint64=1000000// This is the max allowed chunks for LVM
25
+
GiBfloat64=1024*1024*1024
26
+
KiBfloat64=1024
27
+
)
28
+
29
+
var (
30
+
maxChunkSizefloat64=1*GiB// Max allowed chunk size as per LVM documentation
31
+
minChunkSizefloat64=160*KiB// This is randomly selected, we need a multiple of 32KiB, the default size would be too small for caching https://man7.org/linux/man-pages/man8/lvcreate.8.html (--chunksize)
varmaxChunkSizeint64=1*GiB// Max allowed chunk size as per LVM documentation
534
-
varminChunkSizeint64=320*KiB// This is randomly selected, we need a multiple of 32KiB, the default size would be too small for caching https://man7.org/linux/man-pages/man8/lvcreate.8.html (--chunksize)
0 commit comments