From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 19 14:35:30 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 596151065676 for ; Mon, 19 Oct 2009 14:35:30 +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 BC78E8FC0C for ; Mon, 19 Oct 2009 14:35:29 +0000 (UTC) Received: by ewy5 with SMTP id 5so977710ewy.36 for ; Mon, 19 Oct 2009 07:35:28 -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=uzLJea7rn6EJvPlbdcIyqEjxShrq+zZ/mZ/HspWVFwU=; b=IfQ9WeNI/iJjh315V7R4KwHmvF5w9jmi6XPIjvzNrcdarUjzpqqahBgyBNWzjvwbej suftP2t1t3yKKDRyNTITVcV6C3ieCaySYU6hReoD51h3rThSSrEucDT3t1+OUxX3l8go hwiOqLEdK0BSX69mxYUabPqnX5s3bmOcbyrQM= 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=WxKw18W//K4cyaX0pLGGkrmkutgAHjhEoXGWkW1c4YwhbLO7+4j37r0T6P3RTabmdk x+pnKW+e8GbR/bCOrOjgkuGU+Aihq54t+pNdEhz6L6CvQbtiJ1AFp9LS9TAAVKLl96Vw aEuwRE1MyyhQSsjUQGJ0xfepQcHtmhpYltjFE= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.89.14 with SMTP id b14mr1895681wef.76.1255962928619; Mon, 19 Oct 2009 07:35:28 -0700 (PDT) In-Reply-To: <20091019140806.GB95902@rink.nu> References: <20091019140806.GB95902@rink.nu> From: Ivan Voras Date: Mon, 19 Oct 2009 16:35:08 +0200 X-Google-Sender-Auth: afc2a6724a026c16 Message-ID: <9bbcef730910190735t5847e765j16337092b354ec29@mail.gmail.com> To: Rink Springer 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 14:35:30 -0000 2009/10/19 Rink Springer : > Hi Ivan, > > On Mon, Oct 19, 2009 at 03:52:30PM +0200, Ivan Voras wrote: >> if nobody objects, I'll commit it :) > > I seem to recall that setproctitle() is quite expensive to call; perhaps > 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.