on 2015 Jul 31 4:47 PM
Hello Everyone,
We are running HANA Rev 82.
As we all know that we can see CPU usage percentage in HANA in Load Graph.
I want to know how does load Graph calculates CPU usage percentage?
Does it use "HOST_RESOURCE_UTILIZATION_STATISTICS"?
We are trying to create a HANA Performance Report that shows Daily Highest Memory Usage and Highest CPU Usage.
At present we are checking Load Graph to find out highest CPU usage for a day.
But we wanted to automate this process so I wanted to know how to calculate Highest CPU Usage for a day?
Regards,
Vivek
Request clarification before answering.
You don't have to reinvent the wheel here.
Check 's script collection 1969700 – SQL statement collection for SAP HANA.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lars.
I know about this note and before writing this question I checked this note as well as note 2100040 - FAQ-SAP HANA CPU. It could be possible that I might have missed something but I did check below two SQLs from the note:
In the note mentioned by you, there is a SQL on Load History but it works only on HANA Rev 90+ as M_LOAD_HISTORY_HOST is not present in Rev 82.
Then there is one more SQL that shows HANA Resources Memory and CPU consumption on day basis and it shows percentage of busy CPUs and average number of CPUs used but does not show max CPU usage.
I tried but was not able to find out max CPU usage in percentage for a day from HOST_RESOURCE_UTILIZATION_STATISTICS that's why I asked the question.
Regards,
Vivek
Hmm... I'm pretty sure that there is no system view in SPS 8 that would deliver max. CPU.
The LOAD history has been facilitated by the nameserver process writing into it's own KPI-delta file which is not exposed in any system view in SPS 8.
Which means: for SPS 8 I don't know how to create a max(CPU usage%) per interval SQL query.
- Lars
Hi,
Wouldn't it be possible to set aggregation to 'NONE' in query HANA_Resources_CPUAndMemory_History_Rev70+ and get the max out from CPU_BUSY_PCT for a day worth of data?
Something like:
select to_char(snapshot_time, 'YYYY-MM-DD'),host, max(CPU_BUSY_PCT) from
(
-- here goes query HANA_Resources_CPUAndMemory_History_Rev70+
-- adapted for a day worth of data and aggregation 'NONE'
)
group by to_char(snapshot_time, 'YYYY-MM-DD'),host
BRs,
Lucas de Oliveira
User | Count |
---|---|
53 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.