From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hansa Subject: Re: KVM slow LAMP guest Date: Wed, 26 Aug 2015 00:41:47 +0200 Message-ID: <55DCEF2B.6080601@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> <55DC8CE9.3030208@logic-q.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Wanpeng Li , kvm list Return-path: Received: from smtp.logic-q.nl ([213.207.85.242]:39540 "EHLO smtp.logic-q.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755928AbbHYWmE (ORCPT ); Tue, 25 Aug 2015 18:42:04 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 26-8-2015 0:33, Wanpeng Li wrote: >> 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.com | 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 running 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 20 seconds. Top however didn't show any significant CPU or IO activity at those sampled times. Further investigations shows me that they are related to a known (gravatar) issue in the Wordpress Jetpack plugin. I didn't include these samples in the average total. > > If you just use halt_poll_ns or both halt_poll_ns and idle=poll in guest? > I just use kvm.halt_poll_ns=500000 Should I try some different tests?