<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Aug 2019 at 19:26, João Carlos Mendes Luís <<a href="mailto:jonny@corp.globo.com">jonny@corp.globo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>    I'm preping a new backend for our mirror host, and just found
      that centos mirror could use a little help from hardlinking. 
      After running `hardlink -cvvn` on our copy of centos repo, I got
      these results:</p>
    <blockquote>
      <p><b><tt>Directories 774</tt></b><b><tt><br>
          </tt></b><b><tt>Objects 220535</tt></b><b><tt><br>
          </tt></b><b><tt>IFREG 219740</tt></b><b><tt><br>
          </tt></b><b><tt>Comparisons 4839</tt></b><b><tt><br>
          </tt></b><b><tt>Would link 903</tt></b><b><tt><br>
          </tt></b><b><tt>Would save 2951557120</tt></b><br>
      </p>
    </blockquote>
    <p>    This means that 903 files are exactly equal (ignoring
      metadata, like date, perms, etc), meaning that more than 2.9GB
      could be saved.  Hardly much in a 207GB repo, but a save anyway. 
      Also, this means that local file system cache would be optmized.</p>
    <p></p></div></blockquote><div><br></div><div>It might be but it also depends on what the files are. Could you give exactly what files are doing this.. it may be that the other data is very important for some reason and a hardlink won't be possible.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>    Problem is, everytime I resync my mirror, these hardlinks are
      lost.  So the hardlink shall be done in the master repo.</p>
    <p>    Is there anything that I'm not seeing that prevents this
      optimization?</p>
    <p><br>
    </p>
    <div class="gmail-m_3880120212369220953moz-signature">    Regards,<br>
      <br>
              Jonny<br>
      <br clear="all">
      <div>
        <div style="margin:0px;color:rgba(0,0,0,0.87);font-family:Helvetica,Arial,sans-serif;font-size:14px;letter-spacing:normal"><br>
          <table style="margin:0px;border-collapse:collapse;vertical-align:top" cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <td colspan="2">
                  <hr></td>
              </tr>
              <tr>
                <td style="padding:8px" valign="middle"> <img src="https://s3.glbimg.com/v1/AUTH_0601abe00ef04d20a8b20254df29a44e/assinatura/Globocom.png" alt="globo.com" title="Globo.com" width="56" height="56"> </td>
                <td>
                  <table cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                      <tr>
                        <td>
                          <b>João Carlos Mendes Luís</b> </td>
                      </tr>
                      <tr>
                        <td>
                          <b>Senior DevOps Engineer</b> </td>
                      </tr>
                      <tr>
                        <td>
                          <div style="line-height:20px;font-size:14px;letter-spacing:0px;margin:0px">
                            <a href="mailto:jonny@corp.globo.com" target="_blank">jonny@corp.globo.com</a><br>
                            +55-21-2483-6893<br>
                            +55-21-99218-1222<br>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <p><br>
        </p>
      </div>
    </div>
  </div>

_______________________________________________<br>
CentOS-mirror mailing list<br>
<a href="mailto:CentOS-mirror@centos.org" target="_blank">CentOS-mirror@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/centos-mirror" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-mirror</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Stephen J Smoogen.<br><br></div></div></div>