Rate This Document
Findability
Accuracy
Completeness
Readability

Software

How Do I Install DPAK?

The Data Processing & Acceleration Kit (DPAK) is an application enablement suite of the Kunpeng DPU solution based on a unified software framework for DPUs and SmartNICs. For details about how to install DPAK-related software, see the user guide of each scenario on the Huawei technical support website.

How to Use jemalloc to Optimize Memory Allocation?

jemalloc is a memory allocator. Compared with other memory allocators (such as glibc), jemalloc has the following advantages: high memory allocation performance and fewer memory fragments in multi-threaded scenarios. To make full use of the multi-core and multi-concurrency advantages of the Kunpeng chip, it is recommended to use jemalloc in service application code to allocate memory. During memory allocation, locks cause thread waiting, which greatly affects performance.

jemalloc uses thread variables to prevent threads from contending for locks: each thread has its own memory manager. Since memory allocation is performed within a thread, the thread does not need to contend for locks with other threads.

The modification method is as follows:

  1. Download jemalloc and compile and install it by referring to INSTALL.md.
  2. Modify the linking of the application software by adding the following compilation options:

    -I`jemalloc-config --includedir`-L`jemalloc-config --libdir` -Wl,-rpath,`jemalloc-config -- libdir` -ljemalloc `jemalloc-config --libs`

    For details, see Getting Started.

  3. For some open source software, you can modify configuration parameters to specify the memory allocation library. For example, you can configure malloc-lib=/usr/local/lib/libjemalloc.so in the my.cnf file for MySQL.

How to Install docker-compose on a Kunpeng AArch64 Server?

For details, see Reference for Installing docker-compose on the Kunpeng Platform.

How to Configure the Java Development Environment?

  1. Use PuTTY to log in to the server as the root user.
  2. Install the Java package.

    yum install java-1.8.0-openjdk.aarch64

  3. Check whether Java has been installed.

    java -version

    If the following information is displayed, the installation is successful:

     openjdk version "1.8.0_212"

How to Perform a BenchmarkSQL Test?

BenchmarkSQL is an open-source database test tool with embedded TPC-C test scripts. It can be used to test PostgreSQL, MySQL, Oracle, and SQL Server databases. It uses JDBC to perform Online Transaction Processing (OLTP) TPC-C tests. For details, see BenchmarkSQL Test Guide.

How to Obtain the SPEC Test Tool?

Obtain the SPEC CPU® 2017 benchmark from the official SPEC website.

How to Query Kunpeng-Compatible Software?

To query software that has been adapted to Kunpeng, contact Huawei engineers.

How to Obtain the Kunpeng Compatibility Test Tool?

  • Obtain the compatibility test tool from Huawei Cloud Mirrors.
  • For details about how to install and use the tool, contact Huawei engineers.

How to Perform Kunpeng Compatibility Tests?

Use the compatibility test tool. For details, contact Huawei engineers.

How to View Kunpeng Software Porting Practices?

Visit Kunpeng Documentation > Best Practices > Application Porting. URL: https://www.hikunpeng.com/en/document/practice

How to Obtain the Top 10 Tips for Performance Tuning?

Top 10 Tips for Performance Tuning describes common performance tuning methods and analysis tools for Kunpeng chips from the aspects of CPU and memory subsystem, network subsystem, drive I/O subsystem, and application program tuning. This document is intended for R&D engineers and technical support engineers who perform performance tuning. For details, see Top 10 Tips for Performance Tuning.

How to Install Gogs on a Kunpeng Server?

  1. Visit the official website to find the AArch64 installation package. If no installation package is available, obtain the source code from GitHub, compile the code, and build a Docker image.
  2. If you install Gogs using Docker, run the docker search command to search for the AArch64 Gogs image. If the image is found, pull the image using Docker.

Is the MySQL Compatibility of openGauss Implemented Through the Dolphin Plugin?

The MySQL compatibility of openGauss is implemented through both the Dolphin plugin and the kernel. The Dolphin manual covers only a portion of the MySQL compatibility features; the remaining compatibility logic is implemented within the kernel and operates independently of the Dolphin plugin.

What Are Possible Modifications in Porting Interpreted Language Applications?

The following modifications may be involved in porting interpreted language applications:

  • Direct interpretation: Neither the code nor programs need to be modified or recompiled for applications written in an interpreted language. For example, you just need to install the Arm-based JDK for Java software porting.
  • Dependency library compilation: If the software contains dependency libraries, these libraries need to be recompiled.

How to Access Huawei Cloud Mirrors?

Click Huawei Cloud Mirrors.

How to Handle "No Password-free Trust Relationship" Prompted by the Compatibility Test Tool?

Symptom

In standalone deployment, after the compatibility test tool is used to run a test script, the tool prompts that no password-free trust relationship is established with the current server. You need to configure the trust relationship and run the script again. The log information is as follows:

Before initiating the automated compatibility test, fill in the compatibility_testing.conf file by referring to the README file. The script consists of 10 steps and takes about 50 minutes. During the test, the application under test will be repeatedly started and stopped. Do not run the compatibility test tool in a production environment.
Confirm whether the current environment is a production environment. If yes, enter Y. If no, enter N.
You entered N.
Step 1: Check the configuration file. Start. Step 1 completed
Step 2: Check software dependencies. Start : Name or service not knownname : Name or service not knownname no password-free trust relationship with the current server. Please configure it and re-execute the script.

Solution

In standalone deployment, ensure that the cluster_ip_lists parameter in the compatibility_testing.conf file is empty and change the value of HAS_CLUSTER_ENV in the compatibility_testing.sh file to 0 to temporarily avoid this issue.