<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"><div><div><div><br><div><div><div class="h5"><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 class="h5">

  
  <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 class="im">

_______________________________________________<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></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">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>