1

How can I change memory allocation policy on Linux?

On Solaris it's done system-wide with lgrp_mem_default_policy (man page) and pmadvise (man page) is a per process equivalent that does not require root.

alanc
  • 1,500
  • 9
  • 12
Aleksandr Levchuk
  • 2,465
  • 3
  • 22
  • 41

1 Answers1

1

Linux uses different memory management subsystems than Solaris, of course, so not every tuneable has an equivalent. Looks like the numactl utility is the closest analogue for this particular setting. Look at man 8 numactl and man 2 set_mempolicy.

mattdm
  • 6,600
  • 1
  • 26
  • 48