From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 19 15:52:04 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 54CD41065672 for ; Mon, 19 Oct 2009 15:52:04 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id DE1FF8FC1D for ; Mon, 19 Oct 2009 15:52:03 +0000 (UTC) Received: by ewy5 with SMTP id 5so1058560ewy.36 for ; Mon, 19 Oct 2009 08:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=ZUzF2n6sm2Y8hVypEHHDB2gcQ1XXhwLFgmMxOj6OD5w=; b=KwHzuPCMOQe4EYDTPgCAkPhpH/dZqCKj7fy4PQrUxGURHoNdrC3Az2Nv0hSzQP72i0 8gA8IfIVBuvv7yYawySVVuEItd29cQs0FE67VQ8CQ5rImo8ns4+mI/khte2X/VlVAxxo /zzefyt9HleuOXxpSMDnWSzmOWhSgvNpU2XCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=hERYmh2Ia1gmUqk88mykNS8+ZGlNdEC9FueBjCDvj92B0+Tw2TwCDtGJAlmUI3Cy21 AZgWXvvtij4n1jVfxudJ6/Gnj/uTi9R+aopJkKmfe/LnoDyUK46TuHGgAgovslM/TJnu tpS6D6DabNXmSL1ro2Wql5iY3ugCZ8odWx3dw= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.90.77 with SMTP id d55mr2045484wef.164.1255967522926; Mon, 19 Oct 2009 08:52:02 -0700 (PDT) In-Reply-To: <20091019144135.GA91918@ravenloft.kiev.ua> References: <20091019144135.GA91918@ravenloft.kiev.ua> From: Ivan Voras Date: Mon, 19 Oct 2009 17:51:42 +0200 X-Google-Sender-Auth: b468beaee624ff3e Message-ID: <9bbcef730910190851m7e82bd1aqc0bc55106c8a5d37@mail.gmail.com> To: Alex Kozlov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org 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: Mon, 19 Oct 2009 15:52:04 -0000 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 call; perha= ps >> > it would make sense offer a flag to prevent make(1) from 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 >> > =C2=A0 =C2=A0expect 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?