Solaris Tunable Parameters Reference Manual

lgrp_mem_default_policy

Description

This variable reflects the default memory allocation policy used by the Solaris OS. This variable is an integer, and its value should correspond to one of the policies listed in the sys/lgrp.h file.

Data Type

Integer

Default

1, LGRP_MEM_POLICY_NEXT indicating that memory allocation defaults to the home lgroup of the thread performing the memory allocation.

Range

Possible values are:

Value 

Description 

Comment 

LGRP_MEM_POLICY_DEFAULT

use system default policy  

LGRP_MEM_POLICY_NEXT

next to allocating thread's home lgroup 

LGRP_MEM_POLICY_RANDOM_PROC

randomly across process 

LGRP_MEM_POLICY_RANDOM_PSET

randomly across processor set 

LGRP_MEM_POLICY_RANDOM

randomly across all lgroups 

LGRP_MEM_POLICY_ROUNDROBIN

round robin across all lgroups 

LGRP_MEM_POLICY_NEXT_CPU

near next CPU to touch memory 

Dynamic?

No

Validation

None

When to Change

For applications that are sensitive to memory latencies due to allocations that occur from remote versus local memory on systems that use NUMA.

Commitment Level

Uncommitted