[OpenAFS] forcing and benchmarking the cache scan

Derrick Brashear shadow@gmail.com
Fri, 18 Mar 2011 10:44:45 -0400


--000e0ce0b1baa8422a049ec2d167
Content-Type: multipart/alternative; boundary=000e0ce0b1baa841fc049ec2d166

--000e0ce0b1baa841fc049ec2d166
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

/etc/init.d/openafs-client stop; rm /usr/vice/etc/CacheItems;
/etc/init.d/openafs-client start
?


On Fri, Mar 18, 2011 at 10:05 AM, Edgecombe, Jason <jwedgeco@uncc.edu>wrote=
:

> Hi everyone,
>
>
>
> I had a server doing a cache scan for over an hour yesterday after
> upgrading the RAID (mpt2sas) driver on RHEL5.5 64bit. I thought the box
> hung, so I ran a hard reset and ended up rebuilding it. I=92m trying to
> reproduce and measure the cache scan time with the two different versions=
 of
> the RAID driver to see if the driver causes an issue, or not. How can I
> force the client to run a cache scan when I run /etc/init.d/openafs-clien=
t
> restart instead of at boot time?
>
>
>
> I=92m trying the following procedure to benchmark things:
>
>
>
> fs setcachesize 1
>
> fs setcachesize 62048980
>
> fs getcachep
>
> cd /afs/(some folder)
>
> find . -type f | xargs cat > /dev/null
>
> cd /
>
> time /etc/init.d/openafs-client restart
>
>
>
> Details on production box:
>
> OS: RedHat Enterprise Linux Server 5.5 (64bit)
>
> Hardware: Dell PowerEdge R210 With H200 RAID controller
>
> Driver: mp2tsas driver from Dell
>
>
>
> Details on testing box (my only H200 cards are in production servers):
>
> OS: RedHat Enterprise Linux Server 5.5 (64bit)
>
> Hardware: Dell PowerEdge R510 With H700 RAID controller
>
> Driver: mp2tsas driver from Dell
>
>
>
> Thanks,
>
> Jason
>
>
>
> -------------------------------------------------------------------------=
--
>
> Jason Edgecombe *| *Linux and Solaris Administrator
>
> UNC Charlotte *| *The William States Lee College of Engineering
>
> 9201 University City Blvd. *| *Charlotte, NC 28223-0001
>
> jwedgeco@uncc.edu *| *http://coe.uncc.edu | [image: facebook-logo]<https:=
//www.facebook.com/UNCCEngr>
>  Facebook <https://www.facebook.com/UNCCEngr>
>
> -------------------------------------------------------------------------=
--
>
> If you are not the intended recipient of this transmission or a person
> responsible for delivering it to the intended recipient, any disclosure,
> copying, distribution, or other use of any of the information in this
> transmission is strictly prohibited. If you have received this transmissi=
on
> in error, please notify me immediately by reply e-mail or by telephone at
> 704-687-3514.  Thank you.
>
>
>



--=20
Derrick

--000e0ce0b1baa841fc049ec2d166
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

/etc/init.d/openafs-client stop; rm /usr/vice/etc/CacheItems; /etc/init.d/o=
penafs-client start<br>?<br><br><br><div class=3D"gmail_quote">On Fri, Mar =
18, 2011 at 10:05 AM, Edgecombe, Jason <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:jwedgeco@uncc.edu">jwedgeco@uncc.edu</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link=3D"blue=
" vlink=3D"purple" lang=3D"EN-US"><div><p class=3D"MsoNormal"><span style=
=3D"font-size: 10pt;">Hi everyone,</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=A0</span></p><p cl=
ass=3D"MsoNormal"><span style=3D"font-size: 10pt;">I had a server doing a c=
ache scan for over an hour yesterday after upgrading the RAID (mpt2sas) dri=
ver on RHEL5.5 64bit. I thought the box hung, so I ran a hard reset and end=
ed up rebuilding it. I=92m trying to reproduce and measure the cache scan t=
ime with the two different versions of the RAID driver to see if the driver=
 causes an issue, or not. How can I force the client to run a cache scan wh=
en I run /etc/init.d/openafs-client restart instead of at boot time?</span>=
</p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=A0</span></p><p cl=
ass=3D"MsoNormal"><span style=3D"font-size: 10pt;">I=92m trying the followi=
ng procedure to benchmark things:</span></p><p class=3D"MsoNormal"><span st=
yle=3D"font-size: 10pt;">=A0</span></p>
<p class=3D"MsoNormal" style=3D"margin-left: 0.5in;"><span style=3D"font-si=
ze: 10pt;">fs setcachesize 1</span></p><p class=3D"MsoNormal" style=3D"marg=
in-left: 0.5in;"><span style=3D"font-size: 10pt;">fs setcachesize 62048980<=
/span></p>
<p class=3D"MsoNormal" style=3D"margin-left: 0.5in;"><span style=3D"font-si=
ze: 10pt;">fs getcachep</span></p><p class=3D"MsoNormal" style=3D"margin-le=
ft: 0.5in;"><span style=3D"font-size: 10pt;">cd /afs/(some folder)</span></=
p><p class=3D"MsoNormal" style=3D"margin-left: 0.5in;">
<span style=3D"font-size: 10pt;">find . -type f | xargs cat &gt; /dev/null<=
/span></p><p class=3D"MsoNormal" style=3D"margin-left: 0.5in;"><span style=
=3D"font-size: 10pt;">cd /</span></p><p class=3D"MsoNormal" style=3D"margin=
-left: 0.5in;">
<span style=3D"font-size: 10pt;">time /etc/init.d/openafs-client restart</s=
pan></p><p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=A0</span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">Details on produ=
ction box:</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">OS: RedHat Enterpri=
se Linux Server 5.5 (64bit)</span></p><p class=3D"MsoNormal"><span style=3D=
"font-size: 10pt;">Hardware: Dell PowerEdge R210 With H200 RAID controller<=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">Driver: mp2tsas dri=
ver from Dell</span></p><p class=3D"MsoNormal"><span style=3D"font-size: 10=
pt;">=A0</span></p><p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=
Details on testing box (my only H200 cards are in production servers):</spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">OS: RedHat Enterpri=
se Linux Server 5.5 (64bit)</span></p><p class=3D"MsoNormal"><span style=3D=
"font-size: 10pt;">Hardware: Dell PowerEdge R510 With H700 RAID controller<=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">Driver: mp2tsas dri=
ver from Dell</span></p><p class=3D"MsoNormal"><span style=3D"font-size: 10=
pt;">=A0</span></p><p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=
Thanks,</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 10pt;">Jason</span></p><p =
class=3D"MsoNormal"><span style=3D"font-size: 10pt;">=A0</span></p><p class=
=3D"MsoNormal"><span style=3D"font-size: 9pt;">----------------------------=
-----------------------------------------------</span></p>
<p class=3D"MsoNormal" style=3D""><span style=3D"font-size: 9pt;">Jason Edg=
ecombe <b>| </b>Linux and Solaris Administrator</span></p><p class=3D"MsoNo=
rmal" style=3D""><span style=3D"font-size: 9pt;">UNC Charlotte <b>| </b>The=
 William States Lee College of Engineering</span></p>
<p class=3D"MsoNormal" style=3D""><span style=3D"font-size: 9pt;">9201 Univ=
ersity City Blvd. <b>| </b>Charlotte, NC 28223-0001</span></p><p class=3D"M=
soNormal" style=3D""><span style=3D"font-size: 9pt;"><a href=3D"mailto:jwed=
geco@uncc.edu" target=3D"_blank"><span style=3D"color: windowtext;">jwedgec=
o@uncc.edu</span></a> <b>| </b><a href=3D"http://coe.uncc.edu/" target=3D"_=
blank"><span style=3D"color: blue;">http://coe.uncc.edu</span></a> | </span=
><a href=3D"https://www.facebook.com/UNCCEngr" target=3D"_blank"><span styl=
e=3D"color: gray; text-decoration: none;"><img src=3D"cid:image001.gif@01CB=
E553.687A8FA0" alt=3D"facebook-logo" border=3D"0" height=3D"16" width=3D"16=
"></span></a><span style=3D"color: gray;">=A0<a href=3D"https://www.faceboo=
k.com/UNCCEngr" target=3D"_blank"><span style=3D"color: gray;">Facebook</sp=
an></a></span><span style=3D"font-size: 9pt;"></span></p>
<p class=3D"MsoNormal" style=3D""><span style=3D"font-size: 9pt;">---------=
------------------------------------------------------------------</span></=
p><p class=3D"MsoNormal" style=3D""><span style=3D"font-size: 8pt;">If you =
are not the intended recipient of this transmission or a person responsible=
 for delivering it to the intended recipient, any disclosure, copying, dist=
ribution, or other use of any of the information in this transmission is st=
rictly prohibited. If you have received this transmission in error, please =
notify me immediately by reply e-mail or by telephone at <a href=3D"tel:704=
-687-3514" target=3D"_blank">704-687-3514</a>.=A0 Thank you.</span></p>
<p class=3D"MsoNormal">=A0</p></div></div></blockquote></div><br><br clear=
=3D"all"><br>-- <br>Derrick<br>

--000e0ce0b1baa841fc049ec2d166--
--000e0ce0b1baa8422a049ec2d167
Content-Type: image/gif; name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <image001.gif@01CBE553.687A8FA0>
X-Attachment-Id: 83f219152dec8688_0.1

R0lGODlhEAAQANUAAE1rpUJfkipGhzVRkU5omGmDt+3v80Vfn/P0+D5YmElioWh/tDBLjDpVllJp
mTZSknuNuU5mlUxmpDNPkH2TwEFcmyxJiX6QvVBop9vh69zh61NwplZzqE1uqUpsqEZpplRzrVd1
rn6UwVp4sEBko1p9skNnpVBxq1hwrF16siRBf1R1rP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAQABAAAAaMQMQF
RSwaiRcEZEEROZ9QygKCKaSu2Oy1gJGMvmAwh0D4ShShtDq90bBYacUBRK/TM28W/VA5+f9+b4AV
CR2GhwEBb4mGCQ0ekJF5eZANDx+YmZNvmA8TJqChoG+iEwwkqKmob6oMFiWwsbBvshYCACu5uitv
ugACDgO4u7wsuQADDgYRKs3Oz80RBkEAOw==
--000e0ce0b1baa8422a049ec2d167--