From: Daniel Bareiro <daniel-listas@gmx.net>
To: 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: Swap usage with KVM
Date: Sun, 11 Jul 2010 16:12:27 -0300 [thread overview]
Message-ID: <20100711191227.GD9267@defiant.freesoftware> (raw)
In-Reply-To: <20100711151257.GA13279@defiant.freesoftware>
[-- Attachment #1: Type: text/plain, Size: 5820 bytes --]
On Sunday, 11 July 2010 12:12:57 -0300,
Daniel Bareiro wrote:
> I have an installation with Debian GNU/Linux 5.0.4 amd64 with qemu-kvm
> 0.12.3 compiled with the source code obtained from the official site
> of KVM and Linux 2.6.32.12 compiled from source code of kernel.org.
> All this is installed on an HP Proliant DL380 G6 with two Xeon E5530
> quadcore processors and 16 GiB of RAM which has two VMs with the
> following configuration of memory:
>
> Hostname | RAM
> ===============+===============
> Aps4 | 7 GiB
> Leela | 7 GiB
> ===============+===============
> TOTAL | 14 GiB
>
> Initially the host was created with a swap partition of 1 GiB, but
> today we found that the use of swap quickly began to grow
> increasingly. Therefore, as a contingency, we had to hot-add a
> logical volume of 1 GB of swap on the VMHost. Is 'normal' this use of
> memory?
>
> I copy the Nagios Service Log Entries for the VMHost:
>
> Event Start Time Event End Time Event Duration Event/State Type Event/State
> Information
> ---------------------------------------------------------------------------------------------------
> 06-07-2010 00:00:00 07-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 100% free (956 MB out of 956 MB)
> 07-07-2010 00:00:00 08-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 100% free (956 MB out of 956 MB)
> 08-07-2010 00:00:00 08-07-2010 16:41:43 0d 16h 41m 43s SERVICE OK (HARD) SWAP OK -
> 100% free (956 MB out of 956 MB)
> 09-07-2010 00:00:00 10-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 99% free (939 MB out of 956 MB)
> 10-07-2010 00:00:00 11-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 79% free (754 MB out of 956 MB)
> 11-07-2010 00:00:00 11-07-2010 07:08:17 0d 7h 8m 17s SERVICE OK (HARD) SWAP OK -
> 51% free (482 MB out of 956 MB)
> 11-07-2010 07:08:17 11-07-2010 10:41:07 0d 3h 32m 50s SERVICE WARNING (HARD) SWAP WARNING
> - 29% free (272 MB out of 956 MB)
> 11-07-2010 10:41:07 11-07-2010 10:45:57 0d 0h 4m 50s SERVICE CRITICAL (HARD) SWAP
> CRITICAL - 9% free (83 MB out of 956 MB)
> ---------------------------------------------------------------------------------------------------
>
> I'm not using qcow2 files. The /dev/cciss/c0d0p3 partition is a
> physical volume that maintains the logical volumes that are used for
> VM's disks.
>
> The Nagios Service Log Entries for VMs shows no excessive use of swap
> in the window of time when the problem occurred in the VMHost:
>
> Aps4:
>
> Event Start Time Event End Time Event Duration Event/State Type Event/State
> Information
> ---------------------------------------------------------------------------------------------------
> 06-07-2010 00:00:00 07-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 100% free (2850 MB out of 2863 MB)
> 07-07-2010 00:00:00 08-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 98% free (2797 MB out of 2863 MB)
> 08-07-2010 00:00:00 08-07-2010 16:41:43 0d 16h 41m 43s SERVICE OK (HARD) SWAP OK -
> 99% free (2812 MB out of 2863 MB)
> 09-07-2010 00:00:00 10-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 98% free (2784 MB out of 2863 MB)
> 10-07-2010 00:00:00 11-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 97% free (2754 MB out of 2863 MB)
> 11-07-2010 00:00:00 11-07-2010 11:53:38 0d 11h 53m 38s+ SERVICE OK (HARD) SWAP OK -
> 100% free (2839 MB out of 2863 MB)
> ---------------------------------------------------------------------------------------------------
>
> Leela:
>
> Event Start Time Event End Time Event Duration Event/State Type Event/State
> Information
> ---------------------------------------------------------------------------------------------------
> 06-07-2010 00:00:00 07-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 97% free (919 MB out of 956 MB)
> 07-07-2010 00:00:00 08-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 97% free (920 MB out of 956 MB)
> 08-07-2010 00:00:00 08-07-2010 16:41:43 0d 16h 41m 43s SERVICE OK (HARD) SWAP OK -
> 97% free (920 MB out of 956 MB)
> 08-07-2010 17:01:36 08-07-2010 17:04:16 0d 0h 2m 40s SERVICE CRITICAL (HARD) Connection
> refused by host
> 08-07-2010 17:04:16 09-07-2010 00:00:00 0d 6h 55m 44s SERVICE OK (HARD) SWAP OK -
> 97% free (921 MB out of 956 MB)
> 09-07-2010 00:00:00 10-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 97% free (921 MB out of 956 MB)
> 10-07-2010 00:00:00 11-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) SWAP OK -
> 97% free (921 MB out of 956 MB)
> 11-07-2010 00:00:00 11-07-2010 11:58:29 0d 11h 58m 29s+ SERVICE OK (HARD) SWAP OK -
> 97% free (921 MB out of 956 MB)
> ---------------------------------------------------------------------------------------------------
>
>
>
> Unfortunately I could not take much more data because we had to act
> quickly, but if you need any additional information, please feel free to
> ask.
Has anyone experienced something like this? Avi? I remember late last
year there was a regression in Linux swapping and Rik and Hugh were
working on it. Are you aware of any?
Thanks in advance for your reply.
Regards,
Daniel
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2010-07-11 19:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-11 15:12 Swap usage with KVM Daniel Bareiro
2010-07-11 19:12 ` Daniel Bareiro [this message]
2010-07-11 21:49 ` Rik van Riel
2010-08-02 18:57 ` Daniel Bareiro
2010-08-02 19:31 ` Rik van Riel
2010-08-02 19:52 ` Daniel Bareiro
2010-08-02 20:22 ` Rik van Riel
2010-08-02 21:43 ` Daniel Bareiro
2010-08-27 10:04 ` Swap usage with KVM (and KSM) Daniel Bareiro
2010-08-27 13:42 ` Rik van Riel
2010-07-11 21:05 ` Swap usage with KVM Freddie Cash
2010-07-11 22:08 ` Daniel Bareiro
2010-07-20 15:04 ` Daniel Bareiro
2010-07-20 19:18 ` David Weber
2010-07-22 10:09 ` 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=20100711191227.GD9267@defiant.freesoftware \
--to=daniel-listas@gmx.net \
--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.