asonje / PAT

Performance Analysis Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

While drawing graph in excel, data across different hosts are parallel instead of aligned

gcz2022 opened this issue · comments

I synced the time of 7 worker nodes and executed PAT on them.
The raw data shows that the time is alligned:

[hostname@sr563 instruments]$ head -2 sr537/cpustat
HostName TimeStamp CPU %user %nice %system %iowait %steal %idle
sr537 1560497986 all 0.04 0.00 0.21 0.06 0.00 99.69
[hostname@sr563 instruments]$ head -2 sr538/cpustat
HostName TimeStamp CPU %user %nice %system %iowait %steal %idle
sr538 1560497987 all 0.08 0.00 0.25 0.26 0.00 99.40
[hostname@sr563 instruments]$ head -2 sr539/cpustat
HostName TimeStamp CPU %user %nice %system %iowait %steal %idle
sr539 1560497986 all 0.07 0.00 0.11 0.00 0.00 99.82

However, after drawing the graph in Excel using macro, the data of different servers are perfectly stagger, you can see 7 similar shapes parallel:
image

Seems there's bug in pat-post-process.py, it will automatically concat the timestamps.
To draw graphs in Excel correctly, you can open result-template.csv and use ctrl+ Q.