Le 18 nov. 09 à 22:23, Mike Gerdts a écrit :
2009/11/18 Gaëtan Lehmann <gaetan.lehm...@jouy.inra.fr>:Hi, Is it possible to freeze a zone and unfreeze it a few seconds later?I can't find anything like that in the doc. In the mean time, I've donethat:running_processes=`ps -o s= -o pid= -z $zone_name | grep -v T | awk '{print$2}'` kill -s SIGSTOP $running_processes ... do important stuff here... kill -s SIGCONT $running_processesYou could probably use a dtrace script along the lines of the following in the global zone... # dtrace -wqn 'sched:::on-cpu /zonename == $1/ { printf("Stopping pid %d/%d in %s\n", pid, tid, zonename); stop(); }' $zone When you are ready to unfreeze it: # prun `pgrep -z $zone`
thanks, it could probably enhance things a bit Gaëtan -- Gaëtan Lehmann Biologie du Développement et de la Reproduction INRA de Jouy-en-Josas (France) tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 http://voxel.jouy.inra.fr http://www.itk.org http://www.mandriva.org http://www.bepo.fr
PGP.sig
Description: Ceci est une signature électronique PGP
_______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org