Re: virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
> [...] Actually, it is not. It's caused by our design of the client event loop. If there are any incoming data, read as much as possible placing them at the end of linked list of incoming stream data (stream is a way that libvirt uses to transfer binary data). Problem is that instead of returni

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
I'm sorry, I don't have Ubuntu installed anywhere to look the version up. Can you run 'virsh version' to find it out for me please? $ virsh version Compiled against library: libvirt 4.0.0 Using library: libvirt 4.0.0 Using API: QEMU 4.0.0 Running hypervisor: QEMU 2.11.1 This is very likely

virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
Hi all: I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. I have written a script that backs up my virtual machines every night. I want to limit the amount of memory that this backup operation consumes, mainly to prevent page cache thrashing. I have described the Linux page cac

Volume file permissions and huge volume downloads

2020-01-17 Thread R. Diez
Hi all: I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. I want to backup a virtual machine in a foolproof way: - Gracefully shutdown the VM. - Backup the disk image. - Restart the VM. I wrote the following script to do that: https://github.com/rdiez/Tools/blob/master/Virtua

Re: [libvirt-users] Running all my virtual machines with a low priority

2019-05-02 Thread R. Diez
You could perhaps set 'cpu.shares' cgroup setting on /machine.slice. This isn't really a nice level in the traditional sense, rather it is a relative weighting evaluated against other cgroups at the same level. So if you change it from 1024 to 512, then processes under /machine.slice will get

Re: [libvirt-users] Running all my virtual machines with a low priority

2019-05-01 Thread R. Diez
You would have to set the priority of all vCPUs in each guest, as well as emulator threads in each guest (the latter needs very new libvirt). This does not seem a viable option then with Ubuntu 18.04. And changing XML on all guest VMs is extra work. Is there no other way? For example, are a

Re: [libvirt-users] Running all my virtual machines with a low priority

2019-05-01 Thread R. Diez
I have an Ubuntu 18.04 system. What is the easiest way to run all of my virtual machines with a low priority? Say a "nice" level of 15. You can use the(and related elements) to control the schedular nice level up or down https://libvirt.org/formatdomain.html#elementsCPUTuning Thank

[libvirt-users] Running all my virtual machines with a low priority

2019-04-30 Thread R. Diez
Hi all: I have an Ubuntu 18.04 system. What is the easiest way to run all of my virtual machines with a low priority? Say a "nice" level of 15. I just do not want my virtual machines to have too much of an impact in any other processes on the system. Thanks in advance, rdiez __