Re: [zones-discuss] PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-10-26 Thread Steve Lawrence
Comments inline. I've snipped stuff not relevant to comments. > > 4. prstat(1m) output changes to report swap reserved. > > > > INTERFACE COMMITMENT BINDING > > prstat(1m) output Uncommitted Patch > > > > This case propos

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-10-31 Thread Steve Lawrence
On Tue, Oct 31, 2006 at 10:59:23AM -0800, Gary Winiger wrote: > > DETAIL: > > > > 1. "zone.max-swap" resource control. > > > > Limits swap consumed by user process address space mappings and > > tmpfs mounts within a zone. > > > zone.max-swap will be configurable on both the glo

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-10-31 Thread Steve Lawrence
On Tue, Oct 31, 2006 at 12:02:58PM -0800, Gary Winiger wrote: > > This is how we treat cpu-shares. project 0 in the global zone has "infinite" > > shares. > > > > This will not help root logins directly, but could by setting: > > > > usermod -K project=system root > > Or perhaps delive

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-10-31 Thread Steve Lawrence
> > > I'm looking for this case to define how to preserve the current > > > model of "unlimited" unless one asks for a limit model in the > > > global zone. I believe it is important from a system integrity and > > > maintenance perspective. Other's may have different opinions. > > > If

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-10-31 Thread Steve Lawrence
On Tue, Oct 31, 2006 at 03:28:31PM -0800, Dan Price wrote: > On Tue 31 Oct 2006 at 03:24PM, Steve Lawrence wrote: > > It seems reasonable to amend this case to say: > > > > 1. > > Any process with priv_sys_resource running in the global zone's > >

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-01 Thread Steve Lawrence
> >Would it be reasonable to propose special treatment of the global project 0 > >for all project and zone rctls? Once could argue that capping system > >daemons > >can only lead some sort of undesireable system failure. > > > >This would of course exempt all global zone system daemons from resou

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-01 Thread Steve Lawrence
On Wed, Nov 01, 2006 at 11:31:57AM +, Darren J Moffat wrote: > Steve Lawrence wrote: > >On Tue, Oct 31, 2006 at 12:02:58PM -0800, Gary Winiger wrote: > >>>This is how we treat cpu-shares. project 0 in the global zone has > >>>"infinite" > >&g

Re: [zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-02 Thread Steve Lawrence
I'm not sure it is within the domain of this case to to tell admins what they should and shouldn't use the global zone for. In any event, we are making it easy for admins to manage swap limits for zones via zonecfg. On Tue, Oct 31, 2006 at 05:58:24PM -0800, Michael Barto wrote: > After all thus j

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-02 Thread Steve Lawrence
dress the whole problem. -Steve On Tue, Oct 31, 2006 at 03:24:18PM -0800, Steve Lawrence wrote: > > > > I'm looking for this case to define how to preserve the current > > > > model of "unlimited" unless one asks for a limit model in the > >

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-03 Thread Steve Lawrence
On Fri, Nov 03, 2006 at 09:36:45AM +, Darren J Moffat wrote: > Steve Lawrence wrote: > >Given a lack of supportive feedback, I'm going to revoke the proposed > >amendment > >below. To mitigate a zone admin setting a problematic swap limit on the > >global >

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-06 Thread Steve Lawrence
On Mon, Nov 06, 2006 at 12:40:00PM +, Darren J Moffat wrote: > Steve Lawrence wrote: > >On Fri, Nov 03, 2006 at 09:36:45AM +, Darren J Moffat wrote: > >>Steve Lawrence wrote: > >>>Given a lack of supportive feedback, I'm going to revoke the proposed >

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-08 Thread Steve Lawrence
I am working on a new spec. I have an unanswered question from the discussion: > > The "SIZE" column will also be changed to "SWAP" for prstat > > options a, T, and J, for users, tasks, and projects. > > The reason for not changing this column in the default output would be > helpful. I

[zones-discuss] Re: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-09 Thread Steve Lawrence
On Tue, Oct 31, 2006 at 03:28:31PM -0800, Dan Price wrote: > On Tue 31 Oct 2006 at 03:24PM, Steve Lawrence wrote: > > It seems reasonable to amend this case to say: > > > > 1. > > Any process with priv_sys_resource running in the global zone's > >

[zones-discuss] Re: Restart: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-13 Thread Steve Lawrence
On Sat, Nov 11, 2006 at 09:02:48PM -0800, Gary Winiger wrote: > > First off, sorry for the stutter in the spec update mail. > > > The project team didn't supply a summary of the changes, so I'll be > > asking for one in a follow on. > I've addressed your comments way below. Here is my ch

[zones-discuss] Re: Restart: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-14 Thread Steve Lawrence
> >Good question. These are essentially "virtual system > >requirements". > > > > > > What is the behaviour of Solaris intended to be when someone > makes these changes (or attempts to make them) on a system > that has no swap space? All systems have reservable swap space. Systems with no swa

Re: [zones-discuss] Restart: PSARC/2006/598 Swap resource control; locked memory RM improvements

2006-11-14 Thread Steve Lawrence
> > proposes extensions to [2], which will make swap reservation and > > locked memory resource controls easy to configure on a zone via > > zonecfg(1m). > > I'm not sure if this is exactly the right place to bring this up, > but > there needs to be some clarity to the user community about the

Re: [zones-discuss] NFS exports from global zone holding local zone mount points open

2007-01-18 Thread Steve Lawrence
I'm guessing your zonecfg for myzone looks something like: fs: dir: /logdir special: /dev/dsk/c0t1d0s0 raw: /dev/rdsk/c0t1d0s0 type: ufs options: [] If you want to share the filesystem from the global zone, mount the device in the global zone, and in the no

Re: [zones-discuss] NFS exports from global zone holding local zone mount points open

2007-01-19 Thread Steve Lawrence
wrong place. Not good. -Steve > > - greg > > -Original Message- > From: Steve Lawrence [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 18, 2007 4:16 PM > To: Glenn Faden > Cc: Tillman, Gregory; zones-discuss@opensolaris.org > Subject: Re: [zones-discuss] NFS

Re: [zones-discuss] Dynamic Resource Pools (DRP) and RCM ?

2007-01-23 Thread Steve Lawrence
The short answer is no. When a processor is transfered from one pset to another, no RCM event is generated in the global zone, or in any non-global zones. RCM events are only generated when DR operations take place. The rcm_daemon only runs in the global zone, as part of the sysevent:default ser

Re: [zones-discuss] CPU Caps Code review

2007-01-23 Thread Steve Lawrence
Some comments, mostly to myself :) usr/src/uts/common/sys/rctl.h No change from onnv. (fixed) usr/src/uts/common/os/rctl.c No change from onnv. (fixed) usr/src/uts/common/sys/project.h This is more of a comment for myself. I wonder if we should think about getti

Re: Fwd: [zones-discuss] Re: Tivoli Storage Manager (TSM) and zones

2007-01-24 Thread Steve Lawrence
On Wed, Jan 24, 2007 at 07:09:59PM -0600, Gael wrote: > On 1/24/07, stephen lawrence <[EMAIL PROTECTED]> wrote: > > >I can make some general suggestions on how to avoid duplicate backups, but > >I'm not very familiar with TSM, or your specific backup requirements. > > > >Does the TSM backup client

Re: [zones-discuss] Re: Fwd: Re: Tivoli Storage Manager (TSM) and zones

2007-01-25 Thread Steve Lawrence
On Thu, Jan 25, 2007 at 07:00:23AM -0800, mario heimel wrote: > TSM client is supported in non-global-zones (only zsf is not supported) > > we have in every zone a TSM client, which backuped the entire Zone (FS and > Oracle/SAP with rman ), so you can move zones without a reconfigure of TSM. > >

Re: [zones-discuss] Re: Strange phenomenon with zones

2007-01-30 Thread Steve Lawrence
Hey Ian, I've tried to reproduce your problem using solaris nevada build 55b (the developer release), with no luck. What version of solaris are you running (uname -rv, cat /etc/release). Can you ctrl-c your hung ps process? Is the zone running? What is the output of: # zoneadm list -p

Re: [zones-discuss] Re: Strange phenomenon with zones

2007-01-30 Thread Steve Lawrence
Typo below: On Tue, Jan 30, 2007 at 12:18:50PM -0800, Steve Lawrence wrote: > Hey Ian, > > I've tried to reproduce your problem using solaris nevada build 55b (the > developer release), with no luck. > > What version of solaris are you running (uname -rv, cat /etc/releas

Re: [zones-discuss] Capped memory observability

2007-02-06 Thread Steve Lawrence
On Mon, Feb 05, 2007 at 10:17:42PM -0600, Mike Gerdts wrote: > I just got a chance to start playing with the capped memory resource > controls in build 56. At first blush, this looks to be *very* good > stuff. My initial testing included some very basic single process > memory hog tests and multi

Re: [zones-discuss] zlogin and locales

2008-04-01 Thread Steve Lawrence
Looks like the environment contained in /etc/default/init is read and set by startd and init. Since zlogin'ed processes are not child of startd or init in the zone, they do not have these environment settings. Given brands, to fix this, we would need to add a hook that asks the zone: Please

Re: [zones-discuss] zlogin and locales

2008-04-02 Thread Steve Lawrence
On Wed, Apr 02, 2008 at 11:11:12AM -0400, Moore, Joe wrote: > Steve Lawrence wrote: > > Looks like the environment contained in /etc/default/init is > > read and set > > by startd and init. Since zlogin'ed processes are not child > > of startd or init > &g

Re: [zones-discuss] Dynamic dedicated-cpu

2008-04-16 Thread Steve Lawrence
zone reboot is required. -Steve L. On Tue, Apr 15, 2008 at 04:20:40PM +0100, Terry Smith wrote: > Hi > > When adding dedicated-cpus to a zone does the configuration take effect > immediately or is a zone reboot required? > > T > ___ > zones-discuss m

Re: [zones-discuss] Zone clone where cpio destroys the source zone

2008-05-08 Thread Steve Lawrence
Can you provide the "zonecfg -z info" for the clone and source zone, as well as the output of "mount" before the clone operation is started? Thanks, -Steve L. On Thu, May 08, 2008 at 11:55:24AM -0600, Geoff Shipman wrote: > Hello All, > > I have a Sparc 11/06 Solaris 10 system with the 120011

Re: [zones-discuss] Zone clone where cpio destroys the source zone]

2008-05-08 Thread Steve Lawrence
> > If you need a truss I can run that with whatever options you would like. > > Geoff > > On Thu, 2008-05-08 at 13:52, Steve Lawrence wrote: > > Can you provide the "zonecfg -z info" for the clone and > > source zone, as well as the output of

Re: [zones-discuss] How to migrate a seperate running server into a zone?

2008-05-14 Thread Steve Lawrence
We currently don't have p2v support for native zones. Future work for this is under consideration, but no timeframe established (yet). I could think of ways to "make it work" in the short term, but nothing that we could support. It could also result in furthur issues later when patching/upgradin

Re: [zones-discuss] How to migrate a seperate running server into a zone?

2008-05-15 Thread Steve Lawrence
vers and copying disks.It seems the only >stable way of solving this issue. > >Regards, >Mehmet > >On Thu, May 15, 2008 at 6:02 AM, Steve Lawrence ><[EMAIL PROTECTED]> wrote: > > We currently don't have p2v support for native zones.

Re: [zones-discuss] Can zone id be same on different global zones?

2008-05-15 Thread Steve Lawrence
When you use "zoneadm -z attach" to attach your zone copies to the new hosts, they will automatically be assigned new unique ids. You should not manipulate /etc/zones/index. After halting your zone, you should detach it from the host before archiving it. tar is usually not the best archiving to

Re: [zones-discuss] Can zone id be same on different global zones?

2008-05-16 Thread Steve Lawrence
/usr/bin/tar on solaris 10. My comment was incorrect. I was referring to the preservation of hard links. I need to investigate the status of this in the various verions of tar. Thanks, -Steve L. On Fri, May 16, 2008 at 10:59:10AM +0200, Joerg Schilling wrote: > Steve Lawrence <

Re: [zones-discuss] physical= not obeyed when ip-type=shared and physical dev part of IPMP group in global zone

2008-05-20 Thread Steve Lawrence
This appears to be the affect of selecting an interface that is a member of an ipmp group in the global zone. It is documented here: http://docs.sun.com/app/docs/doc/819-2450/z.admin.task-60?l=ko&a=view&q=multipathing The behavior you are seeing is not specifically documented, but it seems reaso

Re: [zones-discuss] physical= not obeyed when ip-type=shared and physical dev part of IPMP group in global zone

2008-05-21 Thread Steve Lawrence
In the global zone, do you have two ip addresses (one on vnet0, one on vnet1) or is vnet1 configured as standby? Steve L. On Wed, May 21, 2008 at 09:12:35AM +0100, Lewis Thompson wrote: > On Tue, 2008-05-20 at 13:56 -0700, Steve Lawrence wrote: > > It is documented here: >

Re: [zones-discuss] physical= not obeyed when ip-type=shared and physical dev part of IPMP group in global zone

2008-05-22 Thread Steve Lawrence
p 2. I don't know if this is possible. I don't know how ldoms map vnets to physical interfaces. -Steve L. On Thu, May 22, 2008 at 03:59:07PM +0100, Lewis Thompson wrote: > On Wed, 2008-05-21 at 12:56 -0700, Steve Lawrence wrote: > > In the global zone, do you have two ip addre

Re: [zones-discuss] code review: native brand refactoring

2008-05-23 Thread Steve Lawrence
It seems to me that the first comment in the NOTES section of fork(2) would only apply to vfork(). ?? -Steve On Fri, May 23, 2008 at 01:31:58PM +0200, Joerg Barfurth wrote: > Hi, > > I just stumbled over this: > > Edward Pilatowicz schrieb: > > - nit: in start_zoneadmd(), instead of: > >

Re: [zones-discuss] S10 branded zones

2008-05-27 Thread Steve Lawrence
Are you running sparc or x86? On x86, you can use Xen or Virtualbox today to run s10 guests. On sparc, you can use ldoms on sun4v. If you indeed need a zones-based solution, please elaborate on your requirements. -Thanks, -Steve L. On Sun, May 25, 2008 at 10:41:29AM +1000, Rodney Lindner - S

Re: [zones-discuss] code review: native brand refactoring

2008-05-27 Thread Steve Lawrence
Hey Jerry, Does this address this comment in 6621020: " This appears to point out at least one bug in zlogin, namely that it keeps stdout_pipe[1] and stderr_pipe[1] from noninteractive_login() open when returning to the parent. " Basically, I think the filer expected to see something like:

Re: [zones-discuss] Will Zones Memory Caps let you specify more than physically installed system memory?

2008-06-17 Thread Steve Lawrence
The total cap of all booted zones can exceed the available ram on the system. physical memory caps are not reservations. They do not guarantee any minimum about of physical memory to a zone. -Steve L. On Tue, Jun 17, 2008 at 08:07:26PM -0500, Jim Nissen wrote: > Hi all, > Got a question from a

Re: [zones-discuss] Memory Cap accounting for shared memory

2008-06-18 Thread Steve Lawrence
As of s10u4, (and nevada build 56?) rcapd (and prstat -ZJTta) account for shared memory (both sysV, anon, and text) between processes in the same zone, project, etc. -Steve L. On Wed, Jun 18, 2008 at 01:13:21PM -0500, Brian Smith wrote: > My reading of the documentation is that if I try to cap th

Re: [zones-discuss] Rcapd threshold vs ZFS cache

2008-06-18 Thread Steve Lawrence
ZFS cache memory is not considered free. rcapd uses the sysconf(_SC_AVPHYS_PAGES) interface to get the amount of free memory. One possibility could be to alter sysconf to report some about of the zfs cache as free. -Steve L. On Wed, Jun 18, 2008 at 01:18:07PM -0500, Brian Smith wrote: > When rca

Re: [zones-discuss] Making zoneadm more like the other adms...

2008-06-18 Thread Steve Lawrence
Hey Darren, Are you interested in drafting an arc fasttrack for these interface additions? Do you see zoneadm being used as: # zoneadm boot myzone -s That would be: - myzone is an operand to zoneadm that comes after the subcommand. This is not compliant with getopt or clip guide

Re: [zones-discuss] zone not booting due to zfs issue

2008-06-24 Thread Steve Lawrence
My first guess would be that the leading "//" is not being accepted. Can you try changing it to "/external/backup" -Steve L. On Tue, Jun 24, 2008 at 07:28:27PM +0200, Justin Vassallo wrote: >One of the fses in my zone had some problems and was not available when >the zone tried to boot.

Re: [zones-discuss] mongrel rails in a zone

2008-07-13 Thread Steve Lawrence
My guess is that your zones lack /var/ruby.* Did you install ruby+friends in the global zone using packages, from a tar file, or from source compilation? A package install from the global zone should install the package contents into all zones, properly handling /usr verses /var. If your means o

Re: [zones-discuss] mongrel rails in a zone

2008-07-13 Thread Steve Lawrence
On Sun, Jul 13, 2008 at 09:22:07PM +0100, Matt Harrison wrote: > Steve Lawrence wrote: > >My guess is that your zones lack /var/ruby.* > > Thanks for the reply, > > My zones in fact do have /var/ruby* and I can list and view the files > which it tells me don'

Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed

2008-08-08 Thread Steve Lawrence
You could try: s8 cpio patch:112097-08 s8 compress patch:108823-02 s8 flar patch:109318-39 (requires some other patches) You could be hitting 4384301, fixed in 109318-12, which was obsoleted by the flar patch above. -Steve L. On Fri, Aug 08, 2008 at 04:58:40PM -0400, A

Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed

2008-08-08 Thread Steve Lawrence
directory called archive, > > rather than placing it in a file of the > > same name as the section. > > bash-3.00# flar split -d /flash -f engr.flar > uncompress: stdin: corrupt input > ERROR: Unable to process archive file //engr.fl

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-19 Thread Steve Lawrence
Add a new service "do-single-user-patch", make it depend on filesystem-local. This service is typically disabled. This service will add the patch(es) and reboot. In rcS.d/Swhatever, do: if (we want to do-single-user-patchs) assert(we are currently booting to single-user m

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-19 Thread Steve Lawrence
So you want to be able to interrupt any boot to any milestone, and instead do the patch processing if a patch is pending. You basically want to interrupt the current milestone, and instead just boot to filesystem-local and do the patching. The question is, can the smf milestone be changed mid-mil

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-19 Thread Steve Lawrence
> 2. Create patch-install-milestone, which depends on patch-install-service >below. The patch-install-milestone could also depend on single-user and filesystem-local so that it is generally useful for admins manually installing patches as well, even if they don't have t

Re: [zones-discuss] how to configure port listening in a zone?

2008-08-19 Thread Steve Lawrence
By default, a zone does not have privilege to snoop: http://blogs.sun.com/JeffV/entry/snoop_zoney_zone Could just be a network config/routing issue. Can you ping 10.5.185.103? Can you access other network services, like ssh? -Steve L. On Tue, Aug 19, 2008 at 03:01:37PM -0700, Russ Petr

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-19 Thread Steve Lawrence
> >It should be ok to issue smf commands from an smf service, as long as they > >do not try to do any synchronous operations (-s). > > Seems a little convoluted, but might be workable. I can't see any straightforward way to interrupt boot without changing the milestone. You could make lots of se

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-19 Thread Steve Lawrence
> The only way that you can get *that* guarantee is by using the > milestone mechanism to limit the system to a particular milestone, as > you suggest. > > In fact, argh. This problem affects even your proposed scheme. By the > time that your patch-test-service is running, there could (in t

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-21 Thread Steve Lawrence
On Thu, Aug 21, 2008 at 12:54:14PM -0700, Jordan Brown wrote: > [ Which brain-dead mail client turns all of the spaces in the Subject > into tabs? ] > > Zones folks: the current proposed answers to this problem involve > moving system/filesystem/local into milestone/single-user. That was > ap

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-21 Thread Steve Lawrence
> The list of use cases is really pretty simple: > > 1) Administrator has in hand a patch that says "install in single user > mode". What does this administrator do? The answer seems self-evident: > take the system to single-user mode (either by booting the system in > single-user mode usi

Re: [zones-discuss] [smf-discuss] 6725004 - installing single-user-mode patches automatically

2008-08-21 Thread Steve Lawrence
On Thu, Aug 21, 2008 at 04:01:43PM -0700, Jordan Brown wrote: > Steve Lawrence wrote: > > A. Make patchadd verify that the system is in single user milestone when > > installing a single-user patch. > > That's a non-starter. *Many* of our customers ignore our re

Re: [zones-discuss] zones/SNAP design

2008-08-25 Thread Steve Lawrence
> During the zone installation and after the zone is installed, the zone's ZBE1 > dataset is explicitly mounted by the global zone onto the zone root (note, the > dataset is a ZFS legacy mount so zones infrastructure itself must manage the > mounting. It uses the dataset properties to determine wh

Re: [zones-discuss] Oracle/RMAN in a Zone

2008-09-22 Thread Steve Lawrence
I think you need this or later: http://www-01.ibm.com/support/docview.wss?rs=666&context=SSTFZR&uid=swg21254543&loc=en_US&cs=utf-8&lang=en Some ibm docs: http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=/com.ibm.itsmreadme.doc/readme_server541.html http://publib.b

Re: [zones-discuss] Confirming Zone running Container

2008-10-02 Thread Steve Lawrence
> The other way that the global zone identity normally leaks through to the > non-global zones is through the system's hostid. So if you compare the > output of `/usr/bin/hostid` with `for e in $allglobalzones ; do ssh $e > /usr/bin/hostid ; done`, you can easily see which global zone matches y

Re: [zones-discuss] Update on attach and upgrades

2008-11-06 Thread Steve Lawrence
On Thu, Nov 06, 2008 at 10:20:43AM -0500, Dr. Hung-Sheng Tsao (LaoTsao) wrote: > > anyone know when the brandz for s10 will be out? > e.g. running s10 with opensolaris zone? No target has been set for this. We cannot reasonably manage such a project until s10 begins taking less change. The curr

Re: [zones-discuss] zone create on sol10u6

2008-12-01 Thread Steve Lawrence
> Now the only caveat is that you must also apply this patch to the ABE, > prior to booting it, ie > apply LU patch 121430-30 to live system > run lucreate > run luupgrade ( if upgrading from pre u6 ) > apply 121430-30 to the new BE using luupgrade -t ( or patchadd -R ) > The last step MUST be don

Re: [zones-discuss] Capped-Memory - swap < physical? (was: Failing to NFS mount on non-global zone)

2009-02-20 Thread Steve Lawrence
Swap limits how much of the systems total memory (ram + disk) can be reserved. When this limit is hit, allocations, such as malloc, will fail. Physical memory limits resident memory. When this limit is hit, the zone will page pages in memory to disk swap. In general, your example config is only

Re: [zones-discuss] Capped-Memory - swap < physical? (was: Failing to NFS mount on non-global zone)

2009-02-23 Thread Steve Lawrence
> apped-memory: >physical: 4G >[swap: 6G] > > > Is that correct? > > I just reread the documentation about swap and from that it's not clear > to me that swap in the zone configuration is used that way > > regards > > Bernd > >

Re: [zones-discuss] Zone in a pset with high load generating high packet loss at the frame level

2009-03-05 Thread Steve Lawrence
On Thu, Mar 05, 2009 at 01:22:25PM -0500, Jeff Victor wrote: > Thanks for the great feedback Gael. Comments below. > > On Thu, Mar 5, 2009 at 11:00 AM, Gael wrote: > > > > On Wed, Mar 4, 2009 at 9:06 AM, Jeff Victor wrote: > >> > >> Some questions: > >> 1. Do you use "set pool=" anymore, now tha

Re: [zones-discuss] Zone in a pset with high load generating high packet loss at the frame level

2009-03-05 Thread Steve Lawrence
On Thu, Mar 05, 2009 at 04:12:19PM -0500, Jeff Victor wrote: > On Thu, Mar 5, 2009 at 1:48 PM, Steve Lawrence > wrote: > > On Thu, Mar 05, 2009 at 01:22:25PM -0500, Jeff Victor wrote: > >> On Thu, Mar 5, 2009 at 11:00 AM, Gael wrote: > >> > On Wed, Ma

Re: [zones-discuss] [osol-code] Zones memory usage from the Global Zone

2009-04-09 Thread Steve Lawrence
You can use "prstat -cZ 1 1" to get the resident memory in use by each zone. This command counts shared pages correctly. It uses a private interface. On Wed, Apr 08, 2009 at 03:52:01PM -0700, OpenSolaris Forums wrote: > Hello Bart, > > thanks for your suggestion... but I have another question >

Re: [zones-discuss] Zone Stuck in a shutting_down state

2009-05-06 Thread Steve Lawrence
zsched is always unkillable. It will only exit when instructed to by zoneadmd. Is the remaining zone "shutting down", or "down"? (zoneadm list -v). What is the ref_count on the zone? # mdb -k > ::walk zone | ::print zone_t zone_name zone_ref If the refcount is greater than 0x1, it could be:

Re: [zones-discuss] Zone Stuck in a shutting_down state

2009-05-06 Thread Steve Lawrence
n the kernel is holding the zone. You should be able to use "mdb -k" on the live system, and issue dcmds similar to the comments of 6272846. No need to force a crashdump or take a live crashdump. -Steve L. > > Derek > >On Wed, May 6, 2009 at 4:08 PM, Steve Lawrence &g

Re: [zones-discuss] Zone Stuck in a shutting_down state

2009-05-06 Thread Steve Lawrence
eve that I can see the comments since they are not public. > >Is that something you can pass along? > >On Wed, May 6, 2009 at 5:27 PM, Steve Lawrence ><[1]stephen.lawre...@sun.com> wrote: > > > * *I already tried killing the zoneadmd process and

Re: [zones-discuss] Probs with S8 Branded Zone on b114

2009-06-04 Thread Steve Lawrence
S8C and S9C do not run on sxce or opensolaris. They can be hosted on Solaris 10, using any filesystem which supports zones, including zfs. -Steve L. On Thu, Jun 04, 2009 at 12:06:10PM -0700, Rich Teer wrote: > Hi all, > > I'm trying to install a Solaris 8 branded zone on a 280R running > SXCE b

Re: [zones-discuss] Probs with S8 Branded Zone on b114

2009-06-04 Thread Steve Lawrence
On Thu, Jun 04, 2009 at 01:12:00PM -0700, Rich Teer wrote: > On Thu, 4 Jun 2009, Steve Lawrence wrote: > > Hi Steve, > > > S8C and S9C do not run on sxce or opensolaris. They can be hosted on > > Solaris 10, using any filesystem which supports zones, including zfs. &g

Re: [zones-discuss] Probs with S8 Branded Zone on b114

2009-06-05 Thread Steve Lawrence
On Fri, Jun 05, 2009 at 07:13:14AM -0700, Rich Teer wrote: > On Thu, 4 Jun 2009, Steve Lawrence wrote: > > > That's correct. You need only install the 1.0.1 SUNWs?brandk package for > > each, which enable the brand(s). > > Cool. So I don't need to install the

Re: [zones-discuss] Weird Solaris 8 container problem

2009-06-17 Thread Steve Lawrence
On Wed, Jun 17, 2009 at 02:56:59PM -0700, Rich Teer wrote: > Hi all, > > IHAC who is trying to run one of their applications in a Solaris 8 > branded zone. The global OS is Solaris 10 5/09 and we're using > Solaris 8 containers version 1.0.1, on a Sun Fire 280R server with > a 750 MHz CPU and 6 G

Re: [zones-discuss] Weird Solaris 8 container problem (fwd)

2009-06-23 Thread Steve Lawrence
s-discuss] Weird Solaris 8 container problem (fwd) > > > > Hi guys, > > > > Here's a response I got on the Zones mailing list about the weird > > Vantive crashes. Could you please reply to me with the answers to > > Steve's questions, and I'll forward

Re: [zones-discuss] Parallel mount question

2009-06-29 Thread Steve Lawrence
On Mon, Jun 29, 2009 at 08:00:28PM +0200, William Roche wrote: > Hello Vladi, > > Yes you can use LOFS to all your zones to share the file system providing > r/w access. I would even say that this is your BEST option. > > NFS mount in your local zones of a file system shared by the global zone is

Re: [zones-discuss] sysidcfg requires zlogin

2009-07-21 Thread Steve Lawrence
If you want to configure the ip addresss within the zone with sysidcfg/hostname.* files, then you need to use exclusive ip stack zones: zonecfg -z zweb$Z "set iptype=exclusive" -Steve L. On Wed, Jul 15, 2009 at 03:55:27PM -0700, Patrick J. McEvoy wrote: > > the only thing that comes to m

Re: [zones-discuss] Zone copy in Live Upgrade

2009-07-22 Thread Steve Lawrence
The issue is that from the global zone context (non-zlogin), stuff like symbolic links to something like /etc could copy files from the global zone. I'm not sure why this is dangerous in this case, as we are only reading from the zone, as cpio does not traverse/open sym links, it just copes the li

Re: [zones-discuss] Zone copy in Live Upgrade

2009-07-23 Thread Steve Lawrence
On Thu, Jul 23, 2009 at 09:14:55AM +0200, Martin Rehak wrote: > Hi Steve, > > On 2009.07.22 12:32:01 -0700, Steve Lawrence wrote: > > The issue is that from the global zone context (non-zlogin), stuff like > > symbolic links to something like /etc could copy files from the gl

Re: [zones-discuss] Zone copy in Live Upgrade

2009-07-29 Thread Steve Lawrence
On Wed, Jul 29, 2009 at 08:43:05AM +0200, Martin Rehak wrote: > Hi Steve, > > On 2009.07.23 14:34:22 -0700, Steve Lawrence wrote: > > On Thu, Jul 23, 2009 at 09:14:55AM +0200, Martin Rehak wrote: > > > Hi Steve, > > > > > > On 2009.07.22 12:32:01 -0700,

Re: [zones-discuss] review needed for scratch zone mount fix

2009-10-16 Thread Steve Lawrence
This looks ok to me. Sorry for all the conflicts! -Steve On Fri, Oct 16, 2009 at 05:12:06PM -0700, Edward Pilatowicz wrote: > hey all, > > so it seems that in opensolaris b120 i broke scratch zones with the > following fix: > > 9392 native zones should fail to install on opensolaris > >

Re: [zones-discuss] Difference between resource management attribbutes

2009-10-20 Thread Steve Lawrence
On Tue, Oct 20, 2009 at 10:20:14AM -0700, Ketan wrote: > Can anyone answer my questions > > 1. Whats the difference between project.max-locked-memory and max-rss. > And out these 2 which is the preferred way of limiting the physical memory in > a project or zone. max-rss limits both pageable

Re: [zones-discuss] Difference between resource management attribbutes

2009-10-21 Thread Steve Lawrence
There is a kstat. Look at the output of: $ kstat -c project_caps -n 'lockedmem*' -Steve L. On Wed, Oct 21, 2009 at 05:43:03AM -0700, Ketan wrote: > But there is one more thing if i set max-rss i can test it and see the task > under specified project does not exceeds the specified rss value but

Re: [zones-discuss] restrcit physical memory with zone.max-locked-memory

2009-10-28 Thread Steve Lawrence
It limits the amount of physical memory that can be pinned by a zone by mlock() or shmat(SHM_SHARE_MMU). These are typically done by databases or performance critical apps. locked memory cannot be paged out. -Steve L. On Wed, Oct 28, 2009 at 10:25:01AM -0700, Ketan wrote: > So for what purpose

Re: [zones-discuss] one line webrev...

2009-11-04 Thread Steve Lawrence
LGTM. -Steve On Wed, Nov 04, 2009 at 11:53:31AM -0800, Edward Pilatowicz wrote: > hey all, > > so with my recent zoneadm mount putback i broke the native brand on > nevada. i've got a webrev with the one line fix here: > > http://cr.opensolaris.org/~edp/onnv-zmount2 > 6898056 native zones no l

Re: [zones-discuss] s10 p2v

2009-11-25 Thread Steve Lawrence
This feature exists in nevada, (nevada global to nevada zone), and is currently being backported to s10u9. -Steve L. On Tue, Nov 24, 2009 at 07:41:03AM -0500, Dr. Hung-Sheng Tsao wrote: > hi > Is there p2v in s10 to move from physical host to zone env? > It seems that cpio of the apps directory

Re: [zones-discuss] /var/run/zones not cleaned up ?

2009-12-10 Thread Steve Lawrence
Feature. It is the F_WRLCK operation which takes the lock. I suppose this avoids having to deal with stale lock files from dead zoneadm's. Similar for the door. The door file is he who fattaches, not he who creates the door file. Saying that, I don't see a problem with the unlock/fdetach opera

Re: [zones-discuss] zoneadm hangs after repeated boot/halt use

2009-12-11 Thread Steve Lawrence
Looks a lot like 6894901. Can you try build 128? -Steve On Fri, Dec 11, 2009 at 03:48:52PM -0500, Glenn Brunette wrote: > > As part of some Immutable Service Container[1] demonstration that I am > creating for an event in January. I have the need to start/stop a zone > quite a few times (as par

Re: [zones-discuss] Application leaking on local zone

2009-12-17 Thread Steve Lawrence
I recommend using libumem on the application. Some folks were nice enough to write about it. http://blogs.sun.com/pnayak/entry/finding_memory_leaks_within_solaris http://blogs.sun.com/dlutz/entry/memory_leak_detection_with_libumem -Steve On Thu, Dec 17, 2009 at 12:09:11PM +0200, AdinaKa

Re: [zones-discuss] Application leaking on local zone

2009-12-17 Thread Steve Lawrence
isn't a memory leak and on local zone there is ?! > > Steve Lawrence wrote: > > I recommend using libumem on the application. > > Some folks were nice enough to write about it. > > [1]http://blogs.sun.com/pnayak/entry/finding_memory_leaks_within_solaris &

Re: [zones-discuss] Webrev for CR 6909222

2009-12-21 Thread Steve Lawrence
The bug mentions that this can also impact a nevada zone that was p2v'ed. Should you fix usr/src/lib/brand/native/zone as well? -Steve On Mon, Dec 21, 2009 at 03:46:00PM -0800, Jordan Vaughan wrote: > I need someone to review my fix for > > 6909222 reboot of system upgraded from 128 to build 129

Re: [zones-discuss] Webrev for CR 6782448

2009-12-21 Thread Steve Lawrence
Minor nit. You could use != POC_STRING, put the Z_NO_ENTRY in the {}, and put the success case after. Not a required change. LGTM. -Steve On Fri, Dec 18, 2009 at 07:28:52PM -0800, Jordan Vaughan wrote: > I expanded my webrev to include my fix for > > 6910339 zonecfg coredumps with badly formed

Re: [zones-discuss] zoneadm hangs after repeated boot/halt use

2009-12-23 Thread Steve Lawrence
Do you have the panic message or crash dump? -Steve L. On Wed, Dec 23, 2009 at 09:26:17AM -0500, Glenn Brunette wrote: > > Frank, > > Just verified that something is still wrong in b129, but the problem is > _not_ with a vanilla configuration. This time around boot/halt #102, > the system appar

Re: [zones-discuss] Solaris Zone API

2010-02-03 Thread Steve Lawrence
There are no programatic management api's at this time. You need to invoke the cli interfaces. -Steve L. On Wed, Feb 03, 2010 at 04:11:06AM -0800, Tan Loc Pham wrote: > Hi Solaris Gurus, > > we're looking to Solaris API ( perl modules ? ) like VMware API ( VmCom, > VmPerl). We would like to au

Re: [zones-discuss] Resource management from NGZ

2010-06-01 Thread Steve Lawrence
For both, use prctl: http://docs.sun.com/app/docs/doc/819-2239/prctl-1?a=view For physical memory cap, use rcapadm to set a new limit. A zone will see it's physical memory cap via prtconf. Ketan wrote: Is there any way if a normal user in a non global zone can check the resources assigned

Re: [zones-discuss] ZFS ARC cache issue

2010-06-03 Thread Steve Lawrence
Try zfs-discuss. Ketan wrote: We are having a server running zfs root with 64G RAM and the system has 3 zones running oracle fusion app and zfs cache is using 40G memory as per kstat zfs:0:arcstats:size. and system shows only 5G of memory is free rest is taken by kernel and 2 remaining zones

Re: [zones-discuss] failed to move zones in os2009.06 (attach failed)

2010-07-16 Thread Steve Lawrence
Did you try: # zoneadm attach -z bibcmi4 -d rpool/zones/bibcmi4/ROOT/zbe-2 -d is an ipkg specific option. -Steve L. Gerard Henry wrote: hello all, i need to move zones from serv1 to serv2. Every server is os2009.06 b111b On serv1, i have, after detach: serv1 # zfs list -r rpool/zones/bibc

Re: [zones-discuss] zonestat, prstat -Z, and cpu accounting

2010-07-27 Thread Steve Lawrence
Peter Tribble wrote: Looking at the recent zonestat arc case reminded me of something I've been meaning to ask for a while. In the case, it says: prstat polls /proc, and will not account for cpu used by short-lived processes. and Extended accounting must be used to compute the

Re: [zones-discuss] zonestat, prstat -Z, and cpu accounting

2010-08-17 Thread Steve Lawrence
Peter Tribble wrote: On Tue, Jul 27, 2010 at 5:34 PM, Steve Lawrence wrote: Now, if you want to account for cpu utilization by children, why not use the pr_ctime member of the psinfo structure? As far as I understand it, that collects cpu for child processes that exit, so why can't

  1   2   >