how to build mbuffer for macox

All your general support questions for OpenZFS on OS X.

Re: how to build mbuffer for macox

Postby echeng » Fri Jun 19, 2015 1:04 am

Thank you so much for this. I'm using mbuffer and IP over Thunderbolt and am getting 1GB/s during send/recv between machines.

Screen Shot 2015-06-19 at 2.00.44 AM.png
Screen Shot 2015-06-19 at 2.00.44 AM.png (83.78 KiB) Viewed 8348 times


Screen Shot 2015-06-19 at 2.01.14 AM.png
Screen Shot 2015-06-19 at 2.01.14 AM.png (20.93 KiB) Viewed 8348 times
echeng
 
Posts: 4
Joined: Sat May 31, 2014 6:45 pm

Re: how to build mbuffer for macox

Postby tangles » Sat Jul 25, 2015 12:18 am

Hi echeng,

I too compiled mbuffer from Lundman's tarball and when I run it, I notice that the buffer is always 0% full. Even your screenshot shows this...

Is this right?
tangles
 
Posts: 195
Joined: Tue Jun 17, 2014 6:54 am

Re: how to build mbuffer for macox

Postby lundman » Sun Jul 26, 2015 3:00 pm

That was one of the things that OSX is missing, a way to pass values around with pthread. As a quick port we went without it. If you want that to work, you will need to find a more correct porting solution.
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: how to build mbuffer for macox

Postby haer22 » Tue Jul 12, 2016 3:02 am

Trying to get buffer installed but I get an error regarding openssl.

I ran "./configure" and then "make":

Code: Select all
[titan:mbuffer-20130220-osx] hans% make
gcc -g -O2 -O2 -Wall -m64 -DHAVE_CONFIG_H -I. -I.   -c -o log.o log.c
gcc -g -O2 -O2 -Wall -m64 -DHAVE_CONFIG_H -I. -I.   -c -o network.o network.c
gcc -g -O2 -O2 -Wall -m64 -DHAVE_CONFIG_H -I. -I.   -c -o mbuffer.o mbuffer.c
mbuffer.c:65:3: warning: sendfile is unable to send from buffers [-W#warnings]
        #warning sendfile is unable to send from buffers
         ^
mbuffer.c:86:10: fatal error: 'openssl/md5.h' file not found
#include <openssl/md5.h>
         ^
1 warning and 1 error generated.
make: *** [mbuffer.o] Error 1
[titan:mbuffer-20130220-osx] hans%


Any help appreciated as I am using send/receive a lot shipping TBs.
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: how to build mbuffer for macox

Postby haer22 » Tue Jul 12, 2016 3:28 am

and I have a fresh install of openssl via "brew install openssl"
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: how to build mbuffer for macox

Postby lundman » Tue Jul 12, 2016 7:46 pm

Sounds like you should add to configure with ./configure CPPFLAGS=-I/usr/local/ssl/include (change depending on where brew sticks SSL). That probably then also needs LDFLAGS=-L/usr/local/ssl/lib too
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: how to build mbuffer for macox

Postby haer22 » Thu Jul 14, 2016 10:21 am

Worked. Thanks!

brew placed it in /usr/local/openssl....

happy camper. But I sure want the next miniMac that I hope will be announced this fall to have more memory than 16GB. zfs eats memory, a lot of memory


lundman wrote:Sounds like you should add to configure with ./configure CPPFLAGS=-I/usr/local/ssl/include (change depending on where brew sticks SSL). That probably then also needs LDFLAGS=-L/usr/local/ssl/lib too
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: how to build mbuffer for macox

Postby stumble » Sat Jul 16, 2016 12:08 am

lundman's tarball compiles nicely for me.

Just in case anyone else can't compile it, you can get the original buffer from MacPorts, and I believe it has enough of the same functionality. (I haven't tried it though.)
stumble
 
Posts: 37
Joined: Thu May 15, 2014 7:05 pm

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 37 guests

cron