Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbcCFIxi (ORCPT ); Sun, 6 Mar 2016 03:53:38 -0500 Received: from mail-am1on0066.outbound.protection.outlook.com ([157.56.112.66]:6992 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751138AbcCFIxa (ORCPT ); Sun, 6 Mar 2016 03:53:30 -0500 Authentication-Results: spf=pass (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=mellanox.com; Subject: Re: [PATCHv9 1/3] rdmacg: Added rdma cgroup controller To: Parav Pandit , Tejun Heo References: <1456859137-13646-1-git-send-email-pandit.parav@gmail.com> <1456859137-13646-2-git-send-email-pandit.parav@gmail.com> <20160302173949.GG29826@mtj.duckdns.org> <20160305125215.GC3567@htj.duckdns.org> CC: , , , , , Johannes Weiner , Doug Ledford , Liran Liss , "Hefty, Sean" , Jason Gunthorpe , Jonathan Corbet , , , Or Gerlitz , Matan Barak , , From: Haggai Eran Message-ID: <56DBEC64.6090805@mellanox.com> Date: Sun, 6 Mar 2016 10:37:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.0.52.254] X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;AM1FFO11OLC010;1:6341zMhYOtT8jzvAPk1NTS5zibxW6YuVsCK67m+RSoudokuwXWg3SpFT3eXCK34/f1Ru2aK7Ss7TaBIflx9125wvR7VwRczeI3hc3HAL4FlkxmGb7vq6Fmjys+mBDwMHW2HHZxJ9QAWyCFoU6C0qzmjp+eN9fqo66j1pZll8hcNb8bzSBR7RAue/mivDdTXdXMS7tVnId8qwPw1BBZoaQrHMnEvcAPonIOwBFaRcrBGz5xDAIl1Q95SL0Ris7B7GOAZt+iQ3/LxO+LY5J7BhXH0fmgoFeGLCBbMNjoxbB3S10zLyFapI8ZQLuW0/udIMVUzY/U8yH1yLnL688e6yN8h+K5Sn8StjxCZ241RwaJI39jFfWy/zkyWYoqUlqGU1qTqTkJGc2XbqcX3CpoQYM4Hpt6kYcA2J5jPfHc2OyPuSy94WEAg7Seq0eFw5CwMhzEbEHoeTXJysTOL/vQcZGA== X-Forefront-Antispam-Report: CIP:193.47.165.134;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(199003)(479174004)(189002)(33656002)(47776003)(87936001)(50986999)(65806001)(65956001)(87266999)(54356999)(76176999)(23676002)(64126003)(77096005)(2950100001)(5008740100001)(106466001)(5004730100002)(1096002)(1220700001)(81166005)(2906002)(230700001)(3846002)(6116002)(586003)(4001350100001)(189998001)(5001770100001)(50466002)(92566002)(36756003)(11100500001)(93886004)(6806005)(83506001)(86362001)(3940600001);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR05MB129;H:mtlcas13.mtl.com;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB129;2:zY37ppCBbdEjnnM98MMN2sLpK30LANGTDxR4BqyG8P4Ezkve55Dn60ZYgLS2UKo3Y8H39c9D96pAjQUxtPu1iWw8yr3pYNyKZF0LN6Uhg0OVQ8TOIiQicVnH1D/i/k9hXVyVIlYxsViyRrkd70vmJg==;3:YqJwRD1DnZPhuA4PdnzaEgBOH36DY4f2ma7/PhZk04JOh1EgNKdwJ3SyFC5k/UqdfVPOjMLo9QcSSnse4m2mDi1fwElVjmFbqm5Y+K/5+xHLz8UizbJjsm05ymtlubxudVZ+q/NOzYXufDp6luPUmLxaA1uVAcHIpsMZLu7Tb7TZsRPycnlFLxICgRsO7KLmWwY2beSEZ8SFkjxn80G0oQVKYpTsAcYO2H9F6mEwfnEkxXSpWNv+w+zsXmY33CwrxqBbdTVSWe0e3oNmx1EbUw==;25:zVaAOhq96OdtS7+5ia9tMwfxaGIx5qe4/2acUaD1J8Ee0Uz+AaD2eo82ZZqpIvbsHapW1t+LGCqnZ/N3hucRky0elq1ZvL9waBHbsvvblE38r7wwtJJ9T00OSMAi1DtIoBieepOwdk+0vof+JedMBF8vbq2cFwRVT9Jg2HqWAHcyLcXhXnaOo1CGdzmYtA0WGrKUezU4cTfJ/yyxlXEPngqMjWRJ01MeWzt9LP9VP+WirPY52HeZdm/aob9iEYehlzxrUHOxcUfLAK6YycYc8ogJhtFbmymj6tCWNxttUm2o3Z8OqH0PNvZb3QsXVz/dDUlptUGKRF0llOHoXsTQWw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501001);SRVR:AMSPR05MB129; X-MS-Office365-Filtering-Correlation-Id: 66c20ec2-2cb6-4c8d-b8fb-08d3459ab944 X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB129;20:mEMCK8adQpRE6c0KeORAaJukmGwGwgrzpN6Hglk69UJXUz344IGWzLo1shZEtm7rcOAtvYBBjaufpLCTuiUxNmotox+ykW04i4neFOUpk6TvCQqnY62T+Jcv8EiVIcbPaPquTuISdhqyVvZ8HdEs88pdSkeRARlUnDaItjZcedBAPreUtScEu3nzwYM6jzdQ4fOdbpdB812yQt/fFJARz1ihq02gnOrpikgQns/Z71ob+lrW2kpGaBZVPbg+JOJ3ROApN0Ww+sgxgSp/JRQISYnJXsYFrzM9xj9tjqqc7QAFogSCv9JPIjVoPz3j7l7fOKdXm3ATxDqvf5GkDF+Pegszjb6CQsHZAk6K+x4xw95fc84wSp+rMWt6uPCr7sZaZxIvkUY2gU8QrP7dDl+3ZqWg71m1nkr1xxv/tcZQq2CKLtvKy3icp4txGwrYm5ZfLH1xpHVl2ee6rIkdL0/r2Dx4xL3kT3V4QRdVbmj+cTdo/p3WfVKgVgoMw9N5ibWZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(13018025)(13017025)(13015025)(13024025)(13023025)(8121501046)(3002001)(10201501046);SRVR:AMSPR05MB129;BCL:0;PCL:0;RULEID:;SRVR:AMSPR05MB129; X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB129;4:Vl3lyqst1y8mUZbimaJF+QqXJ1UK0wgjfucwiDO/SLTbN3dHJsaNOF+wPBFrHAryY7CyyHe9uofqk1CW7v42tIs70qKZVeiWAVRBF66OSUd9eQtWFbnD4LQg9HGzvUhabOi4H0cfjnRWSw9LjP6JOcigbswK9UeU4lHSnrSVKjwoXTGvkd7RKWz0LZjAWX1l1F1PaZDZl3USTxGag1sqSPUIhzF6vGpoLulYJNNQ3A3r7dPRVqFnesAG8l2jkIRQKngCmXKykOaRs5ZgsZzy8e/NrMnXCW2F/frs1NciW886P8MPHURURe1Enx4Vd1kShXm7ycqMPF/bErDaQJlHHRxV18Osb+FUbDyoyz2txTgd2Td8D/XQLPYDIxe08spzV0JpPfS2uVBRQCM+Qp4gCOhUBrRPtKgPxQWn4PxN5lIbXw50uNy+zv5Q+G5BTeL7vO7SB5BPy3R2eqDPunvyow== X-Forefront-PRVS: 087396016C X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTVNQUjA1TUIxMjk7MjM6ZDlzallXUkJMYjRiZTlMSXJ0anNKckkrRkxo?= =?utf-8?B?Snk3aFBtOG9heC9tMXdvZFRnQUhSWGdRYmY4eHlhcVhuOTZ2RGJ5YWx3bmxI?= =?utf-8?B?WXI0VkcrdlVSNUJkZWZpZVd4TS9ndGIzYkZCbEpqckNSYk5yZmpjaGM1TWpX?= =?utf-8?B?bEJ5Z0JrbVk3ZlVicG1wYVMwaWlSMkFCOGNSUGJoTlFzQjF4Y3dxTXZ4UHNh?= =?utf-8?B?cTNENEdDeTRuMmFrZEY0ZXVhNnVMak5mT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Nmw0YldWU2dPNDVZV2RkRVZaejB2TXV6dklW?= =?utf-8?B?Tm92K3B1RXFjUDlzc3VKNHpuWXFmRDZCSWwrYXIwWFdrdFBZN0hHZXFwS2Jz?= =?utf-8?B?Tkk5RUVzT1QzMStOZ3VHbWJ4OFNTRVQ3N29kRDVsa1kvRFJnazIxeDlPbkds?= =?utf-8?B?dGVFVkxkdGRsMGVDcDBhRFYvUElpRTEwZE4reDNsU0ZuOElnOGMyd0RDVllo?= =?utf-8?B?RmNyVEtCZGpweFpxVGdMdU1FK0pDaWZIUUJuSnZCZ1dJMDI3M3h4LzNFY21T?= =?utf-8?B?Q3F1aTEvTWtvLzhzcTA5NE9oR0daczVkOGlIWDU3dDlhZzBjeVY4dndqcEN1?= =?utf-8?Q?36mveb6HTtUP9qa6w/rzSwZI=3D?= X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB129;5:rl+/DYVW7Vo57+2jaJbp97J3HHkQ35vfWeGZtqRCh7iaxpBIfiTpEReDka0O5oa6VgqTr439Uo7H2+nqIskZyEclZn3L7Ieayo+Hh8OC3aO504ynQsHHMBicA9KEq50YDHi1nn+fNRDBlIooK3VfDg==;24:MtGbH9cYgqtx5tkHHVHQzn6QkAwWqDDFpL7yQEiwgBKq9RVGkyqhQmViW4I/2+KjovKOwtDCLT3nPjY4i3k525DttA0uNTn220CgVz/S1N4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2016 08:38:42.3224 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR05MB129 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 506 Lines: 13 On 05/03/2016 19:20, Parav Pandit wrote: >> > 3 is fine but resource [un]charging is not hot path? > charge/uncharge is hot path from cgroup perspective. Most of the resources the RDMA cgroup handles are only allocated at the beginning of the application. The RDMA subsystem allows direct user-space access to the devices, so most of the hot path operations don't go through the kernel at all. It is true though that for some applications MR registration and de-registration is in the hot path. Haggai