[zeromq-dev] compiling zeromq with uuid dependency

2012-04-19 Thread Francisc Simon
Hi, I've tried yesterday to compile zeromq 2.2 on my ubuntu server. The result was that i alway got the error : configure: error: cannot link with -luuid, install uuid-dev. And I don't want to use apt-get install libuuid-dev, because in our case the installation process is part of a independent

Re: [zeromq-dev] Zmq Assert

2012-04-19 Thread Antonio Teixeira
Good Morning All :) So i have found the problem and a fix ( not a solution for it ) I can't explain the reason but using the logging module apparently causes the parent to SIGABORT although the application (CHILDs) still runs on the same logging module perfectly fine using gevent. I know that

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Ian Barber
On Wed, Apr 18, 2012 at 8:23 PM, Radha Krishna Srimanthula srimanthula.radhakris...@gmail.com wrote: I plan to create the socket, manage the end points and do the pub-sub communication in three different threads. For various legacy reasons, I need to use the existing threading model -based on

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Chuck Remes
On Apr 18, 2012, at 5:09 PM, Radha Krishna Srimanthula wrote: Can you please help me with my first qn? Just to restate - would it be ok to create a socket in a main thread - only once, perform subscriptions/ unsubscriptions in another, and perform sends on the yet another thread? Use a

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Radha Krishna Srimanthula
Thanks Ian/ Chuck! I might have to go the mutex way - the connection end points need to be managed dynamically. -- Regards, Radha On Thu, Apr 19, 2012 at 5:19 AM, Chuck Remes li...@chuckremes.com wrote: On Apr 18, 2012, at 5:09 PM, Radha Krishna Srimanthula wrote: Can you please help me

Re: [zeromq-dev] compiling zeromq with uuid dependency

2012-04-19 Thread Pieter Hintjens
On Thu, Apr 19, 2012 at 1:05 AM, Francisc Simon francisc.si...@evalgo.com wrote: I've also tried to set the LD_LIBRARY_PATH to /location/uuid/lib but it does not change anything I get the same error. By the way from my point of view it would be nice to have a --with-uuid section in the

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Pieter Hintjens
On Wed, Apr 18, 2012 at 5:09 PM, Radha Krishna Srimanthula srimanthula.radhakris...@gmail.com wrote: Just to restate - would it be ok to create a socket in a main thread - only once, perform subscriptions/ unsubscriptions in another, and perform sends on the yet another thread? Yes, you can

[zeromq-dev] Python / Zmq / Gevent

2012-04-19 Thread Antonio Teixeira
Hello Once Again :) I have deployed the following scenario : REQ (ipc://IPC/SOCKET- Connect - Using Multiple Threads/ Greenlets) - (IPC ROUTER - Bind ipc://IPC/SOCKET) - (DEALER TCP - Connect:127.0.0.1:) - (Router TCP Bind :127.0.0.1:) - (IPC DEALER - Bind ipc://IPC/SOCKET2) - REP (

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Radha Krishna Srimanthula
Thanks for the reply Pieter, Can you please help me with more information about performing a full memory barrier? Frankly, hearing it for the first time. -- Regards, Radha http://www.sradhakrishna.com On Thu, Apr 19, 2012 at 8:41 AM, Pieter Hintjens p...@imatix.com wrote: On Wed, Apr 18,

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Chuck Remes
He was just reiterating that you should use a mutex. A mutex will perform a full memory barrier for you. I don't know why this community is so caught up on using the term memory barrier when *in practice* they mean to say mutex. Just use a mutex properly and all will be well. Feel free to read

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Pieter Hintjens
On Thu, Apr 19, 2012 at 11:34 AM, Radha Krishna Srimanthula srimanthula.radhakris...@gmail.com wrote: Thanks for the reply Pieter, Can you please help me with more information about performing a full memory barrier? Frankly, hearing it for the first time.

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Pieter Hintjens
On Thu, Apr 19, 2012 at 11:38 AM, Chuck Remes li...@chuckremes.com wrote: He was just reiterating that you should use a mutex. A mutex will perform a full memory barrier for you. I don't know why this community is so caught up on using the term memory barrier when *in practice* they mean to

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Chuck Remes
On Apr 19, 2012, at 11:45 AM, Pieter Hintjens wrote: On Thu, Apr 19, 2012 at 11:38 AM, Chuck Remes li...@chuckremes.com wrote: He was just reiterating that you should use a mutex. A mutex will perform a full memory barrier for you. I don't know why this community is so caught up on using

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Andrew Hume
pieter, for us regular C programmers, do we need to do anything special here? is there some magic instruction we need to do? or do we just declare teh socket pointer as volatile or somesuch? andrew On Apr 19, 2012, at 8:41 AM, Pieter Hintjens wrote: On Wed, Apr 18,

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Pieter Hintjens
On Thu, Apr 19, 2012 at 12:26 PM, Andrew Hume and...@research.att.com wrote: pieter, for us regular C programmers, do we need to do anything special here? is there some magic instruction we need to do? or do we just declare teh socket pointer as volatile or somesuch? Like Chuck said, using a

Re: [zeromq-dev] Python / Zmq / Gevent

2012-04-19 Thread Paul Colomiets
Hi Antonio, On Thu, Apr 19, 2012 at 6:42 PM, Antonio Teixeira eagle.anto...@gmail.com wrote: Hello Once Again :) I have deployed the following scenario : REQ (ipc://IPC/SOCKET- Connect - Using Multiple Threads/ Greenlets) - (IPC ROUTER - Bind ipc://IPC/SOCKET) - (DEALER TCP -

Re: [zeromq-dev] Python / Zmq / Gevent

2012-04-19 Thread Antonio Teixeira
Hello Paul A socket an IPC socket is been created per greenlet that connects to the ipc socket. To be more precise 10 x REQ (ipc://IPC/SOCKET- Connect) and the next hop its a ROUTER that bind on the ipc socket sitting on the parent greenlet 2012/4/19 Paul Colomiets p...@colomiets.name Hi

[zeromq-dev] Strangeloop conference

2012-04-19 Thread Michel Pelletier
Is anyone thinking of going to the strangeloop conference? http://thestrangeloop.com/ Strange Loop typically covers topics like distributed systems, concurrency, mobile, web, and programming languages but it is open to a wide variety of ideas. Strange Loop is primarily focused on commercial

Re: [zeromq-dev] compiling zeromq with uuid dependency

2012-04-19 Thread Philip Kovacs
The uuid library is part of the 'util-linux' package and the development headers are from 'uuid-dev'. Check the outputs of: $ pkg-config --cflags uuid (should be an include path (-I) to the uuid.h header) $ pkg-config --libs uuid (should be something like '-luuid') I typically see the

Re: [zeromq-dev] Strangeloop conference

2012-04-19 Thread Pieter Hintjens
Hi Michel, Nice catch. I've submitted a talk on Software Architecture using ZeroMQ. -Pieter On Thu, Apr 19, 2012 at 7:22 PM, Michel Pelletier pelletier.mic...@gmail.com wrote: Is anyone thinking of going to the strangeloop conference? http://thestrangeloop.com/ Strange Loop typically

[zeromq-dev] Cross compiling Zeromq with OpenPGM for ARM

2012-04-19 Thread Radha Krishna Srimanthula
Hi, I need to cross compile zeromq with OpenPGM for ARM. I tried cross-compiling OpenPGM, but ./configure failed with this error: *./configure --host=arm-linux --target=arm-linux checking for /proc/cpuinfo... configure: error: cannot check for file existence when cross

[zeromq-dev] Rfc: dns-sd record type for zeromq

2012-04-19 Thread Daniel Holth
Proposing a dns-sd and srv type zeromq to advertise over zeroconf/avahi for example. The txt record would contain type=router|push|pull (the name of the listening socket type) and an optional application-defined label= to indicate the purpose of a particular socket. Sound like enough to be useful

[zeromq-dev] can't link to luuid while installing zeroMQ

2012-04-19 Thread jianbin ma
My server is SUSE server 10 . i am building strom eveironment and when i intstalled zeroMQ,I performed ./configure,and a error exist as followed checking for uuid_generate in -luuid... no configure: error: cannot link with -luuid, install uuid-dev. I cannot get some useful link to download

Re: [zeromq-dev] compiling zeromq with uuid dependency

2012-04-19 Thread Thiago Cangussu
Francisc, Set LDFLAGS=-Lyour-lib-dir and CPPFLAGS=-Iyour-include-dir before running configure. I use the libuuid from e2fsprogs[1], but should work with the one you got. [1] - http://www.zeromq.org/build:android Regards, Thiago On Thu, Apr 19, 2012 at 3:05 AM, Francisc Simon

[zeromq-dev] zeromq on ec2

2012-04-19 Thread Irooniam
Khello, I was wondering if anyone had experience/tips about running 0mq in the cloud. My information model basically is a number of nodes of nodes pushing messages to a central node. Something like: XXX \ | / \ | / X The message size will vary but around 200 bytes,

Re: [zeromq-dev] zeromq on ec2

2012-04-19 Thread Irooniam
On Thu, Apr 19, 2012 at 10:55 PM, Irooniam iroon...@gmail.com wrote: On Thu, Apr 19, 2012 at 10:36 PM, Martin Sustrik wrote: On 20/04/12 07:27, Irooniam wrote: The message size will vary but around 200 bytes, at roughly 1 million messages/second. Are you aware that you are beyond 1GbE