on 2022 Apr 13 7:44 AM
Hello,
I have a test S4 system and I am having some puzzling OOM situations.
OK, this is a test system with limited memory (64 GB), however the oom trace file doesn't help.
This is compile server trace is below.There are for other servers too.
Kindly asking your support with any ideas. Thanks
[OS_MEMORY] Operating system information about memory: (2022-04-12 14:07:07 468 Local)
Maximum size of the process's virtual memory: soft limit=18446744073709551615, hard limit=18446744073709551615
/proc/meminfo:
MemTotal: 66731648 kB
MemFree: 1432128 kB
MemAvailable: 6723648 kB
Buffers: 32384 kB
Cached: 11084032 kB
SwapCached: 16256 kB
Active: 59085952 kB
Inactive: 4960832 kB
Active(anon): 56102976 kB
Inactive(anon): 447296 kB
Active(file): 2982976 kB
Inactive(file): 4513536 kB
Unevictable: 31232 kB
Mlocked: 31232 kB
SwapTotal: 2097088 kB
SwapFree: 1754304 kB
Dirty: 5440 kB
Writeback: 0 kB
AnonPages: 52955200 kB
Mapped: 4675200 kB
Shmem: 3607360 kB
KReclaimable: 376896 kB
Slab: 930304 kB
SReclaimable: 376896 kB
SUnreclaim: 553408 kB
KernelStack: 28192 kB
PageTables: 68800 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 35462912 kB
Committed_AS: 57347328 kB
VmallocTotal: 549755813888 kB
VmallocUsed: 120128 kB
VmallocChunk: 0 kB
Percpu: 20480 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 16384 kB
Hugetlb: 0 kB
[MEMORY_OOM] Information about current out of memory situation: (2022-04-12 14:07:07 477 Local)
OUT OF MEMORY occurred.
Host: testhana01
Executable: hdbcompileserver
PID: 25146
Failed to allocate 64.04kb (65584b).
Allocation failure type: GLOBAL_ALLOCATION_LIMIT (early exit)
GLOBAL_MAX_ALLOCATION_LIMIT=57.27gb (61499834368b)
SHARED_MEMORY=3.40gb (3658350592b)
OOM_RESERVATION_ALLOCATORS=96.18mb (100859904b)
CODE_SIZE=3.26gb (3510632448b)
IPMM_RESERVATION=0b
Sum TPAL (including shm, code size and IPMM reservation but not IPMM OOM reservation)=57.27gb (61499834368b) (cached sum=57.27gb (61499834368b)), emergency reservation=128mb (134217728b)
#processes=9, weight sum=900, cached weight sum=900, #checks for cached allocation limit sum=1682881, #terminated processes since last reset=10
Early exits are currently allowed.
66531 early exits since creation of IPMM, reclaim-memory-counter=174209. Reclaim memory 174207 failed, only 56688640b were free, 54327812343b were used.
Last reclaim memory started to wait for IPMM lock since 2022-04-12 14:07:06.097.
Last reclaim memory got IPMM lock at 2022-04-12 14:07:07.362.
User ids respected in shm calculation: [1003]
Parallel memory reclaim tasks are activated.
This is an opt build.
Request clarification before answering.
By the way, if anybody happens to read this, is it normal that SAP HANA stops all the services in case of OOM?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Albin,
Yes, HANA will perform an automatic restart if the allocated memory pool (GAL) is exhausted for the tenant db or whole system including the systemdb, where there is more physical memory available on request for allocation .
If you check the "Inter process memory management" sections in the <service>.oom trace filedumps, that will show the 'Allocated' vs 'Used Bytes' for each service on the HANA landscape at the time of the oom, including the tenant indexserver nodes and systemdb services.
It's a case of checking as Hakan already described, the 'exclusive_size_in_use' for those expensive services and their top heap allocators. You should also check that the vm.map_map_count is set optimally on the system.
Troubleshooting problem heap allocators is detailed in '13. What can I do if a certain heap allocator is unusually large?' - KBA 1999997 - FAQ: SAP HANA Memory
See also SAP KBA 3011480 - How-To : Troubleshooting SAP HANA Memory Consumption
Kind Regards
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.