<div dir="ltr"><div><div><div><div><div><div>Hi<br><br>The problem seems to be fixed in 2.6.32-358.18.1.el6.centos.plus.x86_64<br><br></div>Finally found how to install it properly on Debian 7.<br><br></div>Here is results:<br>
# hdparm -t /dev/mapper/vg-root<br><br>/dev/mapper/vg-root:<br> Timing buffered disk reads: 992 MB in  3.00 seconds = 330.13 MB/sec<br><br><br></div>Much better as you can see.<br><br></div>How long it would take to get that fix into OpenVZ kernel?<br>
<br></div>Bug link: <a href="http://bugs.centos.org/view.php?id=6548">http://bugs.centos.org/view.php?id=6548</a><br><br></div>Kernel: <a href="http://ftp.tu-chemnitz.de/pub/linux/centos/6.4/centosplus/x86_64/Packages/kernel-2.6.32-358.18.1.el6.centos.plus.x86_64.rpm">http://ftp.tu-chemnitz.de/pub/linux/centos/6.4/centosplus/x86_64/Packages/kernel-2.6.32-358.18.1.el6.centos.plus.x86_64.rpm</a><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/29 spameden <span dir="ltr">&lt;<a href="mailto:spameden@gmail.com" target="_blank">spameden@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">2013/8/29 Kirill Korotaev <span dir="ltr">&lt;<a href="mailto:dev@parallels.com" target="_blank">dev@parallels.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">SSDSC2CW240A3 == Intel 520. It&#39;s not server grade as well and though it behaves much much better then desktop SSDs - we still saw it&#39;s loosing commits on power failure. So beware that your database can corrupt or loose transactions.<div>

All server grade SSDs from Intel have &quot;Enhanced power-loss data protection&quot; feature in specs which implies capacitors on the board for saving data to NVRAM. It&#39;s 320, 710 and S3700 models.</div><div>Intel S3700 is the best and fastest we ever saw among different models including non-Intel ones and this is what Parallels recommends in Parallels Cloud Storage.</div>

</div></blockquote><div><br></div></div><div>Ofc it&#39;s not that good, but we can&#39;t offer right now to buy overpriced hardware (for us, at least).<br><br></div><div>Our database is XtraDB and it&#39;s commiting every second.<br>

<br></div><div>Losing 1 second of transactions is not a problem for us.<br><br></div><div>However, slow speed with 2.6.32 openvz kernel is a problem. As you can see there is a problem on this particular kernel.<br><br>I&#39;ll try to investigate more and report back. <br>

</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div><br><div><br><div><div>On Aug 29, 2013, at 13:20 , spameden &lt;<a href="mailto:spameden@gmail.com" target="_blank">spameden@gmail.com</a>&gt;</div>

<div> wrote:</div><div><div><br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/29 Kirill Korotaev <span dir="ltr">&lt;<a href="mailto:dev@parallels.com" target="_blank">dev@parallels.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">I also want to add that SSD models referred to in  the bug (like OCZ one) are not server grade and you guys risk very much loosing your data or corrupting file system on power failure.<div>


You should test it heavily.<br></div></div></blockquote><div><br></div><div>Thanks for that.<br><br>But we are not using OCZ (also know they are not reliable).<br><br></div><div>The SSD in this server is INTEL SSDSC2CW240A3.<br>


<br></div><div>I can&#39;t try the latest redhat kernel on this system, because after converting it to deb it seems to be not working.<br><br></div><div>But I believe fix should be in 2.6.32-358.18.1.el6.centos.plus.x86_64. <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 style="word-wrap:break-word"><br><div><div><div><div>On Aug 29, 2013, at 03:52 , Kir Kolyshkin &lt;<a href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>&gt; wrote:</div>


<br></div></div><blockquote type="cite"><div><div>

  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>On 08/28/2013 06:34 AM, spameden wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">2013/8/28 Kir Kolyshkin <span dir="ltr">&lt;<a href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>
                  <div>On 08/27/2013 08:20 AM, spameden wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>ArchLinux wiki says:<br>
                        <b>Warning: </b>Users need to be certain that
                        kernel version 2.6.33 or above is being used AND
                        that their SSD supports TRIM before attempting
                        to mount a partition with the <code style="display:inline-block;padding:0.1em 0.3em">discard</code> flag. Data loss can
                        occur otherwise!<br>
                        <br>
                      </div>
                      So I guess it&#39;s not in the OpenVZ kernel?<br>
                      <br>
                      I&#39;d like to use TRIM because it increases
                      performance to SSD drastically!<br>
                    </div>
                  </blockquote>
                  <br>
                </div>
                You&#39;d better check it with Red Hat, looking into their
                RHEL6 documentation.<br>
                <br>
                My quick googling for &quot;rhel6 kernel ssd discard&quot; shows
                that rhel6 kernel<br>
                do support trim, they have backported it (as well as
                tons of other stuff,<br>
                so this is hardly 2.6.32 kernel anymore).<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>I&#39;ve just tested via hdparm (ofc it&#39;s not a perfect
              tool to test out disk performance but still), here is what
              I get on the latest 2.6.32-042stab079.5:<br>
              <br>
              # hdparm -t /dev/mapper/vg-root<br>
              /dev/mapper/vg-root:<br>
               Timing buffered disk reads: 828 MB in  3.00 seconds =
              275.56 MB/sec<br>
              <br>
            </div>
            <div>on standard debian-7 kernel (3.2.0-4-amd64):<br>
              # hdparm -t /dev/mapper/vg-root<br>
              /dev/mapper/vg-root:<br>
               Timing buffered disk reads: 1144 MB in  3.00 seconds =
              381.15 MB/sec<br>
              <br>
            </div>
            <div>and it&#39;s only read speed test.<br>
              <br>
            </div>
            <div>I don&#39;t get why it differs so much?<br>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    My suggestion is, since this functionality is not directly related
    to OpenVZ, and<br>
    we usually don&#39;t change anything in this code (unless there is a
    reason to), to<br>
    try reproducing it on a stock RHEL6 kernel and, if it is
    reproducible, file a bug<br>
    to red hat or, if it&#39;s not reproducible, file a bug to openvz.<br>
    <br>
    Kir.<br>
  </div></div></div><div>

_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br><a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>


</div></blockquote></div><br></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br><a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>

</blockquote></div></div></div><br></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>