Make process title - % complete
Max Laier
max at love2party.net
Wed Oct 21 01:11:45 UTC 2009
On Monday 19 October 2009 16:08:06 Rink Springer wrote:
> 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]
Just rate-limit the setproctitle() call to once/sec or once/percentage-step
and be done with it.
I must say that trying it out on a kernel build didn't proof too useful as the
targets have vastly different runtimes, but I think it's a good addition
nonetheless. So please, go for it Ivan.
> 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...
>
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
More information about the freebsd-hackers
mailing list