From: "\"C. Bröcker\"" <c.brocker@intercollect.com>
To: kvm list <kvm@vger.kernel.org>
Subject: Re: KVM slow LAMP guest
Date: Tue, 14 Jul 2015 21:54:25 +0200 [thread overview]
Message-ID: <55A568F1.20504@intercollect.com> (raw)
In-Reply-To: <CALzav=dE=Cr+T6Cu=kqTeXbNkm=QGCDoXxX4XMFhh_B05rBKvQ@mail.gmail.com>
On 14-7-2015 19:16, David Matlack wrote:
> (adding back the kvm mailing list)
>
> On Tue, Jul 14, 2015 at 1:12 AM, "C. Bröcker"
> <c.brocker@intercollect.com> wrote:
>> On 14-7-2015 10:04, Hansa wrote:
>>> On 13-7-2015 20:57, David Matlack wrote:
>>>> On Thu, Jun 18, 2015 at 10:26 AM, David Matlack <dmatlack@google.com>
>>>> wrote:
>>>>> On Thu, Jun 18, 2015 at 1:25 AM, Hansa <forums@logic-q.nl> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I have a LAMP server as guest in KVM. Whenever the server is idle for
>>>>>> some
>>>>>> time it takes about 30 seconds to load a Wordpress site.
>>>>>> If the server is not idle the site shows up in max 5 seconds. I've
>>>>>> already
>>>>>> turned of power management in the guest by passing
>>>>>>
>>>>>> GRUB_CMDLINE_LINUX_DEFAULT="apm=off"
>>>>>>
>>>>>> in /etc/default/grub. This has no effect.
>>>>>> Does KVM do some power management on guests? If so, how do I turn this
>>>>>> off
>>>>>> for my LAMP guest?
>>>>> KVM doesn't do any power management of guests. But if everything is idle
>>>>> on
>>>>> the host (including your guest), then host power management could kick
>>>>> in.
>>>>> Have you tried playing with host pm?
>>>>>
>>>>> Could you try running your workload with the guest kernel parameter
>>>>> "idle=poll"
>>>>> and let me know the performance?
>>>>>
>>>>> Also, if you are running Linux 4.0 or later on the host, could you try
>>>>> running
>>>>> your workload with the KVM module parameter "halt_poll_ns=500000"?
>>>> Hansa-- Did you ever get a chance to run your workload with these
>>>> changes?
>>> Hi David,
>>>
>>> Sorry I didn't respond to your mail earlier and nice of you to check back.
>>> To be honest no I haven't. To much work overload on my side. I've just added
>>> the idle=poll to the guests' grub and rebooted the server. I'll let it run a
>>> few day's to check if it helps. Btw: I'm running 2.6 linux kernel here so
>>> I'm not sure if I can add the "halt_poll_ns" param to KVM.
>>>
>>> Best, Hansa
>> Wow! That makes real difference!
>> The site was never that fast! Although CPU load is constantly on 100% any
>> chance I can tweak this param? And is there a similar param for Windows
>> guests?
> Since idle=poll gave a noticeable improvement, your workload is a good
> candidate for halt_poll_ns. This is a host KVM module parameter. It will
> give you a similar speedup, it will work independent of your guest os,
> and won't peg your cpu usage at 100% during periods of no activity. If
> you don't have halt_poll_ns available (your host kernel older than 4.0),
> is upgrading to a newer kernel or backporting the patch [1] an option?
>
> I'm not sure of any more guest params you can tweak (linux or windows), but
> I'll let you know if I come up with anything.
>
> [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f7819512996361280b86259222456fcf15aad926
Sorry David.
That is not an option. It's a production server on 2.6 kernel. 4.0 kernel is not in Base repos and I don't know which impact installing the newer kernel version will have on this server. Any other options?
next prev parent reply other threads:[~2015-07-14 20:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-18 8:25 KVM slow LAMP guest Hansa
2015-06-18 17:26 ` David Matlack
[not found] ` <CALzav=f4sybLij197ULZP_FEtzz+uYSCPWGO_FWxgtB54fg7ow@mail.gmail.com>
[not found] ` <55A4C2AA.9000307@logic-q.nl>
[not found] ` <55A4C454.2070704@intercollect.com>
2015-07-14 17:16 ` David Matlack
2015-07-14 19:54 ` "C. Bröcker" [this message]
[not found] ` <55A57C21.6080502@redhat.com>
2015-07-15 19:00 ` Hansa
2015-07-15 20:02 ` "C. Bröcker"
2015-07-16 11:27 ` Paolo Bonzini
2015-07-16 13:54 ` Hansa
2015-08-23 19:18 ` Hansa
2015-08-23 23:26 ` Wanpeng Li
2015-08-24 15:23 ` Hansa
2015-08-25 15:42 ` Hansa
2015-08-25 22:33 ` Wanpeng Li
2015-08-25 22:41 ` Hansa
2015-08-25 23:12 ` Wanpeng Li
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=55A568F1.20504@intercollect.com \
--to=c.brocker@intercollect.com \
--cc=kvm@vger.kernel.org \
/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.