kernelsauce / turbo

Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
http://turbo.readthedocs.io/
Apache License 2.0
528 stars 84 forks source link

Port to PPC64 #191

Closed gut closed 9 years ago

gut commented 9 years ago

I just updated Turbolua to be able to run also on POWER architecture 64 bits.

Our team is still finishing the LuaJIT port to PPC64 so it's not on the official repository yet. Take a look at our Wiki hosted on GitHub for the latest status and for our code, if you want to check: https://github.com/LuaJIT-PPC64/LuaJIT-PPC64/tree/ppc64-port

That LuaJIT is already functional and on Turbolua I was able to run some examples like the chatapp. If you have more tests that we can run on our PPC64 machine in order to find possible bugs, give us a hint please.

kernelsauce commented 9 years ago

Tests are done pretty simple with make test.

Make sure that you have busted installed...

gut commented 9 years ago

it took a while (20 minutes) and it didn't finish as expected: $ make test ==== Running tests for Turbo.lua. NOTICE: busted module is required ==== export LD_LIBRARY_PATH=/usr/local/lib; export TURBO_TEST_SSL=1; busted ●●●●●●●●●●●[S 2015/06/09 17:07:50] [web.lua] 200 OK GET / (127.0.0.1) 0ms [S 2015/06/09 17:07:50] [async.lua] GET 127.0.0.1:31835/ => 200 OK 1ms ●●●●●●●●●●●●●●●●Killed make: *\ [test] Error 137

Any comments on this? Might be something else that I failed on porting...

gut commented 9 years ago

got it... it's the spec/iostream_spec.lua that is blocking. I'll check it closely and come back with news...

kernelsauce commented 9 years ago

Probably is the big read and writes. They can take a while but should definately succeed.

ons. 10. jun. 2015 kl. 13.44 skrev Gustavo Serra Scalet < notifications@github.com>:

got it... it's the spec/iostream_spec.lua that is blocking. I'll check it closely and come back with news...

— Reply to this email directly or view it on GitHub https://github.com/kernelsauce/turbo/pull/191#issuecomment-110713667.

gut commented 9 years ago

well, after reducing the number of "bytes:append_luastr_right" calls it worked: 59 successes / 0 failures / 0 errors / 0 pending : 11.334306 seconds

Thanks

kernelsauce commented 9 years ago

Good :)