[SAP BASIS]SAP 内存管理参数详解
SAP内存管理参数详解
目录
- 内存管理参数配置
- 内存管理参数优化
- 内存管理参数验证
1. 内存管理参数配置
SAP内存三大块,Roll,Page和Extent,以下是参数示例及详解(for AIX,LINUX system)
Parameter | value in Default profile | size display in ST02 | Description |
Rdisp/Roll_maxfs | 125000 | not display but should be the sum of (200,000+800,000)/8 | 8 kb Maximum size of roll file |
Rdisp/Roll_SHM | 25000 | =25000*8=800,000 | 8 kb part of roll file in shared memory |
Rdisp/PG_maxfs | 312500 | not display but should be the sum of(1,500,000+1,000,000)/8 | 8 kb Maximum size of the SAP paging file |
Rdisp/PG_SHM | 187500 | =187500*8=150,000 | 8 kb part of paging file in shared memory |
EM/TOTAL_SIZE_MB | 25840 | =25840*1024=26460160 | extend of memory |
下图为SAP内存管理参详解:
2.内存管理参数优化
这只是一个例子,实际设中,我们会通常会在生产系统中设定以下,让page 和roll 在MEMory 上运行而不是在磁盘上,以提高SAP的性能
rdisp/roll_maxfs=125000
rdisp/roll_shm=125000
rdisp/PG_shm=312500
rdisp/PG_maxfs=312500
这样设置之后,OnDisk[KB]会显示空白,表示所有的Roll area 和Page area 都运行在内存上.
3.内存管理参数验证
在设置完参数后在<sapsid>用户互环境下运行sappfpar check pf=/usr/sap/<SAPSID>/SYS/profile/DEFAULT.PFL. 如果有ERROR在倒数第二行,请更改相关参数,否则SAP在重新起动时会出错而不可以正常运行
sappfpar check pf=C11_DVEBMGS35_rb3C11a0
================================================
== Checking profile: /usr/sap/C11/SYS/profile/C11_DVEBMGS35_rb3C11a0
== SAP Release 749
== SAP Patch 724
== System ID 324 (IBM RS/6000 with AIX)
== ES Implementation SHM2
================================================
Metadata Parameters Analysis
================================================
Parameters Redefinitions
================================================
***ERROR: sec/rsakeylengthdefault defined 2 times in /usr/sap/C11/SYS//profile/DEFAULT.PFL
Formula Based Parameters
================================================
Parameter changes if default formulas would be used:
================================================
EM/TOTAL_SIZE_MB: 20480 --> 22938
ES/SHM_MAX_SHARED_SEGS: 4 --> 2
ES/SHM_PROC_SEG_COUNT: 8 --> 6
ES/SHM_SEG_SIZE: 8192 --> 4096
abap/buffersize: 4000000 --> 4698112
abap/cov_buffersize: 112640 --> 119789
abap/heap_area_total: 100000000 --> 3435973837
abap/programs: 1000000 --> 1174528
abap/shared_objects_size_MB: 1024 --> 459
em/global_area_MB: 2048 --> 1147
em/initial_size_MB: 20480 --> 22938
em/max_size_MB: 20480 --> 22938
em/reserved_area_MB: 410 --> 459
es/max_seg_size_MB: 5032 --> 4096
gw/max_conn: 4000 --> 8000
ipc/shm_psize_40: 1677721600 --> 1835008000
rdisp/PG_SHM: 125000 --> 66280
rsdb/ntab/entrycount: 500000 --> 800000
rsdb/ntab/ftabsize: 2000000 --> 800000
rsdb/ntab/irbdsize: 400000 --> 160000
rsdb/ntab/sntabsize: 200000 --> 80000
rsdb/obj/buffersize: 300000 --> 335544
rsdb/obj/max_objects: 100000 --> 83886
rsdb/tbi_buffer_area_MB: 4000 --> 2776
rtbb/buffer_length: 209715 --> 234881
rtbb/max_tables: 69905 --> 78294
zcsa/db_max_buftab: 699051 --> 782937
zcsa/table_buffer_area: 2147483648 --> 2405181686
Additional Memory and OS Specific Checks
================================================
Shared Memory Disposition Overview
================================================
Shared memory pools
Key: 10 Pool
Size configured.....: 2100000000 (2002.7 MB)
Size min. estimated.: 664763426 ( 634.0 MB)
Advised Size........: 668000000 ( 637.1 MB)
Shared memories inside of pool 10
Key: 1 Size: 512 ( 0.0 MB) System administration
Key: 4 Size: 1109520 ( 1.1 MB) statistic area
Key: 7 Size: 33376 ( 0.0 MB) Update task administration
Key: 11 Size: 3000000 ( 2.9 MB) Factory calender buffer
Key: 12 Size: 6000000 ( 5.7 MB) TemSe Char-Code convert Buf.
Key: 13 Size: 60500000 ( 57.7 MB) Alert Area
Key: 14 Size: 40000000 ( 38.1 MB) Presentation buffer
Key: 16 Size: 21360 ( 0.0 MB) Semaphore activity monitoring
Key: 18 Size: 3382760 ( 3.2 MB) Paging administration
Key: 21 Size: 27232832 ( 26.0 MB) Request Queue Admin
Key: 30 Size: 86140 ( 0.1 MB) Taskhandler runtime admin.
Key: 46 Size: 160 ( 0.0 MB) DB sync table
Key: 47 Size: 41063424 ( 39.2 MB) DB CUA buffer
Key: 48 Size: 2760160 ( 2.6 MB) Number range buffer
Key: 49 Size: 2409708 ( 2.3 MB) Spool admin (SpoolWP+DiaWP)
Key: 51 Size: 35000000 ( 33.4 MB) Extended memory admin.
Key: 52 Size: 180000 ( 0.2 MB) Message Server buffer
Key: 56 Size: 535936 ( 0.5 MB) Application statistics
Key: 57 Size: 1992294 ( 1.9 MB) Profilparameter in shared mem
Key: 58 Size: 2076 ( 0.0 MB) Enqueue ID for reset
Key: 62 Size: 180355072 ( 172.0 MB) Memory pipes
Key: 64 Size: 4227072 ( 4.0 MB) Online Text Repository Buf.
Key: 65 Size: 204832768 ( 195.3 MB) Export/Import Shared Memory
Key: 81 Size: 35184 ( 0.0 MB) Security Audit Log
Shared memories outside of pools
Key: 2 Size: 248242704 ( 236.7 MB) Disp. administration tables
Key: 3 Size: 313344000 ( 298.8 MB) Disp. communication areas
Key: 6 Size: 4259840000 (4062.5 MB) ABAP program buffer
Key: 8 Size: 1024000500 ( 976.6 MB) Paging buffer
Key: 20 Size: 156915666 ( 149.6 MB) New Table buffer tbi
Key: 34 Size: 536870912 ( 512.0 MB) Enqueue table
Key: 41 Size: 25010000 ( 23.9 MB) DB statistics buffer
Key: 42 Size: 268510352 ( 256.1 MB) DB TTAB buffer
Key: 43 Size: 2088001424 (1991.3 MB) DB FTAB buffer
Key: 44 Size: 425601424 ( 405.9 MB) DB IREC buffer
Key: 45 Size: 220801424 ( 210.6 MB) DB short nametab buffer
Key: 54 Size: 307208192 ( 293.0 MB) Export/Import buffer
Key: 63 Size: 409600 ( 0.4 MB) ICMAN shared memory
Key: 73 Size: 60211232 ( 57.4 MB) CCMS Extended Alert Area
Key: 76 Size: 1185920 ( 1.1 MB) Ext. Segment Administration
Key: 77 Size: 66688 ( 0.1 MB) Ext. Memory Administration
Key: 78 Size: 4272 ( 0.0 MB) Ext. Global Memory Admin
Key: 83 Size: 115343360 ( 110.0 MB) ABAP Coverage Analyzer
Key: 85 Size: 53264 ( 0.0 MB) ACM Trace and others
Shared memory resource requirements estimated
Total Nr of shared segments required.....: 22
Nr of shared segments successful tested..: 100
Shared memory segment size required min..: 4259840000 (4062.5 MB)
Currently available maximum segment size.: 34359738368 (32768.0 MB)
R/3-imposed maximum segment size.........: 21474836480 (20480.0 MB)
Memory Space Requirements Estimated *
================================================
Shared memory....................: 10225 MB
..in pool 10: 634.0 MB ( 99% used) **
..not in pool: 9586.4 MB
Extended Memory .................: 0 MB
SAP Heap Memory .................: 95 MB
Gateway process .................: 143 MB
ICM process .....................: 195 MB
All Processes ...................: 4648 MB ( 41 WPs)
------------------------------------------------
Total, minimum requirement........: 14873 MB
Process local heaps, worst case...: 4743 MB
Total, worst case requirement.....: 14968 MB
* These are only estimated values,
final sizes may change
** Shared Pools are automatically
calculated by Kernel
================================================
Errors detected..................: 1
Warnings detected................: 0
================================================
每天进步一点点,多思考,多总结
版权声明:本文为CNblog博主「zaituzhong」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。