From patchwork Mon Sep 7 20:38:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parav Pandit X-Patchwork-Id: 7137741 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4356EBEEC1 for ; Mon, 7 Sep 2015 20:40:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73015208A6 for ; Mon, 7 Sep 2015 20:40:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87E04208AD for ; Mon, 7 Sep 2015 20:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbbIGUkb (ORCPT ); Mon, 7 Sep 2015 16:40:31 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34424 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752066AbbIGUkA (ORCPT ); Mon, 7 Sep 2015 16:40:00 -0400 Received: by pary6 with SMTP id y6so3947860par.1; Mon, 07 Sep 2015 13:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g4gZMdk+OEayv3wezSLB2Dwbb+Hystul42o5P6rPaUU=; b=EppaMtX8Lh9Oe1tEVOwdXqSJfibWWXUIdd2D4jshQEJDZPgqJV3t82xJbRHwOQSK+8 hG8Fc4EdpLCP4jQV3O9l+wJRYhflVvpUbHbNv02ZD/jj60Lo+eFMhAoRq1e49OslMQBQ K8lIbQ+wvuI3bSq16j/T6s2psfrenz+ErqUTP0jCWKKLhe9D7t3HWZ+zGQ7AOjaWpExU aqWtg/s/JtzvjAlRnAr9KjmKobkgmvJ5dIJ77xIX+PHznyLaQyK/U2Nu/dGrLwp2a756 30SmUXa/JMrqjNdEqNTBbk/rOJcbRwopnsMGpZQYlam3KgPChXJJUipOwUqvzMCwUlKI kmmA== X-Received: by 10.68.203.66 with SMTP id ko2mr49049993pbc.81.1441658399409; Mon, 07 Sep 2015 13:39:59 -0700 (PDT) Received: from server1.localdomain ([106.216.129.226]) by smtp.gmail.com with ESMTPSA id h15sm772673pdk.29.2015.09.07.13.39.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 13:39:58 -0700 (PDT) From: Parav Pandit To: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, tj@kernel.org, lizefan@huawei.com, hannes@cmpxchg.org, dledford@redhat.com Cc: corbet@lwn.net, james.l.morris@oracle.com, serge@hallyn.com, haggaie@mellanox.com, ogerlitz@mellanox.com, matanb@mellanox.com, raindel@mellanox.com, akpm@linux-foundation.org, linux-security-module@vger.kernel.org, pandit.parav@gmail.com Subject: [PATCH 1/7] devcg: Added user option to rdma resource tracking. Date: Tue, 8 Sep 2015 02:08:17 +0530 Message-Id: <1441658303-18081-2-git-send-email-pandit.parav@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1441658303-18081-1-git-send-email-pandit.parav@gmail.com> References: <1441658303-18081-1-git-send-email-pandit.parav@gmail.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added user configuration option to enable/disable RDMA resource tracking feature of device cgroup as sub module. Signed-off-by: Parav Pandit --- init/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 2184b34..089db85 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -977,6 +977,18 @@ config CGROUP_DEVICE Provides a cgroup implementing whitelists for devices which a process in the cgroup can mknod or open. +config CGROUP_RDMA_RESOURCE + bool "RDMA Resource Controller for cgroups" + depends on CGROUP_DEVICE + default n + help + This option enables limiting rdma resources for a device cgroup. + Using this option, user space processes can be limited to use + limited number of RDMA resources such as MR, PD, QP, AH, FLOW, CQ + etc. + + Say N if unsure. + config CPUSETS bool "Cpuset support" help