Coder Social home page Coder Social logo

Dynamic Memory Usage about windows HOT 3 CLOSED

dockur avatar dockur commented on July 23, 2024
Dynamic Memory Usage

from windows.

Comments (3)

kroese avatar kroese commented on July 23, 2024

In the QEMU config I added the "balloon" PCI device, and the VirtIO balloon drivers should be automaticly installed during Windows installation, but maybe I forgot some step or setting to make it work (never really tested it).

Do you see the balloon device in device manager?

from windows.

raddacle avatar raddacle commented on July 23, 2024

The VirtIO Balloon driver is there, so I'm not sure what the issue is. I was hoping that running Windows in docker would be lighter as opposed to VM.

from windows.

kroese avatar kroese commented on July 23, 2024

I did a quick investigation, and it seems like QEMU does not support automatic/dynamic ballooning by default.

There are some projects like Proxmox and Libvirt that are build on top of QEMU, and they add this logic themselves by sending balloon commands via QEMU monitor, to implement that feature.

But even if I was willing to implement the same algorithms as they do, I still doubt if it could even work. Because from inside a Docker container there is only limited information available about the memory of the host, so maybe it is not even possible to calculate things like memory pressure in the same way as these other projects can.

So I am afraid there is no easy way to fix this, unless someone with more QEMU knowledge than us decides to help us.

from windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.