From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 20 08:24:43 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A70E106566C for ; Tue, 20 Oct 2009 08:24:43 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 193A68FC08 for ; Tue, 20 Oct 2009 08:24:42 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 46DCA398B1 for ; Tue, 20 Oct 2009 10:07:07 +0200 (CEST) Received: from 62.225.72.179 ([62.225.72.179]) by 0x20.net (Horde MIME library) with HTTP; Tue, 20 Oct 2009 10:07:07 +0200 Message-ID: <20091020100707.60jfc16iskcgcccg@0x20.net> X-Priority: 3 (Normal) Date: Tue, 20 Oct 2009 10:07:07 +0200 From: Lars Engels To: freebsd-hackers@freebsd.org References: <20091019162016.GA96201@ravenloft.kiev.ua> In-Reply-To: <20091019162016.GA96201@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_1161ozjsc8tc"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-Mailman-Approved-At: Tue, 20 Oct 2009 11:28:33 +0000 Subject: Re: Make process title - % complete X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 08:24:43 -0000 This message is in MIME format and has been PGP signed. --=_1161ozjsc8tc Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alex Kozlov : > On Mon, Oct 19, 2009 at 05:51:42PM +0200, Ivan Voras wrote: >> 2009/10/19 Alex Kozlov : >> > On Mon, Oct 19, 2009 at 04:35:08PM +0200, Ivan Voras wrote: >> >> >> if nobody objects, I'll commit it :) >> >> > >> >> > I seem to recall that setproctitle() is quite expensive to =20 >> call; perhaps >> >> > it would make sense offer a flag to prevent make(1) from =20 >> calling it? [1] >> >> > >> >> > Anyway, the feature looks nice! I'd like to have it... >> >> > >> >> > [1] I'm unsure how expensive it is compared to fork(1)-ing etc; I'd >> >> > expect it's negligable but who knows... >> >> >> >> The loop it's called in is not processed bazillion times per second >> >> (though it *is* called surprisingly often; small, fast jobs can result >> >> in somewhere in the order of magnitude of 100 iterations per second on >> >> a fast CPU). As you said - I expect it's negligable compared to fork() >> >> and the work jobs themselves do. >> > How about add this statistic to make info handler? >> You mean SIGINFO? > Yes Using SIGINFO sounds nice, but make produces so much output that =20 normally you won't see the result because it is scrolled up just after =20 sending the signal. --=_1161ozjsc8tc Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkrdb6sACgkQKc512sD3afjJ5ACdF5tILIQ89zrl0VU0x1jXWLsS +jcAn21Q3qTIX11uoV0CLu9NcuqBP0j7 =urXJ -----END PGP SIGNATURE----- --=_1161ozjsc8tc--