From owner-cvs-src@FreeBSD.ORG Tue Jun 17 20:19:42 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B52401065671; Tue, 17 Jun 2008 20:19:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1D80E8FC17; Tue, 17 Jun 2008 20:19:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5HKPSRq087281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Jun 2008 23:25:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5HKJKh1067070; Tue, 17 Jun 2008 23:19:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m5HKJJvZ067069; Tue, 17 Jun 2008 23:19:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 17 Jun 2008 23:19:19 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20080617201919.GQ82830@deviant.kiev.zoral.com.ua> References: <200806170633.m5H6XMJH084600@repoman.freebsd.org> <20080617140600.GE1176@hoeg.nl> <4857D508.8070907@FreeBSD.org> <200806171122.41340.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MXxcbiX/Q4+iy5U7" Content-Disposition: inline In-Reply-To: <200806171122.41340.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: Maxim Sobolev , src-committers@freebsd.org, Ed Schouten , cvs-src@freebsd.org, cvs-all@freebsd.org, David Xu Subject: Re: cvs commit: src/include Makefile spawn.h unistd.h src/lib/libc/gen Makefile.inc Symbol.map exec.3 exec.c posix_spawn.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 20:19:42 -0000 --MXxcbiX/Q4+iy5U7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 17, 2008 at 11:22:40AM -0400, John Baldwin wrote: > On Tuesday 17 June 2008 11:15:20 am Maxim Sobolev wrote: > > Ed Schouten wrote: > > > * David Schultz wrote: > > >> I have no objections to this, but doesn't it defeat the whole > > >> purpose to implement posix_spawn() as a library function that just > > >> calls fork/exec? > > >=20 > > > When (if?) applications start to use posix_spawn() we may decide to m= ove > > > it into the kernel at any time. It should be okay for now. > >=20 > > Are there any benefits of doing it in the kernel vs. doing it via fork+= exec? >=20 > Speed. You don't have to go mark all your pages as COW or some such only= to=20 > turn around and throw the new mappings away and undo that. The committed implementation uses vfork(). No COW is needed. On the other hand, after single-threading of the parent process have been removed from fork1(9), vfork(2) could have interesting consequences when done from the multithreaded process. --MXxcbiX/Q4+iy5U7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhYHEcACgkQC3+MBN1Mb4jU9ACg755WAFYGlWv7yMUTQDaVmMXX aU8AoKKl15j6n5JsftOx1x4FTAbMx5Gt =J1n7 -----END PGP SIGNATURE----- --MXxcbiX/Q4+iy5U7--