<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20140916133035653074 { }body { font-size: 10.5pt; font-family: Î¢ÈíÑźÚ; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><br></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>justglusterfs@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div>&nbsp;</div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>·¢¼þÈË£º</b>&nbsp;<a href="mailto:justglusterfs@gmail.com">justglusterfs@gmail.com</a></div><div><b>·¢ËÍʱ¼ä£º</b>&nbsp;2014-09-09&nbsp;16:23</div><div><b>ÊÕ¼þÈË£º</b>&nbsp;<a href="mailto:gluster-devel@gluster.org">gluster-devel</a></div><div><b>³­ËÍ£º</b>&nbsp;<a href="mailto:gluster-users@gluster.org">gluster-users</a></div><div><b>Ö÷Ì⣺</b>&nbsp;glusterfs replica volume self heal lots of small file very very slow£¡£¡why£¿</div></div></div><div><div class="FoxDiv20140916133035653074">
<div><span></span><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;">Hi all£º</div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;">&nbsp; &nbsp; &nbsp; I do the &nbsp;following test£º</div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;">&nbsp; &nbsp; &nbsp;<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">I create a glusterfs &nbsp;</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">replica volume (replica count is 2 ) with two server node(server A and server B)£¬use XFS as the underlying filesystem£¬ &nbsp;then &nbsp;mount the volume in client node£¬</span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">&nbsp;</span><span style="line-height: 1.5;">&nbsp;&nbsp; then£¬ I &nbsp;s</span><span style="line-height: 24px;">hut down the network of server A node£¬ in &nbsp;client node£¬ I copy a dir£¨which has a</span><span style="line-height: 24px;">&nbsp;lot of small files</span><span style="line-height: 24px;">£©£¬ the dir size is&nbsp;<b>2.9GByte£¬</b></span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp; &nbsp; when &nbsp;copy finish£¬ I unmount the volume from the &nbsp;client£¬ then I start the network of server A node£¬ &nbsp; now£¬ glusterfs &nbsp;self-heal-daemon start heal dir &nbsp;from &nbsp;server B to &nbsp;server &nbsp;A£¬&nbsp;</span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp; &nbsp; in the &nbsp;end£¬ &nbsp;I find the self-heal-daemon &nbsp; heal the &nbsp;dir&nbsp;<b>use &nbsp;40 m</b></span><span style="line-height: 19.1875px;"><b>inutes£¬&nbsp;</b>&nbsp;</span><span style="line-height: 24px;"><b>It's too slow£¡ &nbsp;why£¿</b></span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;"><b><br></b></span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp; &nbsp;I &nbsp;</span><span style="line-height: 24px;">&nbsp;</span><span style="line-height: 24px;">find out &nbsp; r</span><span style="line-height: 19.1875px;">elated</span><span style="line-height: 24px;">&nbsp;options &nbsp;with &nbsp;self-heal£¬ as &nbsp;follow£º</span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><b><span style="line-height: 24px;">&nbsp; &nbsp;</span><span style="line-height: 1.5;">cluster.self-heal-window-size</span></b></div><span style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><b></b></span><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><b>&nbsp; &nbsp;<span style="text-align: justify; text-indent: 21pt; line-height: 1.5;">cluster.self-heal-readdir-size</span></b></div><span style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><b>&nbsp; &nbsp;<span lang="X-NONE">cluster.background-self-heal-count</span></b></span></div><div><font face="΢ÈíÑźÚ, Tahoma"><span style="line-height: normal;"><b><br></b></span></font></div><div><font face="΢ÈíÑźÚ, Tahoma"><span style="line-height: normal;"><b>&nbsp; &nbsp;</b></span></font></div><div><font face="΢ÈíÑźÚ, Tahoma"><span style="line-height: normal;"><b>&nbsp; then &nbsp;I &nbsp;config :</b></span></font></div><div><b style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp;&nbsp;</span><span style="line-height: 1.5;">cluster.self-heal-window-size &nbsp;is &nbsp;1024(max value)</span></b></div><div><font face="΢ÈíÑźÚ, Tahoma"><span style="background-color: rgb(199, 237, 204);"><b>&nbsp;&nbsp;<span lang="EN-US">cluster.self-heal-readdir-size &nbsp; is&nbsp;&nbsp;131072(max &nbsp;value)</span></b></span></font></div><div><font face="΢ÈíÑźÚ, Tahoma"><b>&nbsp; &nbsp;</b></font></div><div><b><font face="΢ÈíÑźÚ, Tahoma">&nbsp; and &nbsp;then &nbsp;do &nbsp;the &nbsp;same &nbsp;test case, &nbsp;find &nbsp;this times &nbsp;heal the dir &nbsp;use 35 minutes, &nbsp;<span style="background-color: rgb(199, 237, 204);">&nbsp;</span></font></b><span style="line-height: 24px; background-color: rgb(199, 237, 204);"><font face="΢ÈíÑźÚ, Tahoma"><b>The effective is not obvious,&nbsp;</b></font></span></div><div><font face="΢ÈíÑźÚ, Tahoma"><b>&nbsp;&nbsp;<br></b></font><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><b><br></b></div><div style="line-height: normal;"><span style="font-family: Î¢ÈíÑźÚ, Tahoma;">&nbsp;</span><font face="΢ÈíÑźÚ, Tahoma"><span style="background-color: rgb(199, 237, 204);"><b> I &nbsp;want &nbsp;to ask, &nbsp;<span style="line-height: 24px;">If there are better ways to improve replica volume self heal &nbsp;lots of small file &nbsp;</span><a class="clickable js-inline-clickable" style="line-height: 24px; margin: 0px; padding: 0px; border: 0px; outline: 0px; cursor: pointer;">performance??</a></b></span></font></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp;&nbsp;</span></div><div style="font-family: Î¢ÈíÑźÚ, Tahoma; line-height: normal;"><span style="line-height: 24px;">&nbsp; thanks£¡</span></div></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>justglusterfs@gmail.com</div></div></span></div>
</div></div></blockquote>
</body></html>