Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965724AbbKDRXk (ORCPT ); Wed, 4 Nov 2015 12:23:40 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35882 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965625AbbKDRXh (ORCPT ); Wed, 4 Nov 2015 12:23:37 -0500 MIME-Version: 1.0 In-Reply-To: <5639F2E3.8090101@mellanox.com> References: <563233D7.90808@mellanox.com> <56376889.2080908@mellanox.com> <5639F2E3.8090101@mellanox.com> Date: Wed, 4 Nov 2015 22:53:36 +0530 Message-ID: Subject: Re: RFC rdma cgroup From: Parav Pandit To: Haggai Eran Cc: Tejun Heo , Doug Ledford , "Hefty, Sean" , "linux-rdma@vger.kernel.org" , "cgroups@vger.kernel.org" , Liran Liss , "linux-kernel@vger.kernel.org" , "lizefan@huawei.com" , Johannes Weiner , Jonathan Corbet , "james.l.morris@oracle.com" , "serge@hallyn.com" , Or Gerlitz , Matan Barak , "raindel@mellanox.com" , "akpm@linux-foundation.org" , "linux-security-module@vger.kernel.org" , Jason Gunthorpe Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 22 On Wed, Nov 4, 2015 at 5:28 PM, Haggai Eran wrote: > On 03/11/2015 21:11, Parav Pandit wrote: >> So it looks like below, >> #cat rdma.resources.verbs.list >> Output: >> mlx4_0 uctx ah pd cq mr mw srq qp flow >> mlx4_1 uctx ah pd cq mr mw srq qp flow rss_wq > What happens if you set a limit of rss_wq to mlx4_0 in this example? > Would it fail? Yes, In above example, mlx4_0 device didn't had support for rss_wq, so it didn't advertise in the list file that it supports rss_wq. > I think it would be simpler for administrators if they > can configure every resource supported by uverbs. If a resource is not > supported by a specific device, you can never go over the limit anyway. > Exactly. Thats the implementation today. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/