Docker on Linux VM using host OS RAM

user1173240

On a Windows 10 OS system, I have installed VirtualBox with 4 GB RAM, using CentOs 7 as its OS. Turning on the VM, the RAM utilization of the host OS increases as expected to a certain level (the system overall has 8 GB RAM).

I expect that the VM OS has its RAM quota (4 GB), and any applications started inside the VM will use its RAM and leave the host OS alone.

However, when I run docker inside the VM, the overall RAM consumption of the entire system increases, and when I start a few java based containers inside the VM, RAM consumption of the system increases again. I repeated this experiment and observations were similar.

I am slightly confused by this behaviour. I would have expected that once the VM starts with its host OS, it will reserve 4 GB memory for itself, and any applications started inside (docker etc.) will use RAM reserved for the VM, but I see the host or system RAM consumption increasing instead.

I observed the increased RAM consumption in task manager of Windows 10 and in Resmon.

Is it possible that docker or java applications started inside the Linux VM somehow see the whole system memory available for use and try ad use that instead? I'd have thought it would not happen since a VM provides quite a level of isolation from the host OS.

If the behaviour is, that the Linux OS takes less RAM in the beginning upon startup and only increases when there are applications inside the VM demanding more, is it reasonable to expect that whatever be the state of the applications, RAM consumption of the VM will not increase beyond the 4 GB quota allocated to it?

xenoid

No, the VM doesn't reserve all the RAM it can potentially use. Its RAM is allocated as needed. It is not uncommon in data centers that the cumulated RAM of the VMs running on a server far exceeds the actual hardware RAM size.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to bring host and VM on same subnet in Linux?

분류에서Dev

VM host management in case of Linux bridge

분류에서Dev

How to run the same copy of Eclipse on Windows host & Linux VM?

분류에서Dev

Can't boot Kali-linux in Virtualbox (Elementary OS host)

분류에서Dev

Allocate more RAM for the Dart VM

분류에서Dev

How to diagnose, why Linux Mint host freezes after starting Virtualbox VM

분류에서Dev

Trying to create a Big Endian environment using solaris 10 SPARC VM in Windows8 Host

분류에서Dev

VM의 Chrome OS?

분류에서Dev

Is it possible to use different graphics chips in host and VM?

분류에서Dev

Ubuntu and Mint slow on host, fast on VM

분류에서Dev

Ubuntu and Mint slow on host, fast on VM

분류에서Dev

Virtualbox static IP to windows VM on ubuntu host

분류에서Dev

Fedora VM not connecting to Host-Only

분류에서Dev

기존 Linux VM에서 Docker Desktop을 실행할 수 있습니까?

분류에서Dev

Linux VM 내의 Docker가 웹 애플리케이션에 연결할 수 없음

분류에서Dev

Dart VM에 더 많은 RAM 할당

분류에서Dev

Only seeing half my RAM in BIOS and OS

분류에서Dev

Accessing Docker Services from Host

분류에서Dev

Hacking attempts to Linux VM in Azure

분류에서Dev

Linux 호스트 시스템에서 실행되는 Linux VM에서 Docker 컨테이너 실행

분류에서Dev

linux hang on transfer with rsync,can be a ram error?

분류에서Dev

Linux : RAM을 SDCard로 교체

분류에서Dev

docker는 VM이 아닙니다. 왜 컨테이너에 기본 이미지 OS가 필요합니까?

분류에서Dev

VM을 통한 Qubes OS?

분류에서Dev

Remotely access mysql db on vm from windows as host

분류에서Dev

"vendor VIB for HP found, but host is VMware"-error while installing VM

분류에서Dev

Can I run a VPN on a host machine through a VM to connect to Tor?

분류에서Dev

ESXi와 호환되는 Linux 호스트 OS에서 실행되는 VM웨어 제품?

분류에서Dev

ESXi와 호환되는 Linux 호스트 OS에서 실행되는 VM웨어 제품?

Related 관련 기사

  1. 1

    How to bring host and VM on same subnet in Linux?

  2. 2

    VM host management in case of Linux bridge

  3. 3

    How to run the same copy of Eclipse on Windows host & Linux VM?

  4. 4

    Can't boot Kali-linux in Virtualbox (Elementary OS host)

  5. 5

    Allocate more RAM for the Dart VM

  6. 6

    How to diagnose, why Linux Mint host freezes after starting Virtualbox VM

  7. 7

    Trying to create a Big Endian environment using solaris 10 SPARC VM in Windows8 Host

  8. 8

    VM의 Chrome OS?

  9. 9

    Is it possible to use different graphics chips in host and VM?

  10. 10

    Ubuntu and Mint slow on host, fast on VM

  11. 11

    Ubuntu and Mint slow on host, fast on VM

  12. 12

    Virtualbox static IP to windows VM on ubuntu host

  13. 13

    Fedora VM not connecting to Host-Only

  14. 14

    기존 Linux VM에서 Docker Desktop을 실행할 수 있습니까?

  15. 15

    Linux VM 내의 Docker가 웹 애플리케이션에 연결할 수 없음

  16. 16

    Dart VM에 더 많은 RAM 할당

  17. 17

    Only seeing half my RAM in BIOS and OS

  18. 18

    Accessing Docker Services from Host

  19. 19

    Hacking attempts to Linux VM in Azure

  20. 20

    Linux 호스트 시스템에서 실행되는 Linux VM에서 Docker 컨테이너 실행

  21. 21

    linux hang on transfer with rsync,can be a ram error?

  22. 22

    Linux : RAM을 SDCard로 교체

  23. 23

    docker는 VM이 아닙니다. 왜 컨테이너에 기본 이미지 OS가 필요합니까?

  24. 24

    VM을 통한 Qubes OS?

  25. 25

    Remotely access mysql db on vm from windows as host

  26. 26

    "vendor VIB for HP found, but host is VMware"-error while installing VM

  27. 27

    Can I run a VPN on a host machine through a VM to connect to Tor?

  28. 28

    ESXi와 호환되는 Linux 호스트 OS에서 실행되는 VM웨어 제품?

  29. 29

    ESXi와 호환되는 Linux 호스트 OS에서 실행되는 VM웨어 제품?

뜨겁다태그

보관