All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: dbareiro@gmx.net, KVM General <kvm@vger.kernel.org>
Cc: "hugh.dickins@tiscali.co.uk" <hugh.dickins@tiscali.co.uk>,
	Rik van Riel <riel@redhat.com>
Subject: Re: Memory usage with qemu-kvm-0.12.1.1
Date: Sun, 27 Dec 2009 18:03:18 +0200	[thread overview]
Message-ID: <4B378546.6070104@redhat.com> (raw)
In-Reply-To: <20091227155107.GK7104@defiant.freesoftware>

On 12/27/2009 05:51 PM, Daniel Bareiro wrote:
> Hi, all!
>
> I installed qemu-kvm-0.12.1.1 in one equipment of my house yesterday to
> test it with Linux 2.6.32 compiled by myself from the source code of
> kernel.org.
>
>  From the night of yesterday that I am observing a high use of swap. This
> is the Service Log Entries from Nagios:
>
> 12-26-2009 21:57:33     12-26-2009 23:42:33     0d 1h 45m 0s    SERVICE WARNING (HARD)  SWAP WARNING - 30% free (142 MB out of 486 MB)
> 12-26-2009 23:42:33     12-27-2009 00:00:00     0d 0h 17m 27s   SERVICE CRITICAL (HARD) SWAP CRITICAL - 9% free (41 MB out of 486 MB)
> 12-27-2009 00:00:00     12-27-2009 06:27:33     0d 6h 27m 33s   SERVICE CRITICAL (HARD) SWAP CRITICAL - 5% free (22 MB out of 486 MB)
> 12-27-2009 06:27:33     12-27-2009 12:49:51     0d 6h 22m 18s+  SERVICE WARNING (HARD)  SWAP WARNING - 14% free (67 MB out of 486 MB)
>
> The hour has been ART (GMT-3).
>
> The VMs running in this host are the following:
>
> +--------------------+----------+------------------+
> |   OS               |    RAM   |      SWAP        |
> +====================+==========+==================+
> | Debian Lenny amd64 | 512 MB   | 1 GB / 0 used    |
> | Debian Lenny amd64 | 512 MB   | 512 MB / 0 used  |
> | Debian Lenny amd64 | 512 MB   | 1 GB / 584k used |
> | Debian Lenny i386  | 512 MB   | 512 MB / 0 used  |
> | OpenBSD 4.6  i386  | 512 MB   | 1 GB / 0 used    |
> +--------------------+----------+------------------+
>
> This is what I obtain with 'free' in the host:
>
> root@ubuntu:~# free
>               total       used       free     shared    buffers     cached
> Mem:       4060340    3989512      70828          0    1804272      95212
> -/+ buffers/cache:    2090028    1970312
> Swap:       497972     415680      82292
>
>
> To what that so high use of swap can be due?
>
>    

Probably a regression in Linux swapping.  Rik, Hugh, are you aware of 
any?  Hugh posted something but it appears to be performance related, 
not causing early swap.

Try setting /proc/sys/vm/swappiness to 0, and running your guests with 
cache=none (a good idea in any case).

Also, qemu might be leaking memory.  Please post 'pmap $pid' for all of 
your guests (do that before any of the other tests, on your swapped-out 
system).

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2009-12-27 16:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-27 15:51 Memory usage with qemu-kvm-0.12.1.1 Daniel Bareiro
2009-12-27 16:03 ` Avi Kivity [this message]
2009-12-27 16:32   ` Rik van Riel
2009-12-27 16:38     ` Avi Kivity
2009-12-27 16:45       ` Rik van Riel
2009-12-27 17:12         ` Avi Kivity
2009-12-27 17:21           ` Rik van Riel
2009-12-30 18:14             ` Hugh Dickins
2009-12-31 15:05               ` Daniel Bareiro
2009-12-31 17:02                 ` Hugh Dickins
2009-12-31 18:36                   ` Rik van Riel
2010-01-03  6:20                     ` Avi Kivity
2010-01-01 16:59                   ` Daniel Bareiro
2009-12-27 17:00   ` Daniel Bareiro
2009-12-27 17:20     ` Avi Kivity
2009-12-27 17:33       ` Avi Kivity
2009-12-27 18:07         ` Daniel Bareiro
2010-01-03 10:08       ` Thomas Fjellstrom
2010-01-04 15:12         ` Thomas Fjellstrom
2010-01-04 17:18           ` David S. Ahern
2010-01-24  7:43           ` Avi Kivity
2009-12-29  0:49   ` Daniel Bareiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B378546.6070104@redhat.com \
    --to=avi@redhat.com \
    --cc=dbareiro@gmx.net \
    --cc=hugh.dickins@tiscali.co.uk \
    --cc=kvm@vger.kernel.org \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.