Saturday, 25 May 2019

SAP HANA system High CPU Utilization Caused by Multiple Threads in sse_icc_lib::mgetSearchi_SSE4impl

Tags

Symptom

You experience high CPU utilization. In kernel profiler trace or runteimdump you identify multiple threads in callstack:

sse_icc_lib::mgetSearchi_SSE4impl
sse_icc_lib::mgetSearchi_SSE4
TRexUtils::IndexVectorRef::mgetSearch
...
TRexUtils::JobParallelMgetSearch::run()
TRexUtils::Parallel::JobBase::runEx()
TRexUtils::Parallel::JobBase::run
...

or

sse_icc_lib::mgetSearchi_AVX2impl
sse_icc_lib::mgetSearchi_AVX2
TRexUtils::IndexVectorRef::mgetSearch
...
TRexUtils::JobParallelMgetSearch::run()'
TRexUtils::Parallel::JobBase::runEx()
TRexUtils::Parallel::JobBase::run
...

or

sse_icc_lib::mgetSearchi_AVX512impl
sse_icc_lib::mgetSearchi_AVX512
TRexUtils::IndexVectorRef::mgetSearch
...
TRexUtils::JobParallelMgetSearch::run()'
TRexUtils::Parallel::JobBase::runEx()
TRexUtils::Parallel::JobBase::run

Other Terms

SAP HANA, column store, high CPU, secondary index
Reason and Prerequisites

Reason:

Above callstack points to single attribute scan on a column store table.


Solution

This can be alleviated by creating a secondary index on the table and columns to be searched.

Creating the index will improve query performance significantly (factor 10 and more) and reduce CPU consumption, but will also increase memeory consumption as a concatenated attribute will be generated.




 More details : 2321573

Friday, 24 May 2019

SAP HANA sidadm user login error

Tags
Symptom

It is reported that when logging in with an adm, and the loging scripts initializing the users environment fail to run correctly and the Admin user cannot be used.

It is also reported that other adm accounts do not have the same problem, even for the same SID.

The following errors are seen when logging in:

:~ # su - adm
su: warning: cannot change directory to /usr/sap//home: Permission denied
-sh: grep: command not found
-sh: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): Permission denied
-sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): Permission denied
-sh: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): Permission denied
-sh: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): Permission denied
-sh: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): Permission denied
-sh: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)
-sh: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)
-sh: grep: command not found
-sh: grep: command not found
-sh: grep: command not found
-sh: grep: command not found
-sh: grep: command not found
-sh: grep: command not found
-sh: grep: command not found
-sh: sed: command not found
-sh: sed: command not found
-sh: /usr/sap//home/.profile: Permission denied
adm@:/root>


Environment

HANA DB 2.0
Reproducing the Issue

    Log in with the User Account adm (using ssh or su will give the same result).


Cause

The adm user has the following ACL permissions for the /usr directory:

# file: usr
# owner: root
# group: root
user::rwx
user:adm:r--
group::r-x
mask::r-x
other::r-x


Solution

Grant read/write persmissions to the "SID"adm user








More details2780462

Thursday, 23 May 2019

SAP HANA startup fails with a crashdump in hdbdaemon

Tags

Symptom

You are starting HANA. During the startup, it fails and you find a crashdump in the daemon process with name similar to daemon.crashdump.044766.trc. Upon checking the crashdump file, you observe the [CRASH_STACK] session have the following content:

[CRASH_STACK] Stacktrace of crash: (no-section-time-available)
----> Pending exceptions (possible root cause) <---- br="">exception 1: no.1000000 (MultiDB/impl/MultiDBConfiguration.cpp:392)
 hdbmdcdispatcher has wrong permissions /usr/sap//HDB00/exe/mdc/hdbmdcdispatcher 33128 != 04550; $condition$=(info.st_mode & 07557) == 04550
NO exception throw location recorded. Stack generation system error.

Unknown pending exception
Throw location of the exception unknown

Environment

    SAP HANA Platform 1.0;
    Multitenant Database Containers is used (mode = multidb);
    Database Isolation Level is set to High (database_isolation = high);

Reproducing the Issue

Start HANA: "HDB Start" or "sapcontrol -nr -function StartSystem"
Cause

Prerequisites: You have HANA 1.0 running with MDC mode and database isolation level set to high.

The error message in the CRASH_STACK indicates that there are wrong permissions in the file /usr/sap//HDB00/exe/mdc/hdbmdcdispatcher.

You can check it by running the following command:

ls - ltrah /usr/sap//HDB00/exe/mdc/hdbmdcdispatcher

The default authorization and owner are below:

-r-sr-x--- 1 root sapsys 8.7M May 14 19:38 hdbmdcdispatcher
 


Resolution

For root cause purposes, you have to check with your OS team who/what changed the ownership and authorizations of the file.

To fix this, you need to run the following commands as root:

    "chown root:sapsys /usr/sap//HDB00/exe/mdc/hdbmdcdispatcher";
    "chmod 04550 /usr/sap//HDB00/exe/mdc/hdbmdcdispatcher";


You can now start the SAP system.





















More details 2792608

Hardware requirement for SAP HANA 2.0

Tags

You want to use SAP HANA 2.0 and need to know minimal HW requirements

Other Terms


CPU, Haswell, Ivybridge, Westmere, Broadwell, POWER8, POWER7+
Reason and Prerequisites

You start implementing SAP HANA 2.0 or you are upgrading a productive HANA system to SAP HANA 2.0

Solution

Hardware Requirements for SAP HANA 2.0 on Intel-Based Hardware Platforms

Starting with SAP HANA 2.0 computing nodes with at least Intel Haswell CPU or later are strongly recommended. However, SAP's requirement remains Intel Westmere CPU. Specifically, if you are running an upgrade of a productive HANA system from SAP HANA 1.0 to SAP HANA 2.0 you can use Intel Ivy Bridge or Westmere CPU based compute nodes.

Hardware Requirements for SAP HANA 2.0 on IBM Power Servers

Starting with SAP HANA 2.0 computing nodes with at least IBM POWER8 CPU or later are mandatory.