EV on AIX?
Marc Lehmann
schmorp at schmorp.de
Wed Mar 21 11:15:54 CET 2012
On Tue, Mar 20, 2012 at 02:58:14PM -0600, Darin McBride <darin.mcbride at shaw.ca> wrote:
> "EV.xs", line 131.1: 1506-046 (S) Syntax error.
> make: 1254-004 The error code from the last command is 1.
>
> I'm imagining here, then, that AIX is not supported (yet?).
It is, there are even workarounds against it's buggy poll implementation, but
the new version of libev requires memory fences.
Which cpu architecture are you running aix on? To port libev to that
architecture, you would need to add the relevant memory fences to ecb.h (in
ev.c, somewhere around line 577).
Easier would be to use a non-antique gcc version (e.g. 4.4), which should
have the relevant memory fences built-in, or llvm/clang.
If neither is an option, and you are running on a single-cpu box, you can
disable memory fences entirely by compiling with -DECB_NO_SMP.
On Tue, Mar 20, 2012 at 10:45:16PM -0600, Darin McBride <darin.mcbride at shaw.ca> wrote:
> On Wednesday March 21 2012 10:48:01 AM zhang wrote:
>
> Seems libev only works properly on Linux with Epoll(works perfect for me),
> BSD(or Mac OS X) with kqueue(patch needed)
I'm not aware of any patch being needed, and libev works properly on
GNU/Linux, BSD, windows, solaris, hp-pux, irix and a bunch of others,
including AIX, if configured correctly, or used with a new enough
compiler.
> Fair enough. I'm kind of curious, then, which event loop might be recommended
> on AIX? Again, not a big deal as the pure-perl one seems to work, just
> curious.
Any event loop you like and can get compiled, I guess.
AIX only really supports select, so the only speed gains over the
pure-perl loop would be with regards to timer, and overall more efficient
(by a constant factor) handling of data structures in C. Also, EV should
use less memory, again by a constant factor.
So, using the pure perl event loop on aix is definitely an option that
shouldn't lose out much.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list