[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-mdb-discuss
Subject:    Re: [mdb-discuss] Changing Memory Placement Policies through a C
From:       Alexander Kolbasov <alexander.kolbasov () oracle ! com>
Date:       2010-09-21 19:27:42
Message-ID: 201009211927.o8LJRgEP026150 () aldan ! sfbay ! sun ! com
[Download RAW message or body]

> > 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? 
> 
> Use the madvise(3C) interface:

There is also pmadvise(1) command that allows you to apply madvise to an 
already running program.


- Alex

_______________________________________________
mdb-discuss mailing list
mdb-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic