[PATCH] ibsim/sim_cmd: Add command to set perf. counters.

2012-08-22 Thread Huang, Perry
This patch requires: [PATCH 1/2] ibsim/sim.h: Add support for optional performance attributes. [PATCH 2/2] ibsim/sim_mad.c: Add read/reset functions for optional performance attributes. Use: PerformanceSet nodeid[port] [attribute].[field]=[value] eg. sim PerformanceSet

RE: rsockets and fork

2012-08-22 Thread Hefty, Sean
I'm haven't identified the specific problem with fork support, but I did see this in libmlx4: mlx4_alloc_context() { ... context-uar = mmap(NULL, to_mdev(ibdev)-page_size, PROT_WRITE, MAP_SHARED, cmd_fd, 0); if (context-uar == MAP_FAILED)

RE: rsockets and fork

2012-08-22 Thread Sridhar Samudrala
On Wed, 2012-08-22 at 23:35 +, Hefty, Sean wrote: I'm haven't identified the specific problem with fork support, but I did see this in libmlx4: mlx4_alloc_context() { ... context-uar = mmap(NULL, to_mdev(ibdev)-page_size, PROT_WRITE, MAP_SHARED,

RE: rsockets and fork

2012-08-22 Thread Hefty, Sean
I saw this code in preload library and was wondering why rsocket() is called and closed immediately if fork_support is enabled. I guess you are doing this so that you can fallback to real socket at the initial socket() call instead of waiting all the way until fork_active/fork_passive. This