Re: Infiniband use of get_user_pages()

2013-04-24 Thread Roland Dreier
On Wed, Apr 24, 2013 at 8:38 AM, Jan Kara wrote: > when checking users of get_user_pages() (I'm doing some cleanups in that > area to fix filesystem's issues with mmap_sem locking) I've noticed that > infiniband drivers add number of pages obtained from get_user_pages() to > mm->pinned_vm counte

Re: NFS over RDMA benchmark

2013-04-24 Thread Tom Talpey
On 4/24/2013 2:04 PM, Wendy Cheng wrote: On Wed, Apr 24, 2013 at 9:27 AM, Wendy Cheng wrote: On Wed, Apr 24, 2013 at 8:26 AM, J. Bruce Fields wrote: On Wed, Apr 24, 2013 at 11:05:40AM -0400, J. Bruce Fields wrote: On Wed, Apr 24, 2013 at 12:35:03PM +, Yan Burman wrote: Perf top for t

Re: NFS over RDMA benchmark

2013-04-24 Thread Wendy Cheng
On Wed, Apr 24, 2013 at 9:27 AM, Wendy Cheng wrote: > On Wed, Apr 24, 2013 at 8:26 AM, J. Bruce Fields wrote: >> On Wed, Apr 24, 2013 at 11:05:40AM -0400, J. Bruce Fields wrote: >>> On Wed, Apr 24, 2013 at 12:35:03PM +, Yan Burman wrote: >>> > >>> > >>> > >>> > Perf top for the CPU with high

Re: linux-next: manual merge of the net-next tree with the infiniband tree

2013-04-24 Thread Thadeu Lima de Souza Cascardo
On Thu, Apr 18, 2013 at 01:18:43PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in > drivers/infiniband/hw/cxgb4/qp.c between commit 5b0c275926b8 > ("RDMA/cxgb4: Fix SQ allocation when on-chip SQ is disabled") from the > infiniband tree

Re: NFS over RDMA benchmark

2013-04-24 Thread Wendy Cheng
On Wed, Apr 24, 2013 at 8:26 AM, J. Bruce Fields wrote: > On Wed, Apr 24, 2013 at 11:05:40AM -0400, J. Bruce Fields wrote: >> On Wed, Apr 24, 2013 at 12:35:03PM +, Yan Burman wrote: >> > >> > >> > >> > Perf top for the CPU with high tasklet count gives: >> > >> > samples pcnt

Re: Infiniband use of get_user_pages()

2013-04-24 Thread Christoph Lameter
On Wed, 24 Apr 2013, Jan Kara wrote: > Hello, > > when checking users of get_user_pages() (I'm doing some cleanups in that > area to fix filesystem's issues with mmap_sem locking) I've noticed that > infiniband drivers add number of pages obtained from get_user_pages() to > mm->pinned_vm count

Infiniband use of get_user_pages()

2013-04-24 Thread Jan Kara
Hello, when checking users of get_user_pages() (I'm doing some cleanups in that area to fix filesystem's issues with mmap_sem locking) I've noticed that infiniband drivers add number of pages obtained from get_user_pages() to mm->pinned_vm counter. Although this makes some sence, it doesn't ma

Re: NFS over RDMA benchmark

2013-04-24 Thread J. Bruce Fields
On Wed, Apr 24, 2013 at 11:05:40AM -0400, J. Bruce Fields wrote: > On Wed, Apr 24, 2013 at 12:35:03PM +, Yan Burman wrote: > > > > > > > -Original Message- > > > From: J. Bruce Fields [mailto:bfie...@fieldses.org] > > > Sent: Wednesday, April 24, 2013 00:06 > > > To: Yan Burman > > >

Re: NFS over RDMA benchmark

2013-04-24 Thread J. Bruce Fields
On Wed, Apr 24, 2013 at 12:35:03PM +, Yan Burman wrote: > > > > -Original Message- > > From: J. Bruce Fields [mailto:bfie...@fieldses.org] > > Sent: Wednesday, April 24, 2013 00:06 > > To: Yan Burman > > Cc: Wendy Cheng; Atchley, Scott; Tom Tucker; linux-rdma@vger.kernel.org; > > linu

[PATCH for-next 8/9] IB/core: Export ib_create/destroy_flow through uverbs

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Implement ib_uverbs_create_flow and ib_uverbs_destroy_flow to support flow steering for user space applications. Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- drivers/infiniband/core/uverbs.h |3 + drivers/infiniband/core/uverbs_cmd.c | 209 ++

[PATCH for-next 7/9] IB/core: Infra-structure to support verbs extensions through uverbs

2013-04-24 Thread Or Gerlitz
From: Igor Ivanov Add Infra-structure to support extended uverbs capabilities in a forward/backward manner. Uverbs command opcodes which are based on the verbs extensions approach should be greater or equal to IB_USER_VERBS_CMD_THRESHOLD. They have new header format and processed a bit differen

[PATCH for-next 2/9] net/mlx4: Match DMFS promiscuous field names to firmware spec

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Align the names used by enum mlx4_net_trans_promisc_mode with the actual firmware specification. The patch doesn't introduce any functional change or API change towards the firmware. Remove MLX4_FS_PROMISC_FUNCTION_PORT which isn't of use. Add new enums MLX4_FS_{UC/MC}_SNIFF

[PATCH for-next 6/9] IB/core: Add receive Flow Steering support

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion The RDMA stack allows for applications to create IB_QPT_RAW_PACKET QPs, for which plain Ethernet packets are used, specifically packets which don't carry any QPN to be matched by the receiving side. Applications using these QPs must be provided with a method to program some

[PATCH for-next 9/9] IB/mlx4: Add receive Flow Steering support

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Implement the ib_create_flow and ib_destroy_flow verbs. Translate the verbs structures provided by the user to HW structures and call the MLX4_QP_FLOW_STEERING_ATTACH/DETACH firmware commands. On the ATTACH command completion, the firmware provides 64 bit registration ID wh

[PATCH for-next 5/9] net/mlx4_core: Expose few helpers to fill DMFS HW strucutures

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Re-arrange some of code which fills DMFS HW structures so we can use it from within the core driver and from the IB driver too, e.g when verbs DMFS structures are transformed into mlx4 Hardware structs. Also, add struct mlx4_flow_handle struct which will be of use by the DMF

[PATCH for-next 1/9] net/mlx4_core: Move DMFS HW structs to common header file

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Move flow steering HW structures to be on the public mlx4 include directory, as a pre-step for the mlx4 IB driver to use them too. Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- drivers/net/ethernet/mellanox/mlx4/mlx4.h | 79 - i

[PATCH for-next 4/9] net/mlx4_core: Directly expose fields of DMFS HW rule control segment

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Some of struct mlx4_net_trans_rule_hw_ctrl fields were packed into u32 and accessed through bit field operations. Expose and access them directly as u8 or u16. Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- drivers/net/ethernet/mellanox/mlx4/mcg.c | 14

[PATCH for-next 0/9] Add receive Flow Steering support

2013-04-24 Thread Or Gerlitz
Hi Roland, all The first five patches in the series are mlx4 DMFS (Device Managed Flow Steering) pre-patches needed for flow steering access from the mlx4 IB driver. net/mlx4_core: Move DMFS HW structs to common header file net/mlx4: Match DMFS promiscuous field names to firmware spec net/

[PATCH for-next 3/9] net/mlx4_core: Change few DMFS fields names to match firmare spec

2013-04-24 Thread Or Gerlitz
From: Hadar Hen Zion Change struct mlx4_net_trans_rule_hw_eth :: vlan_id name to vlan_tag Change struct mlx4_net_trans_rule_hw_ib :: r_u_qpn name to l3_qpn The patch doesn't introduce any functional change or API change towards the firmware. Signed-off-by: Hadar Hen Zion Signed-off-by: Or Ger

RE: NFS over RDMA benchmark

2013-04-24 Thread Yan Burman
> -Original Message- > From: J. Bruce Fields [mailto:bfie...@fieldses.org] > Sent: Wednesday, April 24, 2013 00:06 > To: Yan Burman > Cc: Wendy Cheng; Atchley, Scott; Tom Tucker; linux-rdma@vger.kernel.org; > linux-...@vger.kernel.org; Or Gerlitz > Subject: Re: NFS over RDMA benchmark >