<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088">
<STYLE>@font-face {
        font-family: ËÎÌå;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @ËÎÌå;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><FONT 
color=#000000 size=2 face=Verdana>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>Dear&nbsp;all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>Recenly,&nbsp;I&nbsp;have&nbsp;installed&nbsp;the&nbsp;gLuster&nbsp;3.2.2&nbsp;source&nbsp;and&nbsp;do&nbsp;much&nbsp;IO&nbsp;performance&nbsp;on&nbsp;gLuster&nbsp;by&nbsp;tuning&nbsp;the&nbsp;cache-size&nbsp;and&nbsp;cache-timeout.&nbsp;And&nbsp;I&nbsp;found&nbsp;the&nbsp;cache-size&nbsp;doesn't&nbsp;work&nbsp;for&nbsp;multi&nbsp;bricks&nbsp;whick&nbsp;is&nbsp;strange&nbsp;and&nbsp;stuck&nbsp;me.&nbsp;</DIV>
<DIV>For&nbsp;example,&nbsp;volume&nbsp;info:</DIV>
<DIV>Volume&nbsp;Name:&nbsp;strip-vol</DIV>
<DIV>Type:&nbsp;Stripe</DIV>
<DIV>Status:&nbsp;Started</DIV>
<DIV>Number&nbsp;of&nbsp;Bricks:&nbsp;2</DIV>
<DIV>Transport-type:&nbsp;tcp</DIV>
<DIV>Bricks:</DIV>
<DIV>Brick1:&nbsp;cloud04:/web-data01/data02&nbsp;&nbsp;&nbsp;//multi&nbsp;bricks</DIV>
<DIV>Brick2:&nbsp;cloud04:/web-data01/data03</DIV>
<DIV>Options&nbsp;Reconfigured:</DIV>
<DIV>performance.cache-refresh-timeout:&nbsp;60</DIV>
<DIV>performance.cache-size:&nbsp;1024000000</DIV>
<DIV>&nbsp;</DIV>
<DIV>test&nbsp;scripts:&nbsp;&nbsp;</DIV>
<DIV>for((i=0;i&lt;3;i++));&nbsp;do&nbsp;dd&nbsp;if=f20M&nbsp;of=/dev/zero&nbsp;bs=1M;&nbsp;sleep&nbsp;2;done&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>test&nbsp;results:</DIV>
<DIV>&nbsp;</DIV>
<DIV>First&nbsp;test:</DIV>
<DIV>Description:&nbsp;distributed&nbsp;volume&nbsp;with&nbsp;multi&nbsp;bricks</DIV>
<DIV>&nbsp;</DIV>
<DIV>[root@cloud04&nbsp;testfs]#&nbsp;for((i=0;i&lt;3;i++));&nbsp;do&nbsp;dd&nbsp;if=f20M&nbsp;of=/dev/zero&nbsp;bs=1M;&nbsp;sleep&nbsp;2;done</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.107977&nbsp;seconds,&nbsp;89&nbsp;MB/s</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.108642&nbsp;seconds,&nbsp;85&nbsp;MB/s</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.10802&nbsp;seconds,&nbsp;90&nbsp;MB/s</DIV>
<DIV>&nbsp;</DIV>
<DIV>From&nbsp;the&nbsp;dd&nbsp;test&nbsp;doing&nbsp;in&nbsp;1Gb/s&nbsp;Ethenet,&nbsp;I&nbsp;got&nbsp;the&nbsp;performance&nbsp;shows&nbsp;read&nbsp;a&nbsp;same&nbsp;files&nbsp;which&nbsp;should&nbsp;have&nbsp;cached&nbsp;&nbsp;rather&nbsp;than&nbsp;got&nbsp;them&nbsp;through&nbsp;network.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Second&nbsp;test:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Description:&nbsp;distributed&nbsp;volume&nbsp;with&nbsp;only&nbsp;one&nbsp;brick&nbsp;in&nbsp;a&nbsp;single&nbsp;server</DIV>
<DIV>Volume&nbsp;Name:&nbsp;test-vol</DIV>
<DIV>Type:&nbsp;Stripe</DIV>
<DIV>Status:&nbsp;Started</DIV>
<DIV>Number&nbsp;of&nbsp;Bricks:&nbsp;1</DIV>
<DIV>Transport-type:&nbsp;tcp</DIV>
<DIV>Bricks:</DIV>
<DIV>Brick1:&nbsp;cloud04:/web-data01/data02&nbsp;&nbsp;&nbsp;//single&nbsp;brick</DIV>
<DIV>Options&nbsp;Reconfigured:</DIV>
<DIV>performance.cache-refresh-timeout:&nbsp;60</DIV>
<DIV>performance.cache-size:&nbsp;1024000000</DIV>
<DIV>&nbsp;</DIV>
<DIV>[root@cloud04&nbsp;testfs]#&nbsp;for((i=0;i&lt;3;i++));&nbsp;do&nbsp;dd&nbsp;if=f20M&nbsp;of=/dev/zero&nbsp;bs=1M;&nbsp;sleep&nbsp;2;done</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.107977&nbsp;seconds,&nbsp;89&nbsp;MB/s</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.108642&nbsp;seconds,&nbsp;899&nbsp;MB/s</DIV>
<DIV>20+0&nbsp;records&nbsp;in</DIV>
<DIV>20+0&nbsp;records&nbsp;out</DIV>
<DIV>20971520&nbsp;bytes&nbsp;(21&nbsp;MB)&nbsp;copied,&nbsp;0.10802&nbsp;seconds,&nbsp;897&nbsp;MB/s</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>The&nbsp;result&nbsp;shows&nbsp;it&nbsp;read&nbsp;the&nbsp;cached&nbsp;file&nbsp;which&nbsp;is&nbsp;reasonable.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Could&nbsp;you&nbsp;know&nbsp;why&nbsp;I&nbsp;got&nbsp;the&nbsp;low&nbsp;performance&nbsp;when&nbsp;doing&nbsp;the&nbsp;first&nbsp;test&nbsp;with&nbsp;multi-bricks?&nbsp;Hence,&nbsp;I&nbsp;debug&nbsp;and&nbsp;trace&nbsp;the&nbsp;two&nbsp;volumes&nbsp;and&nbsp;found&nbsp;that&nbsp;a&nbsp;volume&nbsp;with&nbsp;single&nbsp;brick&nbsp;can&nbsp;cache&nbsp;the&nbsp;file&nbsp;accessed,&nbsp;then&nbsp;next&nbsp;time&nbsp;to&nbsp;read&nbsp;the&nbsp;same&nbsp;file&nbsp;again&nbsp;just&nbsp;read&nbsp;from&nbsp;cache&nbsp;not&nbsp;from&nbsp;network.&nbsp;But&nbsp;for&nbsp;a&nbsp;volume&nbsp;with&nbsp;multi-bricks,&nbsp;cache&nbsp;feature&nbsp;does&nbsp;not&nbsp;work.&nbsp;&nbsp;Could&nbsp;you&nbsp;give&nbsp;me&nbsp;some&nbsp;configuration&nbsp;tips&nbsp;to&nbsp;optimize&nbsp;IO&nbsp;performance&nbsp;when&nbsp;volume&nbsp;with&nbsp;multi-bricks.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;any&nbsp;help&nbsp;in&nbsp;advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers,</DIV>
<DIV>Qiulan</DIV>
<DIV>
<DIV>2011-10-18</DIV></DIV>
<DIV>====================================================================</DIV>
<DIV>Computing&nbsp;center,the&nbsp;Institute&nbsp;of&nbsp;High&nbsp;Energy&nbsp;Physics,&nbsp;CAS,&nbsp;China</DIV>
<DIV>Qiulan 
Huang&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel:&nbsp;(+86)&nbsp;10&nbsp;8823&nbsp;6010-105</DIV>
<DIV>P.O.&nbsp;Box&nbsp;918-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax:&nbsp;(+86)&nbsp;10&nbsp;8823&nbsp;6839</DIV>
<DIV>Beijing&nbsp;100049&nbsp;&nbsp;P.R.&nbsp;China&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:&nbsp;Qiulan.Huang@ihep.ac.cn</DIV>
<DIV>===================================================================</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV></FONT></DIV></FONT></BODY></HTML>