RE: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-15 Thread Linhaifeng
Hi, PC Thank you every much! -Original Message- From: Paul Clarke [mailto:p...@us.ibm.com] Sent: 2019年4月15日 20:53 To: Linhaifeng ; linux-perf-us...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: perf tools:Is there any tools to found out the max latency by irq or cpu idle

RE: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-15 Thread Linhaifeng
Hi, Thank you every much! I found MSI in my system too and there are some errors found in bios log. Replace the memorys can fix it. L2GW_2680:/home/fsp/ycb # perf stat -C 1-11,14-25,29-39,42-52 --smi-cost ^C Performance counter stats for 'CPU(s) 1-11,14-25,29-39,42-52': SMI cycles% SMI#

Re: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-15 Thread Arnaldo Carvalho de Melo
Em Mon, Apr 15, 2019 at 07:52:59AM -0500, Paul Clarke escreveu: > On 4/13/19 1:01 AM, Linhaifeng wrote: > > Sorry, the value 131081408 is just for example. Actually the result is like > > this: > > sqrt 2019-04-10 23:53:50: 43968 > > sqrt 2019-04-10 23:53:51: 44060 > > sqrt 2019-04-10

Re: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-15 Thread Paul Clarke
On 4/13/19 1:01 AM, Linhaifeng wrote: > Sorry, the value 131081408 is just for example. Actually the result is like > this: > sqrt 2019-04-10 23:53:50: 43968 > sqrt 2019-04-10 23:53:51: 44060 > sqrt 2019-04-10 23:53:52: 49012 > sqrt 2019-04-10 23:53:53: 38172 > sqrt 2019-04-10 23:53:54:

Re: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-13 Thread William Cohen
On 4/13/19 2:01 AM, Linhaifeng wrote: > Sorry, the value 131081408 is just for example. Actually the result is like > this: > sqrt 2019-04-10 23:53:50: 43968 > sqrt 2019-04-10 23:53:51: 44060 > sqrt 2019-04-10 23:53:52: 49012 > sqrt 2019-04-10 23:53:53: 38172 > sqrt 2019-04-10 23:53:54:

RE: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-13 Thread Linhaifeng
Sorry, the value 131081408 is just for example. Actually the result is like this: sqrt 2019-04-10 23:53:50: 43968 sqrt 2019-04-10 23:53:51: 44060 sqrt 2019-04-10 23:53:52: 49012 sqrt 2019-04-10 23:53:53: 38172 sqrt 2019-04-10 23:53:54: 131081408 sqrt 2019-04-10 23:53:55: 43600 sqrt

Re: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-12 Thread William Cohen
On 4/11/19 8:57 PM, Linhaifeng wrote: > Hi, > I have a single thread application like this: > > While (1) { >     start = rdtsc(); >     sqrt (1024);  >   end = rdtsc(); >   cycles = end – start; >   printf("cycles: %d-%02d-%02d %02d:%02d:%02d: %lu\n", >   1900+timeinfo->tm_year,

perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-11 Thread Linhaifeng
Hi, I have a single thread application like this: While (1) {     start = rdtsc();     sqrt (1024);    end = rdtsc();   cycles = end – start;   printf("cycles: %d-%02d-%02d %02d:%02d:%02d: %lu\n",   1900+timeinfo->tm_year, 1+timeinfo->tm_mon, timeinfo->tm_mday, timeinfo->tm_hour,