Sap Hana and Intel Optane Configuration Guide
Sap Hana and Intel Optane Configuration Guide
SAP HANA is the first major database platform to support Intel Optane PMem, which
gives it the ability to expand beyond the density limitations of traditional memory while
benefitting from the non-volatile capabilities of persistent memory. This new class of
memory technology, combined with the power of SAP HANA 2.0 support package
stack (SPS) 04 (or later), is ushering in a new generation of non-volatile in-memory
technologies that promise to revolutionize the intelligent business.
This paper provides an overview of the benefits of combining servers equipped with
Intel Optane PMem with SAP HANA 2. It then provides a high-level overview of the
physical server requirements and steps to configure Intel Optane PMem for use with
SAP HANA.
Intel continually pushes the performance envelope with each new generation of
Intel® Xeon® processors, system memory, and Intel® SSDs. As a result,
Intel Optane PMem, a completely new class of memory, promises not only
to continue the tradition of pushing the performance envelope, but also to
revolutionize application performance and capabilities.
Configuration Guide
Intel Optane Persistent Memory: Intel Optane PMem changes the data-storage landscape
because it lets enterprises keep more data in the hot tier.
A Revolution for Enterprise Computing Persistent memory provides near-DRAM performance in
the same dual in-line memory module (DIMM) slot as DRAM.
Enterprises with large data-storage requirements often use a
It is also byte-addressable, just like DRAM, but it provides
tiered memory and storage architecture, or heat map, for different
the same persistence as flash- and disk-based block storage.
types of data and workloads. These tiers include:
This persistence means that data is retained across server
• “Hot tier” DRAM-based memory: Among the main memory reboots and power outages. In addition, while DRAM has
and storage tiers, DRAM-based main memory typically is the traditionally been limited in size when compared to flash- and
fastest memory available, but it is also the most costly, and disk-based storage, persistent memory allows larger memory
it provides relatively low density when compared with other configurations at a cost that can drive down platform total cost
storage technologies. Data in DRAM does not persist when of ownership (TCO).
the server is rebooted or powered off. For in-memory DBMSs,
Persistent Memory Can Revolutionize Application
such as SAP HANA, enterprises use DRAM to provide the
Capabilities and Speed
fastest speeds possible. But DRAM capacities have not
scaled as quickly as other storage technologies, such as As data volumes grow and the need for fast analytics capabilities
flash-based SSDs and spinning disks, which limits the size of continues to increase, so does the need for larger memory
in-memory databases and the amount of memory available capacities for in-memory databases. But with the size limitations
per processor. Access speed is measured in nanoseconds. of DRAM, enterprises have been unable to easily scale up their
in-memory database deployments. The alternative has been
• “Warm tier” flash-based storage: Based on NAND memory,
scaling out using clustering and shared storage, but scale-out
flash-based storage is less costly, but much slower than
solutions can increase management complexity, introduce a
DRAM. Unlike DRAM, flash-based storage retains data when it
performance penalty, and increase TCO.
is turned off, or when the device that contains the flash-based
storage restarts. Data in this tier is frequently accessed, but Enterprises are also embracing technologies such as artificial
not as often as hot-tier data. Examples of warm data include intelligence (AI) and machine learning (ML). These technologies
the financial data that drives monthly or quarterly reports. often require fast access to large datasets. Additionally,
Access speed is measured in microseconds. processing high-velocity data generated by technologies such as
• “Cold tier” spinning disk–based storage: Based on hard IoT places increased demands on in-memory database capacity.
disk drives (HDDs), this storage tier is the lowest cost storage,
but it is slow compared to flash-based storage and DRAM. Persistent memory brings new opportunities to in-memory
Spinning disk–based storage is most often used for archival databases and the applications that rely on them by providing
data or big data that is infrequently accessed. For example, higher memory density over DRAM. 2nd Generation Intel Xeon
long-term data storage from Internet of Things (IoT) devices processors can provide up to 4.5 TB of byte-addressable
stored on Apache Hadoop clusters often uses cold-tier capacity per socket. This means up to 18 TB of capacity in a
storage. Access speed is measured in milliseconds. four-socket system and up to 36 TB of capacity in an eight-socket
system that could run at near DRAM speeds. See Tables 3 and 4
for examples of socket- and memory-slot configurations.
DRAM and Intel Optane This tier is used to store mission-critical data
for real-time processing and analytics.
persistent memory
Hot
Hadoop, and Apache Spark Data is stored on lower-cost storage, like disk or
Hadoop, managed separately from the SAP HANA
database, but it is still accessible at any time.
Figure 1. Intel Optane persistent memory provides new opportunities to expand the performance capabilities of in-memory databases by providing
near-DDR4 DRAM speeds with the same persistence as flash- and disk-based storage
Configuration Guide
SAP HANA 2.0 SPS 04 fewer nodes configured with DRAM and Intel Optane PMem.
Organizations can also upgrade servers that support
(or Later) Support for Intel Optane PMem with higher capacity memory modules
Intel Optane Persistent Memory as database sizes grow. With the ability to store more data
in the hot and warm tiers, enterprises can simplify SAP HANA,
Intel and SAP have collaborated to bring Intel Optane PMem SAP S/4HANA, and SAP BW/4HANA data-tier management,
support to SAP HANA. By providing more memory for which helps lower management and infrastructure costs.
SAP HANA, enterprises can keep older data, typically
stored in the warm data tier, in the hot data tier, which Organizations can also combine transactional and analytical
can help reduce data-management complexity and TCO. workloads onto single SAP HANA nodes, further reducing
In addition, the non-volatile nature and higher memory deployment complexity. With Intel Optane PMem, organizations
densities of Intel Optane PMem enable better can realize a 39 percent cost savings per database terabyte.3
business-continuity solutions and provide a platform Larger memory configurations also let enterprises run memory-
for emerging memory-intensive technologies. intensive workloads, such as predictive analytics, in less time,
which leads to greater operational efficiencies.
Double the Database Capacity for Similar Price
and Performance More Memory Provides Efficient
SAP HANA and application suites such as SAP S/4HANA® Business-Continuity Solutions
and the SAP® BW/4HANA® solution are ideal platforms for A robust business-continuity solution is key to any business’s
addressing the needs of the data-driven enterprise. However, survival. With hardware solutions that make use of the expanded
organizations have experienced constraints due to DRAM’s memory densities of Intel Optane PMem, enterprises can create
stagnant memory density and higher cost; multiple SAP HANA more efficient and cost-effective business-continuity solutions.
nodes and complex data tiering strategies are often required to
address the growing data needs. Intel Optane PMem addresses The larger memory capacity of Intel Optane PMem expands the
these issues by providing increased density, up to 36 TB of total architectural options available to enterprises that rely on
memory per server, which increases the memory scalability of SAP HANA for critical business needs. Smaller DRAM-based
SAP HANA, SAP S/4HANA, and SAP BW/4HANA SAP HANA nodes at a primary site can replicate data to a larger,
offsite node that contains Intel Optane PMem and DRAM.
Higher memory densities also enable more efficient use of The offsite node can also be used for multiple purposes,
hardware through system consolidation. Enterprises can scale such as quality assurance (QA), development, or active-active
up instead of scaling out to run larger transactional and analytics replication, for less cost than an equivalent DRAM-only system.
systems in the same physical hardware space, which reduces In the event of a primary site failure, the larger node can take
the data center hardware footprint of SAP HANA and lowers over the demands of the primary-site SAP HANA nodes until the
power and cooling costs. For example, Intel IT tested scaling up primary site is restored.
versus scaling out. The scale-up system showed up to 2.4 times
query-performance improvement over the scale-out system, and SAP HANA deployments that use Intel Optane PMem no longer
could provide 52 percent more memory capacity.1,2 require data to be loaded from slower storage systems when the
node is restarted, dramatically lowering data load times at startup
With more memory available, organizations can also and enabling a quicker return to operations. Faster loading times
dramatically simplify their SAP HANA deployment architecture reduce recovery time, which can cost enterprises more than
by consolidating smaller DRAM-only SAP HANA nodes onto $100,000 for every hour of downtime.4 For example, Intel and
Before (DRAM + NAND SSD) After (DRAM + Intel Optane Persistent Memory)
System
DRAM (Hot) CPU
Architecture CPU
DRAM (Hot) Intel Optane PMem
SSD (Warm) (Hot)
NAND SSD
Read Latency Intel Optane PMem Range: 100s–2,000 nanoseconds
Range: 25,000–650,000 nanoseconds
(99.99%) Typical: 70,000 nanoseconds Typical: 100s nanoseconds
Figure 2. Intel Optane persistent memory improves performance and quality of service (QoS) by eliminating data paging between DRAM and SSDs
Configuration Guide
SAP engineers demonstrated how a server, equipped with DRAM Intel Optane Persistent Memory
only and the SAP HANA 2 platform with 6 terabytes of data,
required 50 minutes to start, including data loading.5 By contrast, Configuration Considerations for
a server equipped with a combination of Intel Optane PMem and SAP HANA
DRAM reduced the start time of the SAP HANA 2 platform by
12.5x, to only 4 minutes.5 This section discusses the following persistent memory
configuration steps:
Increased Memory Capacity Enables
Emerging Technologies • Platform support and operating modes for persistent memory
Larger datasets and the higher velocity data being driven by • Hardware sizing for SAP HANA 2.0 SPS 04 and higher
new technologies place additional strains on the traditional • DRAM-to–persistent memory ratios
data-deployment model. DRAM’s lower memory density
• Memory-slot configuration and Intel Optane PMem placement
limits the amount of data SAP HANA and applications such as
SAP S/4HANA and SAP BW/4HANA have available to them in the • BIOS configuration
hot tier. As a result, more data must be stored in the slower warm • Operating system support and configuration
and cold tiers. • Enabling persistent memory support in SAP HANA
The increased memory density and near-DRAM speed of Platform Support and Operating Modes for
Intel Optane PMem mean that SAP HANA can store more Persistent Memory
data in the hot tier, making low-latency access to greater Intel Optane PMem is supported on servers equipped with 2nd
amounts of data a reality for use cases such as AI and ML. Generation Intel Xeon Gold processors and Intel Xeon Platinum
Larger data models and faster response times help lower the processors. Two primary modes are supported: App Direct
time required for training AI, which can help lower the time to Mode, including Block over App Direct, and Memory Mode.
value of AI deployments. App Direct Mode is the only mode that is currently supported
by SAP HANA 2. In App Direct Mode, Intel Optane PMem
Larger memory architectures are also ideal for capturing and
modules appear as byte-addressable memory resources that are
processing high-velocity data, such as the data generated by
controlled by SAP HANA 2. In this mode, the persistent memory
large IoT deployments. Higher capacity also means more data
space is controlled directly by SAP HANA.
can be maintained in memory to meet legal and compliance
requirements while driving more robust real-time analytics Memory-Sizing Recommendations for SAP HANA
across larger datasets.
Sizing for SAP HANA deployments can be accomplished using
Simplify the SAP HANA Landscape with a fixed core-to-memory ratio based on workload type, or by doing
Scale-up Architecture a self-assessment using the SAP HANA Tailored Datacenter
Integration (TDI) approach and sizing tools provided by SAP.
For organizations that require scale-out capabilities,
SAP HANA provides native support for extension nodes. The utilization of Intel Optane PMem requires an appropriate
SAP HANA extensions nodes, combined with the additional sizing to help ensure the best performance of an SAP HANA
capacity of Intel Optane PMem, can provide seamless integration installation. SAP provides a decision tree at https://sap.com/sizing
of analytical and transactional platform architectures. Hot-tier that can help provide the right tools and procedures.
data within extension nodes is stored in persistent memory
modules (Intel Optane PMem) and DRAM. More data can Green-Field Sizing
be stored in persistent memory and accessed at near-DRAM In case of a brand new installation, Quick Sizer enables
speeds, which translates into less disk swapping and customers to define the key performance indicators (KPIs) and
increased performance. criteria for an SAP HANA system. These defined parameters
drive an SAP recommendation for the required hardware,
SAP HANA backup, recovery, and system replication function
memory, and storage. Quick Sizer recommends a ratio between
exactly the same with Intel Optane PMem. Backup and recovery
DRAM and Intel Optane PMem that supports the defined KPIs.
operations work transparently with persistent memory in that
backups save all persistence volume data without accessing For more information about Quick Sizer (including registration for
persistent memory. Data can then be restored to the persistence training), visit sap.com/about/benchmark/sizing.quick-sizer.html.
volume. SAP systems engineers might consider deploying
servers equipped Intel Optane PMem as replicated backup Migrations/Brown-Field Sizing
or disaster-recovery nodes. In contrast to green-field sizing, migration projects are based on
existing installations, and a sizing can be done differently. SAP
System replication also works transparently with Intel Optane Sizing Reports provides the tools and procedures to determine
PMem, and it can be used in a mixed environment with systems the hardware requirements from an existing system (see Table 1).
configured with or without persistent memory. This also supports migrations from third-party databases to
SAP HANA, by which a projection of the anyDB data into
SAP HANA is made in order to achieve appropriate sizing.
Configuration Guide
Starting Point Sizing for SAP Business Sizing for SAP Business Sizing on Platforms Other
Warehouse on SAP HANA Suite on SAP HANA and Than the SAP NetWeaver®
and SAP BW/4HANA SAP S/4HANA Technology Platform
Migration/Brown Field SAP Note 2296290 (Sizing SAP Note 1872170 (Sizing SAP Note 1514966
Report for SAP BW4/HANA) Report for SAP S/4HANA) (SAP HANA: Sizing SAP
In-Memory Database)
The following SAP notes are also relevant to working with SAP HANA 2 currently supports various capacity ratios
persistent memory: between DRAM DIMMs and Intel Optane PMem modules.
Ratio examples include:
• SAP Note 2700084—FAQ Persistent Memory
• SAP Note 2618154—SAP HANA Persistent Memory • 1:1 ratio: On each 2-slot channel, a single 128 GB DDR4
DIMM is matched with a single 128 GB Intel Optane PMem
• SAP Note 2813454—Persistent Memory Configuration with
module, or a 256 GB DRAM DIMM is matched with a single
SAP BW/4HANA
256 GB Intel Optane PMem module.
Note: Accessing SAP Notes requires signing in with an • 1:2 ratio: On each 2-slot channel, a 128 GB DRAM DIMM
SAP account. is matched with a 256 GB Intel Optane PMem module,
or a 64 GB DDR4 DIMM is matched with a 128 GB
SAP offers additional expert sizing through the Intel Optane PMem module.
SAP MaxAttention™ program, which can analyze an existing • 1:4 ratio: On each 2-slot channel, a 128 GB DDR4 DIMM
environment and its requirements to design and size an is matched with a 512 GB Intel Optane PMem module,
SAP HANA landscape, helping to drive the best performance or a 64 GB DRAM DIMM is matched with a 256 GB
and best utilization of Intel Optane PMem. Intel Optane PMem module.
DRAM-to-PMem Ratios Different-sized Intel Optane PMem modules and DRAM DIMMs
Intel Optane PMem modules must be installed with DRAM DIMMs can be used together as long as supported ratios are maintained.
in the same system. Intel Optane PMem modules do not function Tables 3 and 4 illustrate some common DRAM and Intel Optane
without any DRAM DIMMs installed. PMem allocations for SAP HANA analytics and transactional
systems, respectively.
In any multi-socket (multi-CPU) configuration, each socket
contains two integrated memory controllers (IMCs). Each
Table 3. Common DRAM and Intel Optane persistent memory allocations
memory controller is connected to three double data rate (DDR)
for SAP HANA analytics systems
memory channels that are then connected to two physical DIMM/
persistent memory slots. In this configuration, a maximum of Memory Configuration Size DB DRAM:
12 memory slots per CPU socket can be configured with a (System, DRAM, and Size PMem Ratio
combination of Intel Optane PMem modules and DRAM DIMMs. Intel Optane PMem)
Table 2 lists the maximum number of memory slots available in
2 CPU: 1.5 TB DRAM M 3 TB 1:1
various CPU socket configurations.
(128 GB DDR) + 1.5 TB
Table 2. Maximum number of memory slots available in common CPU PMem (128 GB PMem)
socket configurations
4 CPU: 3 TB DRAM L 6 TB 1:1
Number of CPU Sockets Maximum Number of (128 GB DDR) + 3 TB
Memory Slots PMem (128 GB PMem)
One 12 8 CPU: 6 TB DRAM XL 12 TB 1:1
Two 24 (128 GB DDR) + 6 TB
PMem (128 GB PMem)
Four 48
8 CPU: 12 TB DRAM XXL 24 TB 1:1
Eight 96 (256 GB DDR) + 12 TB
PMem (256 GB PMem)
Sixteen 192
16 CPU: 12 TB DRAM XXL 24 TB 1:1
(128 GB DDR) + 12 TB
PMem (128 GB PMem)
Configuration Guide
Table 4. Common DRAM and Intel Optane persistent memory allocations BIOS Configuration
for SAP HANA transactional systems
Intel Optane PMem is enabled through BIOS settings.
Memory Configuration Size DB Size DRAM: Because each server vendors’ BIOS layout is different,
(System, DRAM, and PMem Ratio this section discusses general BIOS settings and pre-boot
Intel Optane PMem) UEFI command-line utilities. To configure servers from a
specific OEM, refer to the OEM’s server documentation for
2 CPU: 768 GB DRAM S 2.25 TB 1:2
persistent memory–specific information.
(64 GB DDR) + 1.5 TB
PMem (128 GB PMem) Enabling Intel Optane PMem support in the BIOS generally follows
2 CPU: 1.5 TB DRAM M 4.5 TB 1:2 these steps:
(128 GB DDR) + 3 TB
PMem (256 GB PMem) 1. During the server boot process, enter the BIOS by pressing
the key that activates the server’s BIOS settings.
4 CPU: 1.5 TB DRAM M 4.5 TB 1:2 2. Navigate to the BIOS option that correlates to the Intel Optane
(64 GB DDR) + 3 TB PMem configuration.
PMem (128 GB PMem)
3. Set Volatile Mode to Auto. Do not select 1LM (AppDirect)
4 CPU: 3 TB DRAM L 9 TB 1:2 or 2LM (Memory Mode).
(128 GB DDR) + 6 TB 4. Save the changes and exit the BIOS.
PMem (256 GB PMem)
Once Intel Optane PMem is enabled in the BIOS, the system
8 CPU: 3 TB DRAM L 9 TB 1:2 can be further configured using the UEFI shell or operating
(64 GB DDR) + 6 TB system tools.
PMem (128 GB PMem)
General Steps: Configure Intel Optane Persistent Memory for SAP HANA6
Step 1
Verify the EPEL repository is active with the following command:
$ yum repolist
For example:
$ sudo yum repolist
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,217
If the EPEL repository is not listed, install and activate it using the following command:
$ sudo yum install epel-release
Step 2
Query the package repository to confirm that ipmctl is available with the following command:
sudo yum info ipmctl
Example:
$ sudo yum info ipmctl
Available Packages
Name : ipmctl
Arch : x86_64
Version : 01.00.00.3474
Release : 2.el7
Size : 70 k
Repo : epel/x86_64
Summary : Utility for managing Intel Optane persistent memory modules
URL : https://github.com/intel/ipmctl
License : BSD
Description : Utility for managing Intel Optane DC persistent memory modules
: Supports functionality to:
: Discover DCPMMs on the platform.
: Provision the platform memory onfiguration.
: View and update the firmware on DCPMMs.
: Configure data-at-rest security onDCPMMs.
: Monitor DCPMM health.
: Track performance of DCPMMs.
: Debug and troubleshoot DCPMMs.
Configuration Guide
Step 3
NDCTL
The ndctl package is available on RHEL for SAP HANA 7.5 or later.
Step 1
Query the repository to identify if the ndctl package is available with the following command:
yum search ndctl
Step 2
The ipmctl package is available in the default package repository on SUSE for SAP HANA 12.4 (v12sp4) or later.
Step 1
Query the package repository to confirm that ipmctl is available with the following command:
sudo zypper info ipmctl
For example:
$ sudo zypper info ipmctl
Information for package ipmctl:
-------------------------------
Repository : SLES12-SP4-Updates
Name : ipmctl
Version : 01.00.00.3440-3.8.2
Arch : x86_64
Vendor : SUSE LLC <https://www.suse.com/>
Support Level : Level 3
Installed Size : 3.2 MiB
Installed : No
Status : not installed
Source package : ipmctl-01.00.00.3440-3.8.2.src
Summary : Utility for managing Intel Optane DC persistent memory modules
Description : Utility for managing Intel Optane DC persistent memory modules Supports
functionality to:
* Discover PMMs on the platform.
* Provision the platform memory configuration.
* View and update the firmware on PMMs.
* Configure data-at-rest security on PMMs.
* Monitor PMM health.
* Track performance of PMMs.
* Debug and troubleshoot PMMs.
Step 3
NDCTL
Configuration Guide
The ndctl package is available for SLES for SAP HANA v12.4 (v12sp4) or later.
Step 1
Query the repository to identify if ndctl is delivered with the following command:
sudo zypper search ndctl
For example:
$ sudo zypper search ndctl
SocketID ISetID PersistentMemoryType Capacity FreeCapacity HealthState
================================================================================================
0x0000 0x37c27f48425c2ccc AppDirect 3012.0 GiB 3012.0 GiB Healthy
0x0001 0xb96c7f4873572ccc AppDirect 3012.0 GiB 3012.0 GiB Healthy
Step 2
Table 5. Intel Optane PMem discovery commands provide information specific to the physical persistent memory and DRAM configuration
ipmctl show -topology Displays both the Intel Optane PMem and DRAM modules installed in the
system
ipmctl show -dimm Displays the Intel Optane PMem modules installed in the system
ipmctl show -a -dimm Displays detailed information about the Intel Optane PMem modules
ipmctl show -memoryresources Displays how the Intel Optane PMem capacity is provisioned for the App
Direct (AD) Mode and Memory Mode (MM); for example:
Capacity=12062.3 GiB
MemoryCapacity=0.0 GiB
AppDirectCapacity=12048.0 GiB
UnconfiguredCapacity=0.0 GiB
InaccessibleCapacity=14.3 GiB
ReservedCapacity=0.0 GiB
Configuration Guide
Complete the memory provisioning (goal) process by rebooting the server to enable the new settings.
After the reboot, the newly created DIMM-interleave-sets are represented as persistent memory “regions” of App Direct Mode
capacity. To view the region setup, use the List Regions command:
ndctl list -regions
This command will display similar information in table format and verify that Intel Optane PMem is set to App Direct Mode. This
command returns output similar to the following:
To determine which Intel Optane PMem modules are part of a particular region, use the List command with the Regions
and DIMMs modifiers. Each module will be listed within the mappings group:
ndctl list --regions --dimms
“phys_id”:33
},
{
“dev”:”nmem2”,
“id”:”8680-a2-1730-000004f3”,
“handle”:4097,
“phys_id”:57
}
],
“regions”:[
{
“dev”:”region5”,
“size”:268435456000,
“available_size”:268435456000,
“max_available_extent”:268435456000,
“type”:”pmem”,
“iset_id”:8743142107817513552,
“mappings”:[
{
“dimm”:”nmem3”,
“offset”:268435456,
“length”:134217728000,
“position”:1
},
{
“dimm”:”nmem2”,
“offset”:268435456,
“length”:134217728000,
“position”:0
}
]
},
{
“dev”:”region4”,
“size”:268435456000,
“available_size”:0,
“max_available_extent”:0,
“type”:”pmem”,
“iset_id”:8015984336272174284,
“mappings”:[
{
“dimm”:”nmem1”,
“offset”:268435456,
“length”:134217728000,
“position”:1
},
{
“dimm”:”nmem0”,
“offset”:268435456,
“length”:134217728000,
“position”:0
}
]
“persistence_domain”:”memory_controller”
}
]
}
Configuration Guide
The default syntax will create a namespace with direct access (DAX) support, mode=fsdax, which SAP HANA requires to properly utilize
Intel Optane PMem. The following example is equivalent syntax to explicitly set the mode; it also provides the option to specify a target
region (in this example, the first region is specified, region0).
ndctl create-namespace --mode fsdax --region 0
This command needs to be executed once for each CPU in the server. For example, in a four-socket server, the command needs to be
executed four times:
ndctl create-namespace --mode fsdax --region 0
ndctl create-namespace --mode fsdax --region 1
ndctl create-namespace --mode fsdax --region 2
ndctl create-namespace --mode fsdax --region 3
For servers with a large number of sockets (such as 8-socket or 16-socket servers), this can be onerous. A generic solution is to run the
following command, which creates one namespace per region on the system, no matter how many CPUs and regions there are. This
creates an internal FOR loop and will terminate on error:
ndctl create-namespace --continue
For a server with two sockets, this command returns output similar to the following when creating two namespaces:
{
“dev”:”namespace1.0”,
“mode”:”fsdax”,
“map”:”dev”,
“size”:”1488.37 GiB (1598.13 GB)”,
“uuid”:”4601589f-667e-4775-8d05-dbb0dcaf6cc8”,
“sector_size”:512,
“align”:2097152,
“blockdev”:”pmem1”
}
{
“dev”:”namespace0.0”,
“mode”:”fsdax”,
“map”:”dev”,
“size”:”1488.37 GiB (1598.13 GB)”,
“uuid”:”dce96530-58fc-4864-869b-8f7fbffa1bed”,
“sector_size”:512,
“align”:2097152,
“blockdev”:”pmem0”
}
To display namespaces, use the List command. Namespaces are shown by default without additional arguments:
ndctl list
The file systems created on the Intel Optane PMem device would then need to be mounted to an operating system directory with the
DAX option.
Users can create new directories or use existing ones. Multiple SAP HANA systems (SIDs) can share the same persistent memory
device folders, as long as the proper permissions are assigned (see Configure SAP HANA to Use Intel Optane PMem). For example:
mkdir /mnt/pmem0
mkdir /mnt/pmem1
mkdir /mnt/pmem2
mkdir /mnt/pmem3
Configuration Guide
Users can ensure that the file system mounts are available after the server reboots by adding entries to /etc/fstab. For example, the
following shows the entries added to /etc/fstab to automatically mount the file systems at boot time:
/dev/pmem0 /mnt/pmem0 xfs dax 0 0
/dev/pmem1 /mnt/pmem1 xfs dax 0 0
/dev/pmem2 /mnt/pmem2 xfs dax 0 0
/dev/pmem3 /mnt/pmem3 xfs dax 0 0
With multiple systems on the same server, this might look like the following:
mkdir /mnt/pmem0/DB1
…
mkdir /mnt/pmem3/DB1
chown db1adm:sapsys /mnt/pmem*/DB1
…
mkdir /mnt/pmem0/DB2
…
mkdir /mnt/pmem3/DB2
chown db2adm:sapsys /mnt/pmem*/DB2
This section can contain multiple directory locations separated by semicolons, and it can be set at the system (SID) or host level with a
mix of Intel Optane PMem and DRAM-only servers and SIDs.
Figure 3. Setting the SAP HANA Base Path via SAP HANA Studio
Configuration Guide
Users can also directly edit the text of the corresponding global.ini config file shown in the following example for a four-socket server
(DB1 is the SID in this example):
Filename: /hana/shared/DB1/global/hdb/custom/config/global.ini
# global.ini last modified 2020-01-01 00:00:46.413346 by hdbnameserver [persistence]
basepath_persistent_memory_volumes=/mnt/pmem0;/mnt/pmem1;/mnt/pmem2;/mnt/pmem3
For a multi-system server (in which DB1 and DB2 are the SIDs), this would look like the following:
Filename: /hana/shared/DB1/global/hdb/custom/config/global.ini
# global.ini last modified 2020-01-01 00:00:46.413346 by hdbnameserver
[persistence]
basepath_persistent_memory_volumes=/mnt/pmem0/DB1;/mnt/pmem1/DB1;/mnt/pmem2/DB1;/mnt/pmem3/DB1
Filename: /hana/shared/DB2/global/hdb/custom/config/global.ini
# global.ini last modified 2020-01-01 00:00:46.413346 by hdbnameserver
[persistence]
basepath_persistent_memory_volumes=/mnt/pmem0/DB2;/mnt/pmem1/DB2;/mnt/pmem2/DB2;/mnt/pmem3/DB2
Restart SAP HANA in order to activate the new parameter settings.At startup, SAP HANA tests for a DAX-enabled file system at the location
defined in the base path. Once SAP HANA verifies that the file system is DAX-enabled, all tables will use persistent memory by default. This
default behavior can be overridden if necessary. (See https://help.sap.com/—SAP HANA Administration Guide or SAP HANA SQL Reference Guide for
SAP HANA Platform for more details.) Save points help ensure that the contents of data in persistent memory are consistent with the persistence and
data log volumes.
This paper describes the configuration steps needed to configure a server running Intel Optane PMem and SAP HANA 2. As more persistent memory–
compliant server systems become available from leading OEMs, this overview can help inform configuration of proof-of-concept
systems that demonstrate the value of Intel Optane PMem and SAP HANA 2 for customers. For more information, visit intel.com/sap or
sap.com/persistent-memory.
Configuration Guide
1
Pricing guidance as of March 15, 2019. Scale-up configuration: eight-node SAP HANA 2 landscape. Per-node: eight-socket Intel Xeon Platinum 8276M processors. Memory capacity per socket: 6 x 128
GB DDR4 2,133 MHz and 6 x 128 GB Intel Optane persistent memory. Cost per terabyte on the scale-up system is $24,682.
Scale-out configuration: 21-node SAP HANA 2 landscape. Per-node: four-socket Intel Xeon Platinum 8276 processor. Memory capacity per socket: 12 x 64 GB DDR4 2,133 MHz. Cost per terabyte on the
scale-out system is $44,991.
2
Performance results are based on testing as of March 12, 2019 and may not reflect the publicly available security updates. Baseline: three-node SAP HANA 2 scale-out configuration (per node): 4 x
Intel Xeon processor E7-8880 v3 (2.3 GHz, 150 W, 18 cores), CPU sockets: 4; RAM capacity: 64 x 32 GB DIMM, RAM model: DDR4 2,133 megabits per second (Mbps); storage: GPFS, approximately 21.8
TB of formatted local storage per node, SAN storage for backup space only; network: redundant 10 gigabit Ethernet (GbE) network for storage and access, redundant 10G network for node-to-node; OS:
SUSE 12 SP2, SAP HANA: 2.00.035, GPFS: 4.2.3.10. Average time of 50 individual test queries executed 30–50 times each, for a total of approximately 25,000 steps: 2.81 seconds.
New configuration, one-node SAP HANA 2 scale-up configuration: CPU: 4 x Intel Xeon Platinum 8260 processor (2.2 GHz, 165 W, 24 cores), CPU sockets: 4; RAM capacity: 24 x 64 GB DIMM, RAM model:
DDR4 2,133 Mbps; Intel Optane persistent memory: 24 x 126 GB PMM; storage: XFS, 21 TB; network: redundant 10 GbE network; OS: SUSE 15, SAP HANA: 2.00.035, Intel BKC: WW06. Average time of 50
individual test queries executed 30–50 times each, for a total of approximately 25,000 steps: 1.13 seconds.
3
Based on Intel testing as of March 1, 2019: base configuration: 10 systems with four-socket Intel Xeon processor E7-8894 v4, 768 GB (12 x 64 GB) memory. Compared to: five systems with four-socket
Intel Xeon Platinum 8280L (28 cores), 2,304 GB (6 x 256 GB Intel Optane persistent memory + 6 x 128 GB DRAM, 2-2-2, App Direct Mode). Base system included $35,592 on CPU, $33,994 on memory,
$24,000 on storage, $7,603 on RBOM, and $0 on software, for a total of $101,189 (or $1,011,891 for 10 systems; $67,459 per TB of storage). Comparison configuration included $71,624 on CPU, $123,163 on
memory, $54,000 on storage, $7,603 on RDOM, and $0 on software, for a total of $256,390 (or $1,281,950 for 10 systems; $42,732 per TB storage).
4
The Rand Group. “How Much Does 1 Hour of Downtime Cost the Average Business?” randgroup.com/insights/cost-of-business-downtime/.
5
SAP HANA simulated workload for SAP BW edition for SAP HANA Standard Application Benchmark Version 2 as of 30 May 2018. Baseline configuration with traditional DRAM: Lenovo ThinkSystem
SR950 server with 8 x Intel Xeon Platinum 8176M processors (28 cores, 165 watt, 2.1 GHz). Total memory consists of 48 x 16 GB TruDDR4 2,666 MHz RDIMMs, and 5 x ThinkSystem 2.5” PM1633a 3.84 TB
capacity SAS 12 Gb hot swap SSDs for SAP HANA storage. The operating system is SUSE Linux Enterprise Server (SLES) 12 SP3 and uses SAP HANA 2.0 SPS 03 with a 6 TB dataset. Start time:
50 minutes.
New configuration with a combination of DRAM and Intel Optane persistent memory: Lenovo ThinkSystem SR950 server with 8 x Intel Xeon Platinum 8176M processors (28 cores, 165 watt, 2.1 GHz). Total
memory consists of 48 x 16 GB TruDDR4 2,666 MHz RDIMMs and 48 x 128 GB Intel Optane persistent memory modules (PMMs), and 5 x ThinkSystem 2.5” PM1633a 3.84 TB capacity SAS 12 Gb hot swap
SSDs for SAP HANA storage. The operating system is SLES 12 SP3 and uses SAP HANA 2.0 SPS 03 with a 6 TB dataset. Start time: 4 minutes.
6
Refer to SAP Note 2618154—SAP HANA Persistent Memory—Release Information (https://launchpad.support.sap.com/#/notes/2618154, requires an SAP support account) for the latest information on
supported versions.
Software and workloads used in performance tests may have been optimized for performance only on Intel microprocessors. Performance tests, such as SYSmark and MobileMark, are measured using
specific computer systems, components, software, operations and functions. Any change to any of those factors may cause the results to vary. You should consult other information and performance tests
to assist you in fully evaluating your contemplated purchases, including the performance of that product when combined with other products. For more complete information visit intel.com/benchmarks.
Performance results are based on testing as of dates shown in configurations and may not reflect all publicly available updates. See backup for configuration details. No product or component can be
absolutely secure.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its affiliated companies shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or
an SAP affiliate company) in Germany and other countries. Please see http://www.sap.com/trademark for additional trademark information and notices.
© Intel Corporation. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be
claimed as the property of others.