4quadrant Hp-Ux Memory Issue
By: Kevin • Case Study • 4,894 Words • May 6, 2010 • 1,957 Views
4quadrant Hp-Ux Memory Issue
Memory Windows in HP-UX 11.0. White Paper
page 1
Memory Windows
White Paper
1. Objectives
HP-UX release 11.0 is the first to support the new HP V-class machine. Targeted for high end OLTP, decision
support, server consolidation and ERP, the V-class can support up to 16 gigabytes of physical memory.
The current 32-bit virtual address space of HP-UX is limiting applications from taking full advantage of
systems with a large amount of physical memory.
Not all of HP’s software providers have ported their applications to 64-bits, nor is it necessary in all cases.
But HP-UX has limitations for shared resources on 32-bit applications. All applications in the system are
limited to a total of 1.75 gigabytes of global space(shared memory), 2.75 gigabytes if compiled, linked as
EXEC_MAGIC and chatr’d as SHMEM_MAGIC. In a system with 16 gigabytes of physical memory, only
1.75 can be used for shared resources such as shared memory.
To address this limitation a functional change has been made to the 11.00 release of HP-UX. The patch
allows 32-bit processes to create unique memory windows for shared objects like shared memory. There
are three types of executables in HP-UX. Their layout *WITHOUT* memory windows is the following:
The default HP-UX memory management is based on quadrants where each process has its own space.
The process text (executable code) is mapped to quadrant 1 and its private data is mapped to quadrant 2
in its individual space. Quadrant one and two exists n times (once for each process). All shared objects are
mapped to quadrant 3 and 4 (and quad 2 for SHMEM_MAGIC) of one single space shared by all processes.
This is where the system wide limit of 1.75 Gb’s comes from. Each quadrant is 1gigabyte in size.
Program Text
1 Gigabyte
(quadrant 1)
Program Data
1 Gigabyte
(quadrant 2)
Global Space
1 Gigabyte
(quadrant 3)
Global Space
.75 Gigabyte
(quadrant 4)
Program Text & Data
1 Gigabyte
(quadrant 1)
Program Data
1 Gigabyte
(quadrant 2)
Global Space
1 Gigabyte
(quadrant 3)
Global Space
.75 Gigabyte
(quadrant 4)
Program Text & Data
1 Gigabyte
(quadrant 1)
Global Space
1 Gigabyte
(quadrant 2)
Global Space
1 Gigabyte
(quadrant 3)
Global Space
.75 Gigabyte
(quadrant 4)
SHARE_MAGIC
(default)
EXEC_MAGIC SHMEM_MAGIC
Memory Windows in HP-UX 11.0 White Paper
page 2
The 4th quadrant is only .75 gigabytes in size because the last 1/4 of the quadrant is reserved for architected
I/O space.
By default all executables are SHARE_MAGIC, the default mode. EXEC_MAGIC and SHMEM_MAGIC
require