On Fri, Feb 13, 2009 at 4:05 AM, serarien <serar...@baqs.net> wrote: > Good morning, > First of all, excuse my bad english, I'm French. > > So, I want to use 200 whole-root zones with a mysql 5.1.30 community server > on each one. > I wrote a perl script to create them automatically. > This is what the scripts does: > > 1.detach a "template" zone > 2.snapshot the zfs file system of the "template" zone > 3.attach the template zone > 4.clone the zfs snapshot to a new file system > 5.configure the new zone (zonecfg create -a ...) > 6.boot the new zone > 7.execute some tweaks to configure mysql server in it etc. > 8.set cpushares, capped memory
How do you do this step? Do you use just zonecfg? > I do these operations 200 times, and at the 150th approximatively, the system > hangs a lot ! > Even a "w" needs 3 to 10 minutes to respond. Errors like: "cannot fork" > occure etc... > > > So I modified the script and add an operation: 9.reboot the zone If the only way you set resource controls was via zonecfg, the settings won't take effect until you do this. Additionally, the reboot will free up anything that may have ended up in each zone's tmpfs directories, which is a memory-based file system type. These directories include /tmp, /etc/svc/volatile, and /var/run. > Then, the system responds well and my 200 zones create normaly. Have you verified that each zone is really running everything it should be running after the reboot? -- Mike Gerdts http://mgerdts.blogspot.com/ _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org