From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hansa Subject: Re: KVM slow LAMP guest Date: Tue, 25 Aug 2015 17:42:33 +0200 Message-ID: <55DC8CE9.3030208@logic-q.nl> References: <5582805F.8090703@logic-q.nl> <55A4C2AA.9000307@logic-q.nl> <55A4C454.2070704@intercollect.com> <55A568F1.20504@intercollect.com> <55A57C21.6080502@redhat.com> <55A6BC4E.7060203@intercollect.com> <55A79522.5050805@redhat.com> <55DA1C9F.5090502@logic-q.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm list Return-path: Received: from smtp.logic-q.nl ([213.207.85.242]:39296 "EHLO smtp.logic-q.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214AbbHYPmn (ORCPT ); Tue, 25 Aug 2015 11:42:43 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.logic-q.nl (Postfix) with ESMTP id 54FF6A0C98 for ; Tue, 25 Aug 2015 17:42:42 +0200 (CEST) Received: from smtp.logic-q.nl ([127.0.0.1]) by localhost (smtp.logic-q.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JaQTIAEtPm6Z for ; Tue, 25 Aug 2015 17:42:39 +0200 (CEST) Received: from [192.168.1.121] (unknown [185.23.142.226]) (Authenticated sender: c.brocker@logic-q.nl) by smtp.logic-q.nl (Postfix) with ESMTPSA id A616DA0C94 for ; Tue, 25 Aug 2015 17:42:39 +0200 (CEST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 24-8-2015 1:26, Wanpeng Li wrote: > On 8/24/15 3:18 AM, Hansa wrote: >> On 16-7-2015 13:27, Paolo Bonzini wrote: >>> On 15/07/2015 22:02, "C. Br=C3=B6cker" wrote: >>>>> What OS is this? Is it RHEL/CentOS? If so, halt_poll_ns will be = in 6.7 >>>>> which will be out in a few days/weeks. >>>>> >>>>> Paolo >>>> OK. As said CentOS 6.6. >>>> But where do I put this parameter? >>> You can add "kvm.halt_poll_ns=3D500000" to the kernel command line.= If >>> you have the parameter, you have the >>> /sys/module/kvm/parameters/halt_poll_ns file. >> Hi, >> >> I upgraded to the CentOS 6.7 release which came out last month and a= s promised the halt_poll_ns parameter was available. >> Last week I tested the availability status every 5 minutes on my Wor= dpress VM's with the halt_poll_ns kernel param set on DOM0. I'm pleased= to announce that it solves the problem! > > How much seconds to load your Wordpress site this time? > > Regards, > Wanpeng Li The average is around 0.4 seconds to load my "heaviest" site on my slow= est machine. On the VM server I issued the command below every eleven minutes: date >> curltest-file; _ top -b -n 1 | sed -n '7,12p' >> curltest-file; _ curl -o /dev/null -s -w"time_total: %{time_total}\\n" https://my.domain= =2Ecom | perl -pe 'BEGIN {use POSIX;} print strftime("%Y-%m-%d %H:%M:%S= ", localtime)' >> curltest-file This gives me the total time for displaying my site on a local machine.= It also includes a 'top' command to display which processes are runnin= g at each sample. All is saved in a file called curltest-file. I found 7 occurrences in my curltest-file of a time_total larger than 2= 0 seconds. Top however didn't show any significant CPU or IO activity a= t those sampled times. Further investigations shows me that they are re= lated to a known (gravatar) issue in the Wordpress Jetpack plugin. I d= idn't include these samples in the average total. Cheers and good luck tweaking your sites! Best, Hansa