bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "make check" failure with sort-compress on OSF and Linux


From: Matthew Woehlke
Subject: Re: "make check" failure with sort-compress on OSF and Linux
Date: Fri, 23 Feb 2007 10:11:32 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0

Jim Meyering wrote:
It would be nice if sort could calculate how many processes it can fork,
and then ensure that it never uses more than say 25% of that number of
process slots.

Well, there's always getrlimit(). I'm not sure about a portable way to find out what chunk of that is in use, but even limiting process spawns to 1/4 of the rlimit would help a bit. Of course failing gracefully (or retrying) would be better.

--
Matthew
Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! -- Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]