Chapter 3 Environment Variables that Create Logical Partitions. Compaq AlphaServer GS140


Add to my manuals
74 Pages

advertisement

Chapter 3  Environment Variables that Create Logical Partitions. Compaq AlphaServer GS140 | Manualzz

Chapter 3

Environment Variables that Create

Logical Partitions

You define what resources are allocated to each partition by creating or setting environment variables. Before showing the sequence of these commands (see

Chapter 4), you should understand in detail the significance of these environment variables and their settings, as described in this chapter. Sections include:

Environment Variables Used

Detailed Directions for lp_cpu_mask

Detailed Instructions for lp_io_mask

Environment Variables that Create Logical Partitions 3-1

3.1

Environment Variables Used

Four environment variables and the lpinit command define partitions.

Figure 3–1 Environment Variables and lpinit Command

P0

Environment Variables define:

1. Number of partitions: lp_count (0, 2, or 3)

2. CPU modules in each partition: lp_cpu_mask* (bit mask)

P1 P0

P1

3. I/O modules in each partition: lp_io_mask* (bit mask)

P0 P1

4. Memory mode: lp_mem_mode isolate P0 P1 lpinit command

initializes partitions defined

3-2 Getting Started with Logical Partitions

P00>>> lpinit

BX-0100G-99

You define values for one environment variable to define the number of logical partitions on your system, one to set the memory mode, and two for each partition that define the CPU and I/O modules in each partition. The lpinit command (described in context in Chapter 4) initializes the logical partitions defined. Figure 3–1 and Table 3–1 give an overview of the environment variables and what they do. Environment variable settings for the CPU and I/O masks are discussed in detail in following sections of this chapter. (Memory allocation is discussed in detail in Section 2.4.)

Table 3–1 Environment Variables for Logical Partitions

Environment

Variable

lp_count n

lp_cpu_mask* x lp_io_mask* x

lp_mem_mode x

Definition

The number of logical partitions you wish to create on the system. At the start of creating logical partitions, you set this value to 0. Later, as described in Chapter 4, you define the number of logical partitions desired. 0 indicates the traditional symmetric multiprocessing system. Possible values are 0 (partitions disabled), 2 (for two partitions), or 3

(for three partitions).

For the *, you supply the number of the partition, which may be 0, 1, or 2. The value x gives a binary mask indicating which CPUs you want included as part of the instance. Although the mask selects individual CPUs, assignments must align with module boundaries. See

Section 3.2 for detailed examples.

For the *, you supply the number of the partition, which may be 0, 1, or 2. The value x gives a binary mask indicating the slot number of the I/O module or modules to be reserved for the use of a particular instance. Detailed examples are given in Section 3.3.

The value of x must be isolate.

Environment Variables that Create Logical Partitions 3-3

3.2

Detailed Directions for lp_cpu_mask

The lp_cpu_mask environment variable is set to a value that creates a binary mask in which a bit set to 1 indicates that an individual CPU belongs to a partition. Recall that there are two CPUs per module, and that partitions must contain whole modules.

Figure 3–2 Construction of Three-Partition CPU Bit Mask

Partition 0

Slot No.

CPU No.

Bits set

...

6 5 4 3 2 1 0

13 12 11 10 9 8 7 6 5 4 3 2 1 0

0 0 0 0 1 1 = hex value 3

Slot No.

CPU No.

Bits set

...

6 5

Partition 1

4 3 2 1 0

13 12 11 10 9 8 7 6 5 4 3 2 1 0

1 1 0 0 0 0

Slot No.

CPU No.

Bits set

...

6 5

Partition 2

4 3 2 1 0

13 12 11 10 9 8 7 6 5 4 3 2 1 0

0 0 1 1 0 0

= hex value 30

= hex value C

BX-0100B-99

3-4 Getting Started with Logical Partitions

Note that you must assign CPUs to a partition on module boundaries. CPU modules can be assigned to partitions in any order.

Three-Partition System

For a three-partition system, three CPU modules is the maximum allowed

(since there must also be three memories and three I/O modules, and the total number of slots is 9.) In this case, assigning CPUs to partitions is fairly straightforward. Again, the CPUs in slot 0 must be assigned to partition 0. The

CPUs in slots 1 and 2 can be assigned as desired. Figure 3–2 shows the construction of a bit mask for three partitions, with the CPUs in slot 0 assigned to partition 0, the CPUs in slot 2 assigned to partition 1, and the CPUs in slot 1 assigned to partition 2. You would use the console commands:

P00>>> create –nv lp_cpu_mask0 3

P00>>> create –nv lp_cpu_mask2 30

P00>>> create –nv lp_cpu_mask1 C

NOTE: Once the desired environment variables have been created with

create –nv, you can set them to different values with the set command.

Environment Variables that Create Logical Partitions 3-5

Figure 3–3 Construction of Two-Partition CPU Bit Masks

Partition 0: CPU Module in Slot 0

Slot No.

Bit No.

Bits set

6 5 4 3 2 1 0

...

13 12 11 10 9 8 7 6 5 4 3 2 1 0

0 0 0 0 0 0 1 1 = hex value 3

Slot No.

Bit No.

Bits set

...

Partition 1: CPU Modules in Slots 1, 2, and 3

6 5 4 3 2 1 0

13 12 11 10 9 8 7 6 5 4 3 2 1 0

1 1 1 1 1 1 0 0 = hex value FC

Partition 0: CPU Modules in Slots 0, 1, and 3

Slot No.

Bit No.

Bits set

6 5 4 3 2 1 0

...

9 8 7 6 5 4 3 2 1 0

0 0 1 1 0 0 1 1 1 1 = hex value CF

Slot No.

Bit No.

Bits set

Partition 1: CPU Modules in Slots 2 and 4

6 5 4 3 2 1 0

...

9 8 7 6 5 4 3 2 1 0

1 1 0 0 1 1 0 0 0 0 = hex value 330

BX-0100C-99

3-6 Getting Started with Logical Partitions

Two-Partition System

A two-partition system has more possibilities for CPU allocation. From two to five slots may be occupied by CPU modules in TLSB slots 0 – 4. Again, the

CPUs in slot 0 must be assigned to partition 0. Other than that, there are no restrictions.

The top portion of Figure 3–3 shows 4 CPU modules in slots 0, 1, 2 , and 3, with the CPUs in slot 0 included in partition 0, and the CPUs in slots 1, 2 and 3 included in partition 1. The console commands used to create the appropriate masks are:

P00>>> create –nv lp_cpu_mask0 3

P00>>> create –nv lp_cpu_mask1 fc

The bottom portion of Figure 3–3 shows 5 CPU modules in slots 0, 1, 2, 3, and 4, with the CPUs in slots 0, 1, and 3 to be included in partition 0, and the CPUs in slots 2 and 4 to be included in partition 1. You would use the following console commands to create such an allocation:

P00>>> create –nv lp_cpu_mask0 cf

P00>>> create –nv lp_cpu_mask1 330

NOTE: Once the desired environment variables have been created with

create –nv, you can change their values with the set command.

Environment Variables that Create Logical Partitions 3-7

3.3

Detailed Instructions for lp_io_mask

The lp_io_mask environment variable is set to a hexadecimal mask in which the bit position of a 1 indicates the slot in which the I/O module resides.

Figure 3–4 Construction of Three-Partition I/O Bit Masks

Partition 0

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

1 0 0 0 0 0 0 0 0 = hex value 100

Partition 1

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

0 1 0 0 0 0 0 0 0

= hex value 80

Partition 2

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

0 0 1 0 0 0 0 0 0

= hex value 40

BX-0100D-99

A three-partition system requires three I/O modules (either one KFTIA plus two

KFTHA modules, or three KFTHA modules), one module for each partition.

Figure 3–4 shows the bit locations for assigning the I/O module in slot 8 to partition 0, the I/O module in slot 7 to partition 1, and the I/O module in slot 6 to partition 2. The console commands issued to create such partitioning are: create –nv lp_io_mask0 100 create –nv lp_io_mask1 80 create –nv lp_io_mask2 40

3-8 Getting Started with Logical Partitions

Two-partition-systems may have two or three I/O modules.

Figure 3–5 gives two examples of three-I/O-module, two-partition systems. The first shows partition 0 with one I/O module in slot 8, and partition 1 with two modules in slots 6 and 7. The console commands are: create –nv lp_io_mask0 100 create –nv lp_io_mask1 c0

The bottom of Figure 3–5 shows a two-partition system with the I/O modules in slots 8 and 6 assigned to partition 0, and the I/O module in slot 7 assigned to partition 1. The console commands used to create such partitioning are: create –nv lp_io_mask0 140 create –nv lp_io_mask1 80

Figure 3–5 Construction of Two-Partition I/O Bit Masks

Partition 0

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

1 0 0 0 0 0 0 0 0 = hex value 100

Partition 1

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

0 1 1 0 0 0 0 0 0

= hex value C0

Partition 0

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

1 0 1 0 0 0 0 0 0 = hex value 140

Partition 1

Slot No.

Bits set

...

8 7 6 5 4 3 2 1 0

0 1 0 0 0 0 0 0 0

= hex value 80

BX-0100E-99

Environment Variables that Create Logical Partitions 3-9

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals