From: Michael Haggerty Date: Thu, 22 Jan 2015 10:54:49 GMT Subject: Re: [PATCHv2 1/5] update-ref: test handling large transactions properly Message-ID: <54C0D6F9.1000808@alum.mit.edu> In-Reply-To: <1421893929-7447-2-git-send-email-sbeller@google.com> On 01/22/2015 03:32 AM, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > t/t1400-update-ref.sh | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh > index 7b4707b..47d2fe9 100755 > --- a/t/t1400-update-ref.sh > +++ b/t/t1400-update-ref.sh > @@ -973,4 +973,32 @@ test_expect_success 'stdin -z delete refs works with packed and loose refs' ' > test_must_fail git rev-parse --verify -q $c > ' > > +run_with_limited_open_files () { > + (ulimit -n 32 && "$@") > +} Regarding the choice of "32", I wonder what is the worst-case number of open file descriptors that are needed *before* counting the ones that are currently wasted on open loose-reference locks. On Linux it seems to be only 4 with my setup: $ (ulimit -n 3 && git update-ref --stdin [...] Michael -- Michael Haggerty mhagger@alum.mit.edu