From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756870AbaEIPOM (ORCPT ); Fri, 9 May 2014 11:14:12 -0400 Received: from mail-ve0-f177.google.com ([209.85.128.177]:57111 "EHLO mail-ve0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbaEIPOI (ORCPT ); Fri, 9 May 2014 11:14:08 -0400 MIME-Version: 1.0 In-Reply-To: <20140509140536.F06BFE009B@blue.fi.intel.com> References: <1399552888-11024-1-git-send-email-kirill.shutemov@linux.intel.com> <20140508160205.A0EC7E009B@blue.fi.intel.com> <20140509140536.F06BFE009B@blue.fi.intel.com> Date: Fri, 9 May 2014 08:14:08 -0700 X-Google-Sender-Auth: eKc8nDbW9M9Td7iPVwzE6uEAdB8 Message-ID: Subject: Re: [PATCHv2 0/2] remap_file_pages() decommission From: Linus Torvalds To: "Kirill A. Shutemov" Cc: Armin Rigo , Andrew Morton , Linux Kernel Mailing List , linux-mm , Peter Zijlstra , Ingo Molnar Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 9, 2014 at 7:05 AM, Kirill A. Shutemov wrote: > > Hm. I'm confused here. Do we have any limit forced per-user? Sure we do. See "struct user_struct". We limit max number of processes, open files, signals etc. > I only see things like rlimits which are copied from parrent. > Is it what you want? No, rlimits are per process (although in some cases what they limit are counted per user despite the _limits_ of those resources then being settable per thread). So I was just thinking that if we raise the per-mm default limits, maybe we should add a global per-user limit to make it harder for a user to use tons and toms of vma's. Linus