<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I have libwebsockets working on a 200MHz PowerPC Linux system.  I
    didn't try the paint test as my system is an embedded headless
    system.  However I did have rewrite the application code based on
    the basic test server code to be aware of my specific application.  
    In particular I had to use the websockets flow control mechanism to
    prevent data loss and utilise blocking on sockets, which
    libwebsockets does anyway, to keep the CPU usage down.  This is the
    nature of resource constrained systems, you have to develop the code
    to get the best performance from the platform.<br>
     Graham<br>
    <br>
    <div class="moz-cite-prefix">On 25/03/14 14:14, Trac wrote:<br>
    </div>
    <blockquote
      cite="mid:046.543707f8098b70c60a9e1e4a1aed02d7@libwebsockets.org"
      type="cite">
      <pre wrap="">#59: libwebsockets on powerpc
------------------------------------+-----------------
 Reporter:  luckytrack              |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:                          |
------------------------------------+-----------------
 I compiled libwebsockets for a 400-MHz powerpc linux system, which worked
 fine. Then i tried the libwebsockets-test-server, which also seemed to
 work, but somehow only updates the counter on the test-page about every
 ~200 ms, instead of the 50ms updates i get on a x86 system. Also the
 mirror-test does not seem to work very well, when i try to draw a straight
 line in one client, the other client just seems to get fragments of that
 line. When moving the mouse very slowly, it seems to work better. My first
 guess would have been that the system is just too slow, but the cpu usage
 stays very low, typically under 5%, during the tests.

 Strace output of the counter operation of the test-server:
 15:24:20.629276 poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
 events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.679824 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.730374 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.780925 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 1 ([{fd=7,
 revents=POLLOUT}])
 15:24:20.829279 send(7, "\201\0014", 3, MSG_NOSIGNAL) = 3
 15:24:20.829799 poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
 events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.880347 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.930898 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:20.981449 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 1 ([{fd=7,
 revents=POLLOUT}])
 15:24:21.030184 send(7, "\201\0015", 3, MSG_NOSIGNAL) = 3
 15:24:21.030707 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:21.081261 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:21.131814 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 0 (Timeout)
 15:24:21.182364 poll([{fd=5, events=POLLIN}, {fd=7,
 events=POLLIN|POLLOUT}, {fd=8, events=POLLIN}], 3, 50) = 1 ([{fd=7,
 revents=POLLOUT}])

--
Ticket URL: <a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org/trac/libwebsockets/ticket/59"><http://libwebsockets.org/trac/libwebsockets/ticket/59></a>
libwebsockets <a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org"><http://libwebsockets.org></a>
libwebsockets C library
_______________________________________________
Libwebsockets mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libwebsockets@ml.libwebsockets.org">Libwebsockets@ml.libwebsockets.org</a>
<a class="moz-txt-link-freetext" href="http://ml.libwebsockets.org/mailman/listinfo/libwebsockets">http://ml.libwebsockets.org/mailman/listinfo/libwebsockets</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <!-- Begin Peavey Digital Research e-mail signature - last modified 04/10/2012 by Stephen Joy -->
      <table cellpadding="0" cellspacing="0" width="90%">
        <tbody>
          <tr>
            <td
style="font-size:12.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Graham
              Newton</td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Senior
              Software Engineer</td>
          </tr>
          <tr>
            <td>
              <hr color="#0000A0"></td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Peavey
              Digital Research</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">A
              Division of Peavey Electronics Corporation</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"
              width="50">Phone</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Direct</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Email</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a class="moz-txt-link-abbreviated" href="mailto:gnewton@peavey-eu.com">gnewton@peavey-eu.com</a></td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Web</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a
                href="http://www.peaveycommercialaudio.com">www.peaveycommercialaudio.com</a>
              -
              <a href="http://mm.peavey.com">mm.peavey.com</a> -
              <a href="http://www.crestaudio.com">www.crestaudio.com</a>
              -
              <a href="http://aa.peavey.com">aa.peavey.com</a> -
              <a href="http://www.peaveyoxford.com">www.peaveyoxford.com</a>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                COMMERCIAL AUDIO</b> - Great Folds Road, Corby,
              Northamptonshire, NN18 9ET UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                DIGITAL RESEARCH</b> - 6 Elm Place, Eynsham, Oxfordshire
              OX29 4BD UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ITALIA</b> - Via P.La Torre 21, Zona Ind.le Cerretano,
              60022 Castelfidardo An, Italy</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                CHINA</b> - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou,
              Shenzhen China 518067</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ELECTRONICS CORPORATION</b> - 5022 Hartley Peavey Drive,
              Meridian, MS 39305 USA</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:7.0pt;font-weight:normal;font-family:Arial,sans-serif;color:#929292">Peavey
              Electronics Limited is a registered company in England
              & Wales, Company Registration No.: 01249126
              <br>
              Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY
              NORTHAMPTONSHIRE. NN18 9ET</td>
          </tr>
        </tbody>
      </table>
      <!-- End Peavey Digital Research e-mail signature -->
    </div>
  </body>
</html>