Questions tagged [perf]

9 questions
4
votes
1 answer

how to gracefully kill linux perf tool process

I'm trying to use the linux performance tool perf to monitor kvm events on a host where a guest VM exists. The command I invoke perf is perf kvm stat record After some time, I'll press Ctrl + C to stop it and it will show some info like how many…
Michael Tong
  • 141
  • 2
4
votes
1 answer

Better way to use Perf on a Program in Kubernetes/Docker?

I am running Kubernetes on CentOS 7, and it doesn't seem that the version of perf is namespace aware. If run perf on the PID on the host node (host node found with kubectl describe pods --namespace) I get an error about symbols not being found.…
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
2
votes
1 answer

High CPU usage by apache/httpd for light load, 'perf record' points at vmware/hardware

Running Apache 2.4 on RHEL7 kernel 3.10.0-1062, 4 CPU VMWare instance, doing very basic reverse proxying to WebLogic backend using WebLogic proxy plugin. Server is only pushing around 1 MByte/sec with a couple hundred users, listening for SSL and…
Dan
  • 21
  • 1
1
vote
2 answers

3 different methods to count the number of context switches for a specific workload provide 2 different answers

I have a Centos7 system on a Google cloud machine, running a multithreaded database server that executes a particular set of queries in 70 secs (plus or minus 1 sec). I want to know how many context switches the server makes running this…
1
vote
0 answers

perf gives high copy_user_generic_string and clear_page_rep

I am building a server in c++ that reads a lot from disc. When recording with perf I get this report: 28.20% server [kernel.kallsyms] [k] copy_user_generic_string 18.14% server [kernel.kallsyms] [k] clear_page_rep …
joscul
  • 11
  • 2
1
vote
0 answers

What's the best approach to find out in doing what a Linux OS process is stuck?

Oracle DBA here! No experience at all in troubleshooting Linux performance... I need to identify the bottleneck in an Oracle database running on Oracle Linux. The same procedure runs fine on other VMs, so the problem is specific to a specific VM…
0
votes
2 answers

How to measure profit of using huge pages

I'm looking for a way of measuring performance impact/gain, in case of using huge pages. For example, I have 192GB RAM server, with 140GB allocated by huge pages. I run Postgres, with shared buffers in huge pages. Is there any way to check…
lesovsky
  • 143
  • 7
0
votes
0 answers

CPU Maxing out with PHP-FPM - __memcpy_sse4_back -> async_page_fault

I'm having an issue with a centos 7 apache server running PHP 7.3.27 in PHP-FPM mode. Apache is running in mpm-worker mode. The server hosts WordPress sites running w3 Total Cache. Redis version 3 is being used for the w3tc cache storage. We've been…
Gnosis
  • 39
  • 3
0
votes
0 answers

Multiple core overload on Ubuntu

I have a really strange behavior of the server. I run Apache, MySQL, WordPress on it. And recently, it has had a lot of freezes. MySQL/Apache shows high CPU usage (out of 24 cores - 2400% cpu% according to the htop). At first, I thought that the…
a b
  • 101
  • 3