Skip to content

Commit 1676071

Browse files
committed
Configure /dev/shm size for corpus tmpfs
1 parent 271cb91 commit 1676071

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

deployment/crs-architecture.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ up() {
106106
echo -e "${GRN}Minikube cluster status:${NC}"
107107
minikube status
108108

109+
# Resize /dev/shm inside minikube for corpus tmpfs storage.
110+
# Minikube docker driver defaults to 64MB, which is too small for fuzzing corpus data
111+
if [ -n "${MINIKUBE_SHM_SIZE_GB:-}" ]; then
112+
echo -e "${BLU}Resizing minikube /dev/shm to ${MINIKUBE_SHM_SIZE_GB}G${NC}"
113+
docker exec minikube mount -o remount,size="${MINIKUBE_SHM_SIZE_GB}G" /dev/shm
114+
fi
115+
109116
echo -e "${BLU}Building local docker images${NC}"
110117
eval "$(minikube docker-env --shell bash)"
111118

deployment/env.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ export FUZZER_BASE_IMAGE="gcr.io/oss-fuzz-base/base-runner"
103103
export MINIKUBE_CPU=6
104104
export MINIKUBE_MEMORY_GB=10
105105
export MINIKUBE_DISK_GB=80
106+
# Increase /dev/shm size if corpus tmpfs is enabled
107+
# export MINIKUBE_SHM_SIZE_GB=60

deployment/k8s/values-upstream-minikube-16cpu-128gb.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# export MINIKUBE_CPU=30
55
# export MINIKUBE_MEMORY_GB=120
66
# export MINIKUBE_DISK_GB=160
7+
# export MINIKUBE_SHM_SIZE_GB=60
78
global:
89
environment: "minikube"
910
orchestratorImage:

0 commit comments

Comments
 (0)