Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petuhovskiy committed Jan 29, 2025
1 parent c2ed43b commit 5683932
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions neonvm-runner/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ func buildQEMUCmd(

const (
baseKernelCmdline = "panic=-1 init=/neonvm/bin/init loglevel=7 root=/dev/vda rw"
kernelCmdlineDIMMSlots = "memhp_default_state=online_movable"
kernelCmdlineVirtioMemTmpl = "memhp_default_state=online memory_hotplug.online_policy=auto-movable memory_hotplug.auto_movable_ratio=%s"
kernelCmdlineDIMMSlots = "memhp_default_state=online_movable memory_hotplug.memmap_on_memory=on"
kernelCmdlineVirtioMemTmpl = "memhp_default_state=online memory_hotplug.online_policy=auto-movable memory_hotplug.auto_movable_ratio=%s memory_hotplug.memmap_on_memory=on"
)

func makeKernelCmdline(cfg *Config, logger *zap.Logger, vmSpec *vmv1.VirtualMachineSpec, vmStatus *vmv1.VirtualMachineStatus, hostname string) string {
Expand Down
2 changes: 1 addition & 1 deletion vm-examples/many-small-files/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN cargo build --release
FROM neondatabase/compute-node-v16:latest
USER root

RUN apt update && apt install --no-install-recommends -y smem htop lsof
RUN apt update && apt install --no-install-recommends -y smem htop lsof sysstat

COPY --from=builder /usr/src/app/target/release/many-small-files /usr/local/bin/
COPY ./mem.py /root/mem.py
Expand Down
8 changes: 8 additions & 0 deletions vm-examples/many-small-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ docker build -t many-small-files . && \

## Cheatsheet

Build a kernel:
```
make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- -j `nproc`
cp ./arch/x86/boot/bzImage ../../autoscaling/neonvm-kernel/vmlinuz
make docker-build-runner && make deploy
```

To start a VM:
```
kubectl apply -f ./spec.yml
Expand Down

0 comments on commit 5683932

Please sign in to comment.