Re: [zones-discuss] [smf-discuss] Possible solution to automated installation of single user patches

2008-09-02 Thread Nicolas Williams
On Mon, Sep 01, 2008 at 07:13:56PM +0200, Renaud Manus wrote:
 Sure :-)
 
 Both Sun Cluster and AVS introduce new services. Some of them
 (eg. global-devices  system/nws_scm) are dependent on
 milestone/single-user and add filesystem/local as their dependent.
 
 If we were to move filesystem/local into ms/single-user,
 it would create a dependency loop between those services and
 SMF doesn't allow it.
 
 eg.
 
 fs/local - ms/single-user - system/nws_scm - fs/local

Perhaps we need to split fs/local?
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] Zones CPU resource management

2008-09-02 Thread Vincent Boisard
hello,

I am currently setting up a home server. It will be my main storage server,
but I will also be consolidating other applications on it (voip server,
video streaming, app server, ...)
I plan to use a Quad-core processor (namely the Q6600) with 8GB of RAM.

I have been reading all the docs I can find about resource management but
there are still some areas unclear to me:

- Can capped-cpu and cpu-share be used at the same time: It there is no
contention Z1 use only 3 cpu and Z2 3 cpus max, but if there is contention
have 75/25% sharing?

- What is ZFS cpu usage ? (How much cpu should I reserve for the global zone
?)

More specifically, my setup would be something like:

Global zone:ZFS storage, NFS and Samba servers
VOIP Zone: SIP PBX : should always have enough processing
power to handle a few calls (home setup)
download zone:handles all downloads (torrent /http). Low
priority.
Video streaming zone : use VLC to stream videos on the network (maybe later
some VOD).
Video encoding zone :  should use all available cpus but low priority
Database Zone:   MySQl and/or Postgresql
App Server Zone:SAMP stack and/or Glassfish

I do not expect high load on these zones (this is not a business production
server, mainly a development environment and home application with few
concurrent calls).

I am a bit at a loss on how to implement this.
Is FSS and cpu-shares enough ?
Should I use resource pools ? dynamic resource pools ?

Thanks for your help,

Vincent
___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Zones CPU resource management

2008-09-02 Thread Jeff Victor
Hello Vincent,

From your message, it appears that you do not need to use capped-cpu.
However, if you find that you have a need to use both, it will work,
although there is potential to confuse Solaris and/or yourself. For
example, what happens if you set cpu-shares so that a zone must get at
least 25% of 4 cores, but capped-cpu=0.5?  Further, setting a CPU cap
can prevent a zone from using CPU cycles that are otherwise unused.
Why waste your expensive CPU?

You do want to ensure that each zone gets enough processing cycles to
accomplish its tasks. This can be achieved with cpu-shares.  You might
start by setting cpu-shares to 100 for the global zone, and 10 for
each of the non-global zones. If you find that the system is
frequently experiencing CPU contention, and one zone isn't getting
enough CPU time, just increase that zone's share quantity.

You might want to give the VOIP zone 50 shares instead of 10 because
of the sensitivity to computational latency. Is the VOIP software
multi-threaded? If not, then it will never use more than 25-30% of the
CPU power of the system in any situation.

It is important that the global zone gets all it needs. Otherwise you
may interfere with proper operation of key infrastructure components
like the paging daemon.


Also, docs.sun.com says:
The capped-cpu resource and the dedicated-cpu resource are
incompatible. The cpu-shares rctl and the dedicated-cpu resource are
incompatible.


On Tue, Sep 2, 2008 at 1:38 PM, Vincent Boisard [EMAIL PROTECTED] wrote:
 hello,

 I am currently setting up a home server. It will be my main storage server,
 but I will also be consolidating other applications on it (voip server,
 video streaming, app server, ...)
 I plan to use a Quad-core processor (namely the Q6600) with 8GB of RAM.

 I have been reading all the docs I can find about resource management but
 there are still some areas unclear to me:

 - Can capped-cpu and cpu-share be used at the same time: It there is no
 contention Z1 use only 3 cpu and Z2 3 cpus max, but if there is contention
 have 75/25% sharing?

 - What is ZFS cpu usage ? (How much cpu should I reserve for the global zone
 ?)

 More specifically, my setup would be something like:

 Global zone:ZFS storage, NFS and Samba servers
 VOIP Zone: SIP PBX : should always have enough processing
 power to handle a few calls (home setup)
 download zone:handles all downloads (torrent /http). Low
 priority.
 Video streaming zone : use VLC to stream videos on the network (maybe later
 some VOD).
 Video encoding zone :  should use all available cpus but low priority
 Database Zone:   MySQl and/or Postgresql
 App Server Zone:SAMP stack and/or Glassfish

 I do not expect high load on these zones (this is not a business production
 server, mainly a development environment and home application with few
 concurrent calls).

 I am a bit at a loss on how to implement this.
 Is FSS and cpu-shares enough ?
 Should I use resource pools ? dynamic resource pools ?

 Thanks for your help,

 Vincent

 ___
 zones-discuss mailing list
 zones-discuss@opensolaris.org




-- 
--JeffV
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] [smf-discuss] Possible solution to automated installation of single user patches

2008-09-02 Thread Jordan Brown
Narendra Kumar S.S wrote:
   Is there any particular reason, why you are not proposing to move 
 filesystem/local to single-user milestone.

That was option #1 in my list.  However, there were those who objected 
to changing the definition of single-user mode in this way.  In 
addition, there are these late-breaking issues with Sun Cluster et al.

   That looks very simple fix

Yes.

 and will solve all the problems.

No.  It would address the particular breakage that we're seeing today, 
but would not address the systemic problem that there is no agreement on 
when and how these services should be run.

Re-read the proposal.  It describes the issues and constraints.  I 
believe that today (even without this most recent patchadd issue) there 
are a number of cases where we are avoid problems only because we've 
been lucky, and because we've worked around the problems in a few cases.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Zones CPU resource management

2008-09-02 Thread Vincent Boisard
Thanks for your help,

Comments below ...

On 9/2/08, Jeff Victor [EMAIL PROTECTED] wrote:

 Hello Vincent,

 From your message, it appears that you do not need to use capped-cpu.
 However, if you find that you have a need to use both, it will work,
 although there is potential to confuse Solaris and/or yourself. For
 example, what happens if you set cpu-shares so that a zone must get at
 least 25% of 4 cores, but capped-cpu=0.5?  Further, setting a CPU cap
 can prevent a zone from using CPU cycles that are otherwise unused.
 Why waste your expensive CPU?

 You do want to ensure that each zone gets enough processing cycles to
 accomplish its tasks. This can be achieved with cpu-shares.  You might
 start by setting cpu-shares to 100 for the global zone, and 10 for
 each of the non-global zones. If you find that the system is
 frequently experiencing CPU contention, and one zone isn't getting
 enough CPU time, just increase that zone's share quantity.

 You might want to give the VOIP zone 50 shares instead of 10 because
 of the sensitivity to computational latency. Is the VOIP software
 multi-threaded? If not, then it will never use more than 25-30% of the
 CPU power of the system in any situation.


How long does the system take to adjust when there is a contention? Is it
noticeable ?
However, I will follow your advice and experiment ...

It is important that the global zone gets all it needs. Otherwise you
 may interfere with proper operation of key infrastructure components
 like the paging daemon.


I have noticed that prctl show 2 types for the cpu-shares: privileged (the
one we set) and system (always max value ie 65K). What's the difference ?

Also, docs.sun.com says:
 The capped-cpu resource and the dedicated-cpu resource are
 incompatible. The cpu-shares rctl and the dedicated-cpu resource are
 incompatible.



thanks again for your help,

Vincent


On Tue, Sep 2, 2008 at 1:38 PM, Vincent Boisard [EMAIL PROTECTED] wrote:
  hello,
 
  I am currently setting up a home server. It will be my main storage
 server,
  but I will also be consolidating other applications on it (voip server,
  video streaming, app server, ...)
  I plan to use a Quad-core processor (namely the Q6600) with 8GB of RAM.
 
  I have been reading all the docs I can find about resource management but
  there are still some areas unclear to me:
 
  - Can capped-cpu and cpu-share be used at the same time: It there is no
  contention Z1 use only 3 cpu and Z2 3 cpus max, but if there is
 contention
  have 75/25% sharing?
 
  - What is ZFS cpu usage ? (How much cpu should I reserve for the global
 zone
  ?)
 
  More specifically, my setup would be something like:
 
  Global zone:ZFS storage, NFS and Samba servers
  VOIP Zone: SIP PBX : should always have enough processing
  power to handle a few calls (home setup)
  download zone:handles all downloads (torrent /http). Low
  priority.
  Video streaming zone : use VLC to stream videos on the network (maybe
 later
  some VOD).
  Video encoding zone :  should use all available cpus but low priority
  Database Zone:   MySQl and/or Postgresql
  App Server Zone:SAMP stack and/or Glassfish
 
  I do not expect high load on these zones (this is not a business
 production
  server, mainly a development environment and home application with few
  concurrent calls).
 
  I am a bit at a loss on how to implement this.
  Is FSS and cpu-shares enough ?
  Should I use resource pools ? dynamic resource pools ?
 
  Thanks for your help,
 
  Vincent
 

  ___
  zones-discuss mailing list
  zones-discuss@opensolaris.org
 




 --
 --JeffV

___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Zones CPU resource management

2008-09-02 Thread Jeff Victor
See http://tinyurl.com/5jwe3l , but here's the brief version:

  Basic, which can be modified by the owner of the calling process
  Privileged, which can be modified only by privileged (superuser) callers
  System, which is fixed for the duration of the operating system instance


On Tue, Sep 2, 2008 at 8:01 PM, Vincent Boisard [EMAIL PROTECTED] wrote:
 Thanks for your help,

 Comments below ...

 On 9/2/08, Jeff Victor [EMAIL PROTECTED] wrote:

 Hello Vincent,

 From your message, it appears that you do not need to use capped-cpu.
 However, if you find that you have a need to use both, it will work,
 although there is potential to confuse Solaris and/or yourself. For
 example, what happens if you set cpu-shares so that a zone must get at
 least 25% of 4 cores, but capped-cpu=0.5?  Further, setting a CPU cap
 can prevent a zone from using CPU cycles that are otherwise unused.
 Why waste your expensive CPU?

 You do want to ensure that each zone gets enough processing cycles to
 accomplish its tasks. This can be achieved with cpu-shares.  You might
 start by setting cpu-shares to 100 for the global zone, and 10 for
 each of the non-global zones. If you find that the system is
 frequently experiencing CPU contention, and one zone isn't getting
 enough CPU time, just increase that zone's share quantity.

 You might want to give the VOIP zone 50 shares instead of 10 because
 of the sensitivity to computational latency. Is the VOIP software
 multi-threaded? If not, then it will never use more than 25-30% of the
 CPU power of the system in any situation.

 How long does the system take to adjust when there is a contention? Is it
 noticeable ?
 However, I will follow your advice and experiment ...

 It is important that the global zone gets all it needs. Otherwise you
 may interfere with proper operation of key infrastructure components
 like the paging daemon.

 I have noticed that prctl show 2 types for the cpu-shares: privileged (the
 one we set) and system (always max value ie 65K). What's the difference ?

 Also, docs.sun.com says:
 The capped-cpu resource and the dedicated-cpu resource are
 incompatible. The cpu-shares rctl and the dedicated-cpu resource are
 incompatible.

 thanks again for your help,

 Vincent


 On Tue, Sep 2, 2008 at 1:38 PM, Vincent Boisard [EMAIL PROTECTED]
 wrote:
  hello,
 
  I am currently setting up a home server. It will be my main storage
  server,
  but I will also be consolidating other applications on it (voip server,
  video streaming, app server, ...)
  I plan to use a Quad-core processor (namely the Q6600) with 8GB of RAM.
 
  I have been reading all the docs I can find about resource management
  but
  there are still some areas unclear to me:
 
  - Can capped-cpu and cpu-share be used at the same time: It there is no
  contention Z1 use only 3 cpu and Z2 3 cpus max, but if there is
  contention
  have 75/25% sharing?
 
  - What is ZFS cpu usage ? (How much cpu should I reserve for the global
  zone
  ?)
 
  More specifically, my setup would be something like:
 
  Global zone:ZFS storage, NFS and Samba servers
  VOIP Zone: SIP PBX : should always have enough
  processing
  power to handle a few calls (home setup)
  download zone:handles all downloads (torrent /http). Low
  priority.
  Video streaming zone : use VLC to stream videos on the network (maybe
  later
  some VOD).
  Video encoding zone :  should use all available cpus but low priority
  Database Zone:   MySQl and/or Postgresql
  App Server Zone:SAMP stack and/or Glassfish
 
  I do not expect high load on these zones (this is not a business
  production
  server, mainly a development environment and home application with few
  concurrent calls).
 
  I am a bit at a loss on how to implement this.
  Is FSS and cpu-shares enough ?
  Should I use resource pools ? dynamic resource pools ?
 

-- 
--JeffV
___
zones-discuss mailing list
zones-discuss@opensolaris.org