Daniel,
On Mon, Oct 16, 2006 at 05:00:44PM -0400, Daniel Synnott wrote:
> Just to clarify, I would be creating a project database and assigning my
> zones
> to a particular project with resource controls like the following
> partial list.
>
> project.max-shm-ids
> project.max-msg-ids
> project.max-sem-ids
> project.max-shm-memory
> process.max-sem-nsems
> process.max-sem-ops
> process.max-msg-qbytes
> project.max-device-locked-memory
> project.max-port-ids
> process.max-port-events
>
> Do I understand this correctly? Would I also be correct in assuming
> that this must be configured in the global zone?
Almost. While entire zones can be assigned to pools, they aren't
assigned to projects. The processes within a zone run in projects
which are defined by the zone. If this is confusing, think of pools
as being an abstraction representing a chunk of hardware (at this
point just CPUs), and projects as being an administrative abstraction
representing a collection of users. Just like a zone isn't assigned
to a particular user, a zone isn't assigned to a project.
So you can set these resource controls on any project in the system,
be it in a global zone or a non-global zone. This will let you
control how these resources are used by each project, but since a
zone defines its own projects, this won't give you absolute control
over how these resources are used by a zone.
If you want to have absolute control over a zone's use of these
resources, you should take a look at the recent builds of
OpenSolaris. There, you have the ability to set
zone.max-msg-ids
zone.max-sem-ids
zone.max-shm-ids
zone.max-shm-memory
zone.max-locked-memory
(among others) on a zone-by-zone basis. These limit the total
allocations a zone is allowed to make.
The Zones RM page at opensolaris.org:
http://www.opensolaris.org/os/project/rm/zones/
describes the process of doling out resources to zones in greater
detail. It's unfortunately a little out of date (the above resource
controls are listed as "Future Work"), but the same techniques listed
for setting the other zone resource controls should apply to these.
Dave
_______________________________________________
opensolaris-help mailing list
[email protected]