[OpenAFS] freezes acessing /afs/.git
Jonathan Billings
jsbillin@umich.edu
Wed, 6 Aug 2014 09:57:46 -0400
--089e013a04025c928604fff65b92
Content-Type: text/plain; charset=UTF-8
On Wed, Aug 6, 2014 at 9:32 AM, Markus Koeberl <markus.koeberl@tugraz.at>
wrote:
>
> I am getting very annoying freezes on the terminal from time to time.
> Today I was able to trace them back to a git branch call for my fancy bash
> prompt. Normally it takes 0.06s to call git branch in my $HOME on afs but
> sometimes it takes about 54s. Tracing git branch showed me it is always
> hanging at stat /afs/.git
>
For what it's worth, my hack to work around this is to define
$GIT_CEILING_DIRECTORIES in my ~/.bashrc:
GIT_CEILING_DIRECTORIES=/afs/umich.edu:/afs/.umich.edu
(Obviously, all I care about is my home 'umich.edu' cell)
This doesn't fix anything related to the afsdb/dynroot lookup that's
causing the problem, but it does stop git from misbehaving.
--
Jonathan Billings <jsbillin@umich.edu>
College of Engineering - CAEN - Unix and Linux Support
--089e013a04025c928604fff65b92
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Aug 6, 2014 at 9:32 AM, Markus Koeberl <span dir=3D"ltr"><<a href=3D=
"mailto:markus.koeberl@tugraz.at" target=3D"_blank">markus.koeberl@tugraz.a=
t</a>></span> wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bo=
rder-left-style:solid;padding-left:1ex">
<div style=3D"font-family:'DejaVu Sans Mono';font-size:9pt;font-wei=
ght:400;font-style:normal">
<p style=3D"margin:0px;text-indent:0px">I am getting very annoying freezes =
on the terminal from time to time. Today I was able to trace them back to a=
git branch call for my fancy bash prompt. Normally it takes 0.06s to call =
git branch in my $HOME on afs but sometimes it takes about 54s. Tracing git=
branch showed me it is always hanging at stat /afs/.git<span style=3D"font=
-family:arial;font-size:small">=C2=A0</span></p>
</div></blockquote><div><br></div><div>For what it's worth, my hack to =
work around this is to define $GIT_CEILING_DIRECTORIES in my ~/.bashrc:</di=
v><div><br></div><div>GIT_CEILING_DIRECTORIES=3D/afs/umich.edu:/afs/.<a hre=
f=3D"http://umich.edu">umich.edu</a><br>
</div><div><br></div><div>(Obviously, all I care about is my home '<a h=
ref=3D"http://umich.edu">umich.edu</a>' cell)</div><div><br></div><div>=
This doesn't fix anything related to the afsdb/dynroot lookup that'=
s causing the problem, but it does stop git from misbehaving.</div>
</div><div><br></div>-- <br>Jonathan Billings <<a href=3D"mailto:jsbilli=
n@umich.edu" target=3D"_blank">jsbillin@umich.edu</a>><br>College of Eng=
ineering - CAEN - Unix and Linux Support<br><br>
</div></div>
--089e013a04025c928604fff65b92--