Looking at the source, there is no programmatic interface for modifying this value. In fact, the only interface seems to be /etc/system (which requires a reboot).

Furthermore, poking values directly using mdb bypasses the sanity checking done in lgrp_main_init() which is presumably there for a reason.

If you dig out the Solaris Tunable Parameters Reference Manual ( http://docs.sun.com/app/docs/doc/817-0404/6mg74vsg1?a=view ) it lists this tunable as "Dynamic? No". This is normally done because it has no effect when changed dynamically, or it is dangerous to do so.

I would advise sticking with /etc/system to modify this value (and the above document lists the acceptable values, at least for Solaris 10).

Regards,
Brian


Kishore Kumar Pusukuri wrote:
Hi,
I know how to change memory placement policies using mdb.
For example, the following is the usage to apply Round Robin policy instead of 
the default First-Touch policy:
$ pfexec mdb -kw
...
lgrp_mem_default_policy/W 5
.....

However, could you tell me how to do the same through a C program, please?
Thank you

--
Brian Ruthven
Solaris Network RPE (Sustaining)
Oracle UK

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to