Bug 1153576 - [RFE] [virtio-balloon] simple auto-adjusting RAM
Summary: [RFE] [virtio-balloon] simple auto-adjusting RAM
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-16 09:13 UTC by Igor Gnatenko
Modified: 2016-04-10 19:42 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-04-10 19:42:19 UTC
Embargoed:


Attachments (Terms of Use)
dumpxml Ftest (4.70 KB, text/plain)
2014-10-16 09:13 UTC, Igor Gnatenko
no flags Details

Description Igor Gnatenko 2014-10-16 09:13:15 UTC
Created attachment 947531 [details]
dumpxml Ftest

Steps to reproduce:
1. virt-install --connect qemu:///system --name Ftest --memory 1024,maxmemory=4096 --hvm --graphics spice --memballoon model=virtio --os-variant=fedora20 --cpu host-passthrough --vcpus 4 --cdrom /var/lib/libvirt/images/Fedora-Live-Workstation-x86_64-21_Beta-TC3.iso --livecd --disk none
2. try fill memory in guest

Actual results:
1G RAM in VM

Expected results:
all needed RAM in VM (2G for example)

Comment 1 Igor Gnatenko 2014-10-16 09:14:05 UTC
libvirt 1.2.9 from F21

Comment 2 Jiri Denemark 2014-10-16 10:09:42 UTC
libvirt does not do any automatic adjusting of RAM, if you want to increase the memory available to a guest (up to the configured maximum), you need to do that manually. For example, using virsh setmem command.

Comment 3 Igor Gnatenko 2014-10-16 10:10:55 UTC
Can I reopen this as RFE? This feature would be good.

Comment 4 Jiri Denemark 2014-10-16 10:20:09 UTC
I think it's a bit out of scope for libvirt. This feature is usually provided by higher-level management apps (e.g., oVirt) that implements some kind of policy which drives the memory adjustments.

Comment 5 Igor Gnatenko 2014-10-16 12:37:39 UTC
(In reply to Jiri Denemark from comment #4)
> I think it's a bit out of scope for libvirt. This feature is usually
> provided by higher-level management apps (e.g., oVirt) that implements some
> kind of policy which drives the memory adjustments.
I think adding this feature will really helpful for desktop-users which want to save memory when using VMs. I mean adding base adjusting.

User set up: 1024-4096
windows:  blnsvr reports that need some memory - libvirt adjusts
linux:    something reports that need some memory - libvirt adjusts

If RAM is not available - no problem. Just don't allocate memory there.

Comment 6 Cole Robinson 2016-04-10 19:42:19 UTC
I agree with Jiri that I don't really see this fitting libvirt. Yes it would be nice to have a simple desktop use case option, but I guarantee it would open the flood gates of extra requests for all sorts of configuration tweaks, watermarks, domain whitelists, etc.

And even if we did do something like this it would probably be a separate daemon with its own config file anyways since IMO it doesn't really fit the current libvirtd architecture, and at that point you can easily make it a separate project. I know ovirt has http://www.ovirt.org/develop/projects/mom/ which may be standalone for all I know

So I don't think this is something that will ever end up in libvirt


Note You need to log in before you can comment on or make changes to this bug.