Giter VIP home page Giter VIP logo

pmem-perf-sweep's Introduction

Intel® Optane™ persistent memory Power and Performance User Guide (PnP)

Instructions for Intel® Optane™ persistent memory Performance Sweep

This script measures PMem idle latency, loaded latency, and maximum bandwidth for various scenarios using MLC to test an App Direct namespace containing a filesystem and mounted as DAX. Use the latest available copy of MLC (https://software.intel.com/en-us/articles/intelr-memory-latency-checker).

It is possible to run the script (pmem_perf_sweep.sh) with no arguments if the namespace is mounted at /mnt/pmem and the MLC binary mlc_avx512 is in the same directory as the script. Otherwise, these paths can be specified as command line options to the pmem_perf_sweep.sh.

The number of PMem DIMMs is detected first with ndctl and if that fails it attempts to use ipmctl.
If both utilities are missing the user is asked to input the number of DIMMs belonging to the specified namespace. The number of CPU cores per socket is also detected. The CPU cores of socket 0 are used by default for load traffic; to modify use optional command syntax -s . If changing to use a different socket please ensure you point to the pmem mounted on that socket as well.

The script will take approximately 15 minutes to complete. A summary of each metric and the system configuration is printed to Linux* display (stdout). A date-stamped outputs directory is also created containing the various MLC outputs.

Pre-Conditions

Use a terminal from which the stdout may be captured. The pmem_perf_sweep.sh (mlc) displayed output will need to be cut/paste into the analysis .xlsx spreadsheet after the test completion. Alternatively, use standard Linux command support to redirect the stdout to a text file for collection.

Performance Test Steps

  • Download and install latest MLC software on the Linux, System Under Test (SUT).

  • Copy the PnP script (pmem_perf_sweep.sh) to the Linux, SUT. Add execute permissions.

    • chmod +x pmem_perf_sweep.sh

  • Boot into the BIOS setup menu or configure the BIOS Power Throttler Configuration setting as described in the Intel_Optane_PMem_ES2_PnP_Guidance, pg. 39.

  • UEFI CLI (create goal) configure the App Direct interleaved persistent memory allocation.

    • UEFI CLI:
      • ipmctl.efi create -f -goal

      • reset

    • Software Management:
      • ipmctl create -f -goal

      • reboot

  • Create an App Direct namespace on the persistent memory region associated with CPU 0, UEFI CLI example syntax.

    • UEFI CLI:
      • ipmctl.efi show -region -socket 0

      • ipmctl.efi create -namespace -region

    • Software Management:
      • ipmctl show -region -socket 0

      • ndctl create-namespace --region

  • Boot to Linux OS. Identify the namespace device. Then create and mount a DAX enabled file system. Device /dev/pmem0 is used in this example the same as the default mount point configured in the pmem_perf_sweep.sh script (/mnt/pmem).

    • ls /dev/pmem*

    • mkdir -p /mnt/pmem

    • mkfs.ext4 -b 4096 -E stride=512 -F

    • Mount with DAX option:
    • mount -o dax /dev/pmem0 /mnt/pmem

  • Execute the performance script, specify the path to the mlc executable if necessary. Other Optional arguments are:

    • -p <Path to mounted PMEM directory>
      • By default, the pmem memory is expected to be mounted to /mnt/pmem
    • -s <Socket>
      • By default, Socket 0 is used for load the traffic

    The below example also includes syntax to collect stdout to a logfile. Note: The script default path is: MLC=./mlc_avx512

    • ./pmem_perf_sweep.sh -m /root/mlc/Linux/mlc_avx512 -p /mnt/pmem -s 0 | tee -a PMem_PnP_result.log

pmem-perf-sweep's People

Contributors

maggie1812 avatar ivandcue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.