Skip to main content

8.16.4 Setting and Changing the Maximum Page Size of a Logical Domain


8.16.4 Setting and Changing the Maximum Page Size of a Logical Domain
The following methods are available for setting the maximum page size of a logical domain.
Setting the fj_dr_sw_limit_pagesize property of the ldmd service
You can set the fj_dr_sw_limit_pagesize property value to "true" or "false".
  1. fj_dr_sw_limit_pagesize=false [default]
    The maximum page size of a logical domain is automatically set based on the size of memory allocated to the logical domain and the maximum page size supported in the system.
    You can set the maximum page size (fj-software-limit-pagesize) with the ldm add-domain or ldm set-domain command.
  1. fj_dr_sw_limit_pagesize=true
    The maximum page size is set to 256 MB for newly created logical domains.
    Even when set to "true," this property does not change the current maximum page size of the control domain and existing logical domains.
The procedure to set the fj_dr_sw_limit_pagesize property for the ldmd service is described below.
  1. Log in to the control domain.
  1. Switch to administrator privileges.
    For details, see the Securing Users and Processes in Oracle Solaris.
  1. Display the fj_dr_sw_limit_pagesize property value.
primary# svccfg -s ldmd listprop ldmd/fj_dr_sw_limit_pagesize
  1. Stop the ldmd service.
primary# svcadm disable ldmd
  1. Change the fj_dr_sw_limit_pagesize property value.
primary# svccfg -s ldmd setprop ldmd/fj_dr_sw_limit_pagesize=value
  1. Refresh and restart the ldmd service.
primary# svcadm refresh ldmd
primary# svcadm enable ldmd
  1. In the following example, the fj_dr_sw_limit_pagesize property value is checked and then changed from "false" to "true."
primary# svccfg -s ldmd listprop ldmd/fj_dr_sw_limit_pagesize
ldmd/fj_dr_sw_limit_pagesize boolean false
primary# svcadm disable ldmd
primary# svccfg -s ldmd setprop ldmd/fj_dr_sw_limit_pagesize=true
primary# svcadm refresh ldmd
primary# svcadm enable ldmd
  1. In the following example, the fj_dr_sw_limit_pagesize property value is confirmed as "true."
primary# svccfg -s ldmd listprop ldmd/fj_dr_sw_limit_pagesize
ldmd/fj_dr_sw_limit_pagesize boolean true
Setting and Changing fj-software-limit-pagesize With the ldm add-domain/ldm set-domain Command
  1. To set fj-software-limit-pagesize with the ldm add-domain command
    The maximum page size of a logical domain can be set with the ldm add-domain command.
    If the fj_dr_sw_limit_pagesize property is set to "true," the maximum page size is set to 256 MB, and it cannot be changed.
    For details on the ldm commands, see the Oracle VM Server for SPARC 3.5 Reference Manual.
    The following example sets 256 MB as the maximum page size of domainA, a newly created logical domain.
primary# ldm add-domain fj-software-limit-pagesize=256MB domainA
  1. To set and change fj-software-limit-pagesize with the ldm set-domain command
    The maximum page size of a logical domain can be set and changed with the ldm set-domain command. The maximum page size cfan be set and changed only when the logical domain is in the delayed reconfiguration or inactive state.
    However, if the fj_dr_sw_limit_pagesize property is set to "true," the maximum page size is set to 256 MB, and it cannot be changed.
    For details on the ldm commands, see the Oracle VM Server for SPARC 3.5 Reference Manual.
    The following example sets 256 MB for the maximum page size of the control domain.
primary# ldm start-reconf primary
primary# ldm set-domain fj-software-limit-pagesize=256MB primary
primary# shutdown -y -i6 -g0
  1. The following example sets 2 GB for the maximum page size of domainB, a logical domain.
primary# ldm stop-domain domainB
primary# ldm unbind-domain domainB
primary# ldm set-domain fj-software-limit-pagesize=2GB domainB
primary# ldm bind-domain domainB
primary# ldm start-domain domainB