From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F69BC433E3 for ; Fri, 24 Jul 2020 11:35:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE42F20767 for ; Fri, 24 Jul 2020 11:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595590536; bh=oE2TeI9Ac2Eo+loiF/w+ivBr3WxIXjw6xZlLWuFn5V0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=sdzQgyJuuwOPeTr36yMkpPZCELBjxCScKmOoJtOeND6Kdaat9KvjF7fQtqg484WDy qp9D1R/ras1tBgUiXENikmzZPj/Vp2CS7SgNFc50OkpVO8Ts270wk+q49wzMJA3fzd oK0SRPbEvfOuwAhfLyDxFV9SgpyENf6VboEpv8oA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgGXLfe (ORCPT ); Fri, 24 Jul 2020 07:35:34 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:41232 "EHLO mail-ed1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbgGXLfe (ORCPT ); Fri, 24 Jul 2020 07:35:34 -0400 Received: by mail-ed1-f50.google.com with SMTP id c2so951990edx.8; Fri, 24 Jul 2020 04:35:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vQEzWbMpqfBFFfZHk6MrbUvuK+Pg0nDtdn7/73b59ek=; b=ULMgnHJCc9ndYrczgcWu7HjaK1D2z6n0a0uNhxY0e/ujxrbw2dVLCiKyQPAHrnZLKz sFr4Fg7E3KcTdVYDmCHMmG+4x5cCeFQG9bYc89mLAFfSjtTzPqWJpTjXUhK7ZvMmKV11 VHIZIZ3Tv121JUq2xLU1cY5oFul4LbCQajzelPnSgI/KOftQIfaE91SZssdqE4jonu7q 3ME0GCJlzrDpl96FCaKp+vn0WqNTt4pNJVPvFE+d0XyiDqvrP17V+YAh4kvDC8rJUMMY 7/uyaYxA0griyV8PGw5w+Sxw23SlD77+oiCwK26fDeE19ZPR2C0wYjITIDfUUTxsgkiL pp4w== X-Gm-Message-State: AOAM530r6AdGulB9YfhCxeVAqES1MPvxFVxQY4pk9UofipsECXTlO7Yy j5ktalLhouJXTVIl26CqI5c= X-Google-Smtp-Source: ABdhPJxZeRaF8wBVp/96IA7pcovFXsVEdMc8azrBIuC+gEhhLihno21Zmwh3HzkLSdPLz8P7ONNtPA== X-Received: by 2002:aa7:d90f:: with SMTP id a15mr8235565edr.86.1595590532568; Fri, 24 Jul 2020 04:35:32 -0700 (PDT) Received: from localhost (ip-37-188-169-187.eurotel.cz. [37.188.169.187]) by smtp.gmail.com with ESMTPSA id by20sm499447ejc.119.2020.07.24.04.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 04:35:31 -0700 (PDT) Date: Fri, 24 Jul 2020 13:35:30 +0200 From: Michal Hocko To: jingrui Cc: "tj@kernel.org" , Lizefan , "hannes@cmpxchg.org" , "vdavydov.dev@gmail.com" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , caihaomin , "Weiwei (N)" Subject: Re: =?utf-8?B?562U5aSNOiBQUk9CTEVNOiBjZ3Jv?= =?utf-8?Q?up?= cost too much memory when transfer small files to tmpfs Message-ID: <20200724113530.GH4061@dhcp22.suse.cz> References: <2E04DD7753BE0E4ABABF0B664610AD6F2620CAF7@dggeml528-mbx.china.huawei.com> <20200724075508.GF4061@dhcp22.suse.cz> <2E04DD7753BE0E4ABABF0B664610AD6F2620D4F6@dggeml528-mbx.china.huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2E04DD7753BE0E4ABABF0B664610AD6F2620D4F6@dggeml528-mbx.china.huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 24-07-20 09:35:26, jingrui wrote: > > On Friday, July 24, 2020 3:55 PM, Michal Hocko wrote: > > > What is the reason to run under !root cgroup in those sessions if you do not care about accounting anyway? > > The systemd not support run those sessions under root cgroup, disable > pam-systemd will not create session/cgroup, but this is not safe and make > systemd-logind not work. Could you be more specific please? -- Michal Hocko SUSE Labs