Re: KVM slow LAMP guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/26/15 6:41 AM, Hansa wrote:
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?

Looks good to me currently. Per vCPU will consume almost half pCPU's capacity in host when add idle=poll in my testing which is not suitable for some cloud computing scenarios since vCPUs have high overcommit ratio on host.

Regards,
Wanpeng Li
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux