zoukankan      html  css  js  c++  java
  • SAP 性能分析(转载)

    processing time和cpu time对比是一个很重要的参数,根据sap的标准,如果 processing time 大于2倍 cpu time,说明进程有过多的等待,往往可以说明存在cpu瓶颈。--当然也有其他原因,如锁等。

    就整体而言:
    Main menu(transaction profile)<100ms,就是说在sap标准菜单中的操作相应时间小于100ms
    wait time < 10% response time,比较小的wait time,说明dispatcher工作正常,能够及时响应,因此系统整体性能应该良好。
    有一个经验性的参数,就是平均response time在1秒以下,代表着系统有良好的性能,但是需要个例对待。

    此外还有以下参数:

    • 平均 roll-in time < 20ms
    • 平均 roll-wait time < 200ms
    • 平均 load(and generation) time < 10% response time (50ms)
    • 平均 database request time < 40% of (response time-wait time)
    • 平均 cpu time 和 processing time 相当

    large roll-wait time 代表着 sap 应用服务器同 GUI 或者外部系统的连接有性能问题。
    large load time 一般是对应的 program,cua 或者screen 缓存偏小
    large database time 则对应着数据库性能问题 (database cpu/memory bottleneck, network work problem,index,buffer,statistics等),也可能是 expensive sql statement.
    large cpu time 可能是 abap 程序性能问题
    processing time 远大于 cpu time 往往代表 cpu 瓶颈,网络问题

    SAP内存区域
    Shared Memory: SAP Buffer (Program, Screen, Data Dictionary), Extended Memory, Roll Buffer, Paging Buffer
    Local Memory: Local Roll, Local Page, Heap Memory

    Roll Area(属于local memory), 主要存储user context,比如程序指针,set/get parameters,权限,内表,报表。
    Paging Area(属于local memory),主要存储程序相关数据。比方说extract,Import and Export,call transction之类。
    Roll Buffer和Paging Buffer则是对应Roll area,paging area得shared memory 部分,roll-in过程表示从roll/paging buffer(shared memory)拷贝user context道roll/paging Area(local memory),roll-out恰好相反。
    Roll file和Paging file则是对应Roll buffer和Paging buffer得文件部分(on disk),当Roll buffer和paing buffer不足,则会存储与Roll file和Paging file.
    Extended Memory(属于Shared Memory),存储同Roll area得数据,不过用户进程访问extended memory不同于roll area得拷贝,而是映射.

    Extended Memory采用映射方式的好处在于:使用指针访问成本更低,速度更快,能够更有效的利用内存,降低cpu和硬盘的负载。当然,extended memory需要足够的物理内存来支持,因为它设计的初衷是理应只存在于物理内存。

    内存分配顺序

    SAP内存都是通过instance profile参数来设置的,所以下面简单介绍相关内存参数(st02 SAP memory部分的内存参数,这里都以unix平台为基准,windows平台则是采用零内存管理,在内存参数上有着差异)。
    Profile parameter            Comment
    ztta/roll_area                    Roll area per workprocess (total)
    ztta/roll_first                      First amount of roll area used in a dialog WP
    ztta/short_area                 Short area per workprocess
    rdisp/ROLL_SHM              Part of roll file in shared memory
    rdisp/PG_SHM                  Part of paging file in shared memory
    rdisp/PG_LOCAL              Paging buffer per workprocess
    em/initial_size_MB             Initial size of extended memory
    em/blocksize_KB               Size of one extended memory block
    em/address_space_MB     Address space reserved for ext. mem. (NT only)
    ztta/roll_extension             Max. extended mem. per session (external mode)
    abap/heap_area_dia         Max. heap memory for dialog workprocesses
    abap/heap_area_nondia    Max. heap memory for non-dialog workprocesses
    abap/heap_area_total        Max. usable heap memory
    abap/heaplimit                   Workprocess restart limit of heap memory

  • 相关阅读:
    绳关节(b2RopeJoint)
    公式推导 圆面积公式 圆周长公式
    ALTER TABLE causes auto_increment resulting key 'PRIMARY'
    MySQL通过Binlog恢复删除的表
    Barracuda VS antelope
    mysqldump 参数说明
    MySQL复制
    MySQL Server-id的作用
    MySQL 简洁连接数据库方式
    Kill 所有MySQL进程
  • 原文地址:https://www.cnblogs.com/weikui/p/13963236.html
Copyright © 2011-2022 走看看