From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Very high memory usage with KVM Date: Sun, 26 Jul 2009 14:31:57 +0300 Message-ID: <4A6C3EAD.9040303@redhat.com> References: <20090725174340.GA21733@defiant.freesoftware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: dbareiro@gmx.net, KVM General Return-path: Received: from mx2.redhat.com ([66.187.237.31]:34629 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752800AbZGZL1g (ORCPT ); Sun, 26 Jul 2009 07:27:36 -0400 In-Reply-To: <20090725174340.GA21733@defiant.freesoftware.org> Sender: kvm-owner@vger.kernel.org List-ID: On 07/25/2009 08:43 PM, Daniel Bareiro wrote: > Hi all! > > I have an installation with Ubuntu Hardy Heron server amd64 with KVM-62 > from Ubuntu repositories installed on an HP Proliant DL380 G5 with two > Xeon E5405 quadcore processors and 16 GiB of RAM which has six VMs with > the following configuration of memory: > > Hostname | RAM > ===============+=============== > Ganimedes | 2 GiB > Os | 1 GiB > Aprender | 2 GiB > Aps0 | 2 GiB > Aps2 | 4 GiB > Ratatoskr | 4 GiB > ===============+=============== > TOTAL | 15 GiB > > > Initially the host was created with a swap partition of 1 GiB (more 1 > GiB than was free for use of host) but this amount with the time > remained short and I had to add a LV of 7 GiB to be used with swap, > being now a total of 8 GiB of swap of which at this moment I have only a > 9% free. Is 'normal' this use of memory? > > root@ss02:~# ps -e --sort -rss -Ho user,start_time,pid,pcpu,pmem,rss,size,vsz,args > USER START PID %CPU %MEM RSS SZ VSZ COMMAND > [...] > root Jul06 27471 52.3 24.4 4023232 4292200 4350296 kvm > root Jul24 9955 137 23.8 3923620 4308592 4350308 kvm > root Jul06 8751 5.8 8.3 1368228 2171808 2229888 kvm > root Jul07 8565 2.7 5.2 862844 2204704 2246416 kvm > root Apr22 7842 0.6 3.6 600072 2172056 2230136 kvm > root Jul01 7944 0.6 2.0 334860 1119916 1177996 kvm > > root@ss02:~# free > total used free shared buffers cached > Mem: 16463388 16377844 85544 0 894216 66328 > -/+ buffers/cache: 15417300 1046088 > Swap: 8319948 7621916 698032 > > > Updating to KVM-84 or superior can improve this situation? > What is the storage configuration? Are you using qcow2? What are the image logical and physical sizes? What is the host kernel (uname -a)? -- error compiling committee.c: too many arguments to function