[Bro] Myricom help

inetjunkmail inetjunkmail at gmail.com
Tue Mar 8 12:38:59 PST 2016


Thanks Harry, that was it.  I made the following changes in case anyone
else runs into it.

I modified my workers config to add the SNF_APP_ID:

------------------------------------------------------------
[d2-w]
type=worker
host=d2
interface=p4p1
lb_method=myricom
lb_procs=14
pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
env_vars=SNF_APP_ID=1


[d3-w]
type=worker
host=d3
interface=p4p1
lb_method=myricom
lb_procs=14
pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
env_vars=SNF_APP_ID=1


[d4-w]
type=worker
host=d4
interface=p4p1
lb_method=myricom
lb_procs=14
pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
env_vars=SNF_APP_ID=1
------------------------------------------------------------

Fortunately, this only seems to be used when starting services but is
ignored with capstats.  To get capstats to work, I added and export
SNF_APP_ID=2 to /etc/bashrc so all users inherit this by default (including
the bro user).  So now, when bro is started it uses the env_vars and runs
bro with SNF_APP_ID=1 and when capstats runs, the "normal" environment
variables are present and it runs with SNF_APP_ID=2.  Another benefit is
that if a user is logged in and runs tcpdump, it too inherits the
SNF_APP_ID of 2.

Thanks for your help!




On Tue, Mar 8, 2016 at 10:42 AM, Harry Hoffman <hhoffman at ip-solutions.net>
wrote:

> Do you need to set the APP_ID (probably not the real var name) to allow
> multiple apps to read from the cards?
>
> Cheers,
> Harry
> On Mar 8, 2016 10:27 AM, inetjunkmail <inetjunkmail at gmail.com> wrote:
>
> We're running Bro version 2.4.1 on CENTOS 7 with Myricom driver version
> 3.0.6.  When we run broctl capstats, we get the error below.
>
> ------------------------------------------------------------
> [bro at d2 ~]$ /usr/local/bro/bin/broctl capstats
>
> cannot get list of local IP addresses
>
> Interface             kpps       mbps       (10s average)
> ----------------------------------------
> d2-w-1: capstats failed (error: p4p1: snf_ring_open_id(ring=-1) failed:
> Device or resource busy)
>
> d3-w-1: capstats failed (error: p4p1: snf_ring_open_id(ring=-1) failed:
> Device or resource busy)
>
> d4-w-1: capstats failed (error: p4p1: snf_ring_open_id(ring=-1) failed:
> Device or resource busy)
> ------------------------------------------------------------
>
> My worker config looks like this:
>
> ------------------------------------------------------------
> [d2-w]
> type=worker
> host=d2
> interface=p4p1
> lb_method=myricom
> lb_procs=14
> pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
>
> [d3-w]
> type=worker
> host=d3
> interface=p4p1
> lb_method=myricom
> lb_procs=14
> pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
>
> [d4-w]
> type=worker
> host=d4
> interface=p4p1
> lb_method=myricom
> lb_procs=14
> pin_cpus=2,3,4,5,6,7,8,9,10,11,12,13,14,15
> ------------------------------------------------------------
>
> Can anyone provide some direction on how to get capstats working?
>
> Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20160308/99a99c09/attachment.html 


More information about the Bro mailing list