Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

workaround memory hotplug online #363

@bergwolf

Description

@bergwolf

Because we do not wait for memory device to show up when online it, it is quite possible that we cannot online it properly.

[macbeth@runtime]$docker run --rm -it --runtime kata -m 536870912 busybox
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
/ # free -m
             total       used       free     shared    buffers     cached
Mem:           108         53         54         30          0         31
-/+ buffers/cache:         22         85
Swap:            0          0          0
/ # cd /sys/devices/system/memory/
/sys/devices/system/memory # ls
auto_online_blocks  block_size_bytes    memory0             memory32            memory33            memory34            uevent
/sys/devices/system/memory # cat */online
1
0
0
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions