Translate

Composite SAP Note: Performance optimization during import

Performance during transport: Transports should be performed as quickly as possible to minimize system downtimes or to be able to make maintenance intervals as short as possible.

This note describes the issues that generally are to be taken into account. The first section involves issues that have to be taken into account, while other sections refer to options that lead to further improvements under certain circumstances.

    1. Homework:

        a) On UNIX: If the transport directory is mounted using NFS, use at least NFS 4 and leave the transport profile parameter "lock_check_wait_time=0" (this is the default value). For more information, see Note 132536.
        If "lock_check_wait_time=n" is set, you can expect that the import of m transport requests spends approximately 3*n*m seconds with "sleep" alone. Therefore, you must have  n=0 as of approximately 100 transport requests and higher.

        b) On Windows: Deactivate opportunistic locks (Note 690449).

        c) Use the "import all" strategy wherever possible.
        If you can use organizational measures to ensure that the sequence of transport requests in the queue is correct, you should ideally process it with the "import all" strategy. Even if you are still working with individual imports in the Q system, it may be an option for subsequent systems.

        d) If you work with the individual import strategy or if you use Transportation Management tools of SAP partners, you should consider Note 1008058.

        e) Let transport background jobs run on high-performance hosts without competion.
        The steps that are performed during an import are partially implemented in ABAP and are executed by SAP background processing. Note that the transport jobs (job name = RDD*, normally user = DDIC) without much competition run by other background jobs.
        For more information about control and about the server on which the transport jobs are running, see Note 1147300.

        f) Regular cleanup in the transport directory.
        Directories with too many files have a negative effect on performance on all platforms. Therefore, run "tp clearold all" regularly. This prevents the number of files in the subdirectories of <TRANSDIR> from becoming higher and higher and a performance bottleneck occurring at file system level.
        For more information about "clearold", see Note 312843.
        Also see the "System-specific log directories" paragraph in chapter 2 of this note.

        g) On DB2/MVS: Use a current R3trans version for the import: Kernel release 700 or higher, R3trans version from August 05, 2008 or later.

        h) In MSSQL: Use a current R3trans version for the import: Kernel release 700 or higher, R3trans version from March 22, 2010 or later.

    2. Further options for accelerating imports:

        a) "Accelerated Import" for a large number of small transports
        If you usually have many transport requests to import that are relatively small, you should then set the parameter "acc_import=true" in the transport profile. This activates the "accelerated import" with which the import steps DataDictionary import and main import (and possibly also Commandfile import, for example, if vers_at_imp is set) are each processed by a single R3trans process, so that the overhead, which normally occurs if a separate R3trans process is started for each transport request, no longer occurs.

        b) Using "activatemerged=true" to activate the ABAP Dictionary for multiple small transports
        If you typically have to import many transport requests that contain ABAP Dictionary objects (for example, domains, data elements, tables, indexes, views, and so on), you must set the parameter "activatemerged=true" in the transport profile. This ensures that the system does not activate the ABAP dictionary for each request; instead, it performs a joint activation run for all ABAP Dictionary objects that were imported in an import queue. This omits the overhead that occurs due to multiple activations of several transported objects and their dependent objects. In addition, the internal parallel processing potential of the ABAP Dictionary activation program can be better used.
        One disadvantage of this option is that a collective activation log exists rather that an individual activation log for each transport request; the activation logs then contain only a reference to the collective log. If it is important that the developer can see "their" activation errors directly, we recommend that you do not use this option yet for the consolidation system and that you wait until additional systems have been delivered.

        c) Import with parallel processes
        If you usually have large transport requests to import (with 100 or more objects, for example, client transports), you can then set the parameter "parallel=n" in the transport profile, whereby n is the maximum number of parallel processes. Since the ideal values for n depend to a large extent on the hardware and the database, we recommend that you start with small values and increase them gradually.
        For more information, see Note 1127194.

        d) System-specific log directories
        By default, all of the logs that are generated during the transport are stored in the directory <TRANSDIR>/log. If you set the transport profile parameter SID_LOG_FILES = TRUE, all of the logs of the transport activities and in particular, all of the transport request-specific logs, are stored in system-specific subdirectories <TRANSDIR>/log/<SID>. As a result, the number of files in the log directory is drastically reduced, leading to a considerable acceleration at file system level.

        e) Selective language import
        Importing deletions into language-dependent tables is faster with the profile parameter "sli=true" and the R3trans version from March 04, 2010 or later, particularly in the database DB2/6000.

    3. Options for shortening the system downtime:

        a) Delaying ABAP generation (see Note 1069417 for more information)

        b) When you transport large datasets that are mostly in the target system (for example, client transports in existing clients)
        It is worth using the R3trans version of July 4, 2008 or later for the import, since a performance improvement is effective for the internal comparison of table entries as of this version.

        c) Limiting table cache size
        R3trans tries to save time during the import by merging the existing table entries with the table entries that are to be imported, and it writes only the modified part to the database, thereby reducing the write database accesses. To so so, the system creates a main memory area dynamically that is up to 2GB in size (the table cache). If the main memory that is required for this purpose is available virtually but not physically, the operating system starts with paging, which undoes the expected performance improvement. In this case, it is better to limit the main memory that is occupied by the table cache. R3trans then automatically switches to DELETE/INSERT so no functional disadvantage arises.
        You limit the table cache with the R3trans option "tcs=nnn", whereby nnn is the number of bytes (for example, "tcs=100000000").
        To set this R3trans option, see Note 103582.

1 comment:

Varsha said...

Hey,
I noticed your Article. I just loved it.
Experience one of the sap fico Training in hyderabad and take your carrier to next level.
If you like it feel free and share it.
Cheers,
Varsha.

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall