Message ID | b9d9c222-558d-a3c8-eed3-ad174bc0c32f@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=s1ML=IH=kvack.org=owner-linux-mm@kernel.org> 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=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 60500C433DB for <linux-mm@archiver.kernel.org>; Tue, 9 Mar 2021 08:04:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DA13C65228 for <linux-mm@archiver.kernel.org>; Tue, 9 Mar 2021 08:04:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA13C65228 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 632198D00C1; Tue, 9 Mar 2021 03:04:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5E0E58D007F; Tue, 9 Mar 2021 03:04:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4348B8D00C1; Tue, 9 Mar 2021 03:04:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 2B2438D007F for <linux-mm@kvack.org>; Tue, 9 Mar 2021 03:04:37 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id D6A232471 for <linux-mm@kvack.org>; Tue, 9 Mar 2021 08:04:36 +0000 (UTC) X-FDA: 77899598952.01.0546A9C Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10134.outbound.protection.outlook.com [40.107.1.134]) by imf18.hostedemail.com (Postfix) with ESMTP id B4C0820001EA for <linux-mm@kvack.org>; Tue, 9 Mar 2021 08:04:36 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HfMDCP2bd3MCDIQ8Yez5702uqV2KtOfifqeC8sDxboYg7dZCc8efCqoe0KkVyP+MoTKrJC9Rw2331YMDZFrtG6fpgUY6crEwNcgaQZ+uj76H6rOatBeyXpTp9Am8lU6dI5T5PZu+GP0Nz3/L5W1ME0HFF96xpBQLZhYhYzr07go92vouzqq9zpriLPCDzrtoImUeR4FReJ8xE0sc8Yrwe0vb67B9W5Lzw8F6qHwFLZBv+BcLswK9LmLDlmM8JO58K6TjuA3utPbCH6JPj16VKIK6/f7lts0bdV5CvgKSNZg2//qAdsjbeGqIOCfE9vNxV8g76peYc49O/dW5U4BiTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VAPlJ23nmyUC/3g97olMrSpPlXIx1ZJBbDYNe6ym1cE=; b=U6wW1jDr5NEsvSqw66PNgou18+eDyMDCHQHTGPcoeKHVaMAQFXkA1NGQfVxtK887v+wDBLTiAjahy39Bgfj10aFHSZeKn/9BJSY+UwqXUhI6cWnpVU88Vwu/04pWK3uE0ZZh6bizyhzAuj7vBa2TOcua4DGJj0TeWScv/236v8UKRWEneRrQjhw5hDTXSriJYioVFRYO1ejMIQIccArkfrglliF3QYDk019QjHRRBbbHzBDwjDuZhZu6OhJjZK85Q9uB27NAJjOa8NC6+XoCVbAoRYpwk+T6tFYcCdFmheHSS4SWJn17FD60RQMjhkN0BUEP4bj1TukoCVMGD1ZVpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VAPlJ23nmyUC/3g97olMrSpPlXIx1ZJBbDYNe6ym1cE=; b=j8VAwy80Uqb5L95Fd9+7SCOODVdHayijarY5FJ8bJaKZTc7LyWwpn2kJAI/ZCjdCsNGK96zTzTqqb29v2NvOrOOijhnPqL2sugNzAvHjVNt6RZAuaklMnRx46/38BxiZ1BT+L7Ies70fNSuGagZlJLmtQETW3HC7/IQfLeNIV6A= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=virtuozzo.com; Received: from VI1PR0802MB2254.eurprd08.prod.outlook.com (2603:10a6:800:9c::22) by VE1PR08MB5789.eurprd08.prod.outlook.com (2603:10a6:800:1b3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Tue, 9 Mar 2021 08:04:32 +0000 Received: from VI1PR0802MB2254.eurprd08.prod.outlook.com ([fe80::e4c3:b366:458c:c613]) by VI1PR0802MB2254.eurprd08.prod.outlook.com ([fe80::e4c3:b366:458c:c613%11]) with mapi id 15.20.3912.028; Tue, 9 Mar 2021 08:04:32 +0000 From: Vasily Averin <vvs@virtuozzo.com> Subject: [PATCH 6/9] memcg: accounting for fasync_cache To: cgroups@vger.kernel.org, linux-mm@kvack.org Cc: Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Vladimir Davydov <vdavydov.dev@gmail.com> Message-ID: <b9d9c222-558d-a3c8-eed3-ad174bc0c32f@virtuozzo.com> Date: Tue, 9 Mar 2021 11:04:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: AM0PR02CA0030.eurprd02.prod.outlook.com (2603:10a6:208:3e::43) To VI1PR0802MB2254.eurprd08.prod.outlook.com (2603:10a6:800:9c::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [172.16.24.21] (185.231.240.5) by AM0PR02CA0030.eurprd02.prod.outlook.com (2603:10a6:208:3e::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.26 via Frontend Transport; Tue, 9 Mar 2021 08:04:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3e8bace2-bed3-4092-de69-08d8e2d1f866 X-MS-TrafficTypeDiagnostic: VE1PR08MB5789: X-Microsoft-Antispam-PRVS: <VE1PR08MB5789C5118B6BEB33418B5481AA929@VE1PR08MB5789.eurprd08.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muijSe248Fa9Yt/qA0Vz8U9HmXerToIGe+MXdNSK0u+iqs0WphLaPd6vfpC65+bEaH2NADSjjB0VMHthJ7VN3LQnpRxlkK6tDzWi5lsRohm4k89OaJkfK35Qn8nBzleEr8FVYKBzmLSZAdLzdAa5OBFZDX83dxgLwDhONFkGVZAlgZXFyanKvLoqBjlZ/xyT0D4VHX+P+gIXZX8uurqsGpTGiIYV8R9jTKOucylBxX2/pq2zXbUBspUF8HtGKifPWSAVBcEVSSiGyWQQ/lb7mCNlOz30G5QM9KzXjuQ8Uu7wVLa8EpXb9vyJ08ao1pchLO/mjSzSrkJITNVJsw47vZalT+3G2F8LmQibQrM1S1FPcQKSMNv0xW+Zyy4woYGXjXLDCqNZRcCLUwGRqmsE1ii+kXLAIudIhlRTabYVOwDufnSXPnJa3h9NPG6AROtzAvpjSRHml2DuYxwRe0rAmJ4Mu66zfnFGkW5SPY/7S5WHqTI4dDdFM7CXXz0EbU/xWbUkOzEzgNmhR0eeYU2Ue9hx5bIw9hNIPVAkYAWnBOe2fYuxwtRm8M9Qtxo0FTrTJAmsp73jscyY7L2XJ4LvOnyri9kPuFqbQtawHXClVmY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0802MB2254.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(396003)(136003)(39840400004)(376002)(26005)(54906003)(31696002)(66556008)(66476007)(66946007)(36756003)(4744005)(186003)(4326008)(83380400001)(86362001)(478600001)(8676002)(2616005)(5660300002)(6486002)(16526019)(2906002)(8936002)(31686004)(16576012)(316002)(52116002)(956004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?ZfxRKhjeBxdNJNhThcNsmCxiBia9ou?= =?utf-8?q?XRrCgyA7VnlhOePBrdRLaES2d60vuYcPCyJ9IOwKNg4N1SEEy4ZGfonQQBHPuR8MO?= =?utf-8?q?TAPvFYZ62nW1XHBMYaKUSMm6TfHqr4FW9B3kZqYxvV2vH8FccB/5EJlK+Il46j9ZY?= =?utf-8?q?Ci4mVuafp/d2yV9l+vL8WTI78tXHKEsg7whXa4CDjERaNrM4kafWV92pYvvKj7uXc?= =?utf-8?q?JeAjAtQiXIZLXR9YSTLKBfCb86uBuXJfECUtS98AAquH9kfHoOyNh8P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p?= =?utf-8?q?O5IG4+mNmQkbvZARhngCh9IL6+WpJqH0uH7l5HeK4988wpiCrLzzTFH6JXQ5ijNlo?= =?utf-8?q?EnINMl7K0/Ecq+r5BChqKs/WRospzPUasOCH0N2bk1E73bj8TG04vX0vOqSo6GgGL?= =?utf-8?q?braZMlHmPhUIU0?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e8bace2-bed3-4092-de69-08d8e2d1f866 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0802MB2254.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2021 08:04:31.9237 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jkDc5DsoLp9Qe+CWuIGIT9NofGE5j+0P4jaN0AwpJZWpSihFGljlrQZpvpYqoulob5zN25cVrs+RnOGcf0ny7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5789 X-Stat-Signature: knsd7ykhcwsbuye8bt4qkwwjgo5p9898 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: B4C0820001EA Received-SPF: none (virtuozzo.com>: No applicable sender policy available) receiver=imf18; identity=mailfrom; envelope-from="<vvs@virtuozzo.com>"; helo=EUR02-HE1-obe.outbound.protection.outlook.com; client-ip=40.107.1.134 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1615277076-977117 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
memcg accounting from OpenVZ
|
expand
|
diff --git a/fs/fcntl.c b/fs/fcntl.c index dfc72f1..7941559 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -1049,7 +1049,8 @@ static int __init fcntl_init(void) __FMODE_EXEC | __FMODE_NONOTIFY)); fasync_cache = kmem_cache_create("fasync_cache", - sizeof(struct fasync_struct), 0, SLAB_PANIC, NULL); + sizeof(struct fasync_struct), 0, + SLAB_PANIC | SLAB_ACCOUNT, NULL); return 0; }
Objects can be created from memcg-limited tasks but its misuse may lead to host OOM. Signed-off-by: Vasily Averin <vvs@virtuozzo.com> --- fs/fcntl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)