intel / ipmctl

BSD 3-Clause "New" or "Revised" License
184 stars 62 forks source link

yes(1) causes `ipmctl create -gaol` to fail #179

Closed janekmi closed 1 year ago

janekmi commented 3 years ago
yes | ipmctl create -goal PersistentMemoryType=AppDirectNotInterleaved

The output with fail:

The following configuration will be applied:
 SocketID | DimmID | MemorySize | AppDirect1Size | AppDirect2Size 
==================================================================
 0x0000   | 0x0011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB

The amount of mapped memory was limited based on the SKU resulting in un-mapped capacity.
Do you want to continue? [y/n] Error: Invalid data input.

The WA may be to use echo 'y' instead:

echo 'y' | ipmctl create -goal PersistentMemoryType=AppDirectNotInterleaved
The following configuration will be applied:
 SocketID | DimmID | MemorySize | AppDirect1Size | AppDirect2Size 
==================================================================
 0x0000   | 0x0011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB

The amount of mapped memory was limited based on the SKU resulting in un-mapped capacity.
Do you want to continue? [y/n] Created following region configuration goal
 SocketID | DimmID | MemorySize | AppDirect1Size | AppDirect2Size 
==================================================================
 0x0000   | 0x0011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0000   | 0x0101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1011 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1021 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1001 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1111 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1121 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
 0x0001   | 0x1101 | 0.000 GiB  | 138.000 GiB    | 0.000 GiB
A reboot is required to process new memory allocation goals.
StevenPontsler commented 3 years ago

We will take a look into it.

StevenPontsler commented 3 years ago

You could also you the -f option so it would skip the confirmation

ipmctl create -f -goal PersistentMemoryType=AppDirectNotInterleaved

It can be picky about the order of options.