Skip to content

Commit b0368aa

Browse files
committed
wip tmp
1 parent 737fceb commit b0368aa

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

.tool-versions

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
make latest
2+
golang latest
3+
kubectl latest

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"terminal.integrated.scrollback": 30000
3+
}

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,11 @@ render-release: $(RENDERED) kustomize
373373
cd autoscale-scheduler && $(KUSTOMIZE) edit set image autoscale-scheduler=autoscale-scheduler:dev
374374
cd autoscaler-agent && $(KUSTOMIZE) edit set image autoscaler-agent=autoscaler-agent:dev
375375

376+
.PHONY: refresh-runner
377+
refresh-runner: check-local-context kubectl docker-build-runner load-images
378+
$(KUBECTL) apply -f $(RENDERED)/neonvm-runner-image-loader.yaml
379+
$(KUBECTL) -n neonvm-system rollout status daemonset neonvm-runner-image-loader
380+
376381
.PHONY: deploy
377382
deploy: check-local-context docker-build load-images render-manifests kubectl ## Deploy controller to the K8s cluster specified in ~/.kube/config.
378383
$(KUBECTL) apply -f $(RENDERED)/multus-dev.yaml

vm-examples/many-small-files/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ docker build -t many-small-files . && \
2323
Build a kernel:
2424
```
2525
make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- -j `nproc`
26-
cp ./arch/x86/boot/bzImage ../../autoscaling/neonvm-kernel/vmlinuz
26+
cp ./arch/x86/boot/bzImage ../autoscaling/neonvm-kernel/vmlinuz
2727
2828
make docker-build-runner && make deploy
2929
```

vm-examples/many-small-files/mem.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ def print_system_info():
192192
try:
193193
while True:
194194
print_system_info()
195-
# try:
196-
# subprocess.run(["sh", "-c", "echo 3 > /proc/sys/vm/drop_caches"], check=True)
197-
# except subprocess.CalledProcessError as e:
198-
# print(f"Failed to drop caches: {e}")
195+
try:
196+
subprocess.run(["sh", "-c", "echo 1 > /proc/sys/vm/drop_caches"], check=True)
197+
except subprocess.CalledProcessError as e:
198+
print(f"Failed to drop caches: {e}")
199199
time.sleep(delay_seconds)
200200
except KeyboardInterrupt:
201201
print("\nExiting...")

vm-examples/many-small-files/spec.yml

+1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ spec:
8989
swap: 40Gi
9090
sysctl:
9191
- vm.overcommit_memory=2
92+
- vm.oom_kill_allocating_task=1
9293
restartPolicy: Always
9394
schedulerName: autoscale-scheduler

0 commit comments

Comments
 (0)