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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL 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 08723C4338F for ; Tue, 27 Jul 2021 22:33:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E326760F90 for ; Tue, 27 Jul 2021 22:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232664AbhG0Wdx (ORCPT ); Tue, 27 Jul 2021 18:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbhG0Wdv (ORCPT ); Tue, 27 Jul 2021 18:33:51 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F13BCC061757 for ; Tue, 27 Jul 2021 15:33:47 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id bp1so217320lfb.3 for ; Tue, 27 Jul 2021 15:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DhOk56syJ49REgl7tdN9zLvJ0rtCnMIghUB5ztLzd68=; b=X9HEBVjB56EM/zdnzOtQqZAcd0A9JsH/VivVb3IjMVcf2q1P2MKr9pSgpwXQw0ADgk 0faL6G3ID3xJJdC1ecfdb5/kqZjJdV9V+Qg4Zg37NfIlS4FHVZ1EuUazf4JyT4dmfhJc 2NtqH75DUU5rRtXBMt4o2ymJQ3zf1x3QCR45bc3EBBx0eNSZM1xf+ProTdk3JMSfWTjb zY69yaw9jmkHrJ70V/jLSd30wwsUeHl006UfdJ4lP7JLhgd+T3EcqgoeBjl+STNS4vyz ugREqEDyNA1GyqnZwjCZaI39uiE0CFbaxtDv+bw0BYDqAsBf4wJDTyb1zh6dmKY+6u9+ 2bGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DhOk56syJ49REgl7tdN9zLvJ0rtCnMIghUB5ztLzd68=; b=mJ512f8ha1L6L4+gpgk9fjDYd4oyTeMg4FO1+AFFutLM7olkfV/5JW9bIlUarvTtmT hnfb+3zJatnLRc7dKL+pbbNrOdKZHitglStBvbJZdzSoe5mYmSpLSfdS9M+47UWhuozX vLM2Awn9VDjTYh8MfPGBQonYiuYnEMsTDU2CCu84A8JVkxp+ZFt4Xg8REhwGg3veYA+f Xgi4chtEUVMR78V0MeqhbrTHf56LV/y/K/7JewPpI7CyFFJpyECrJvB8Y1kwOw5EuR9a 0erds+nhJ+i2Vio7yt6pY+ec/CU6l+8f4VhN1rhb/jc5laj050xlFStbrqL2YMjXoMnR QyYQ== X-Gm-Message-State: AOAM530robP6ToFIPDXgx6trzV372wVDNFnE6JXA5iy5p2nbca0Tu4hB AQdXlu/WSpbPJVnjUf3jqKSmojbubuiwlwnbs5IVbQ== X-Google-Smtp-Source: ABdhPJwXTVZzicFV3Z7sKNaHKaF7p6b/x0f/gWReTDmo37OvJf5DkjUCazLIA326Q1OXtzTtgMFd3G0pOr/fgamd/so= X-Received: by 2002:a19:e053:: with SMTP id g19mr17827672lfj.83.1627425226080; Tue, 27 Jul 2021 15:33:46 -0700 (PDT) MIME-Version: 1.0 References: <6f21a0e0-bd36-b6be-1ffa-0dc86c06c470@virtuozzo.com> <57795560-025c-267c-6b1a-dea852d95530@virtuozzo.com> In-Reply-To: <57795560-025c-267c-6b1a-dea852d95530@virtuozzo.com> From: Shakeel Butt Date: Tue, 27 Jul 2021 15:33:35 -0700 Message-ID: Subject: Re: [PATCH v7 08/10] memcg: enable accounting for posix_timers_cache slab To: Vasily Averin Cc: Andrew Morton , Cgroups , Michal Hocko , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Thomas Gleixner , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 10:34 PM Vasily Averin wrote: > > A program may create multiple interval timers using timer_create(). > For each timer the kernel preallocates a "queued real-time signal", > Consequently, the number of timers is limited by the RLIMIT_SIGPENDING > resource limit. The allocated object is quite small, ~250 bytes, > but even the default signal limits allow to consume up to 100 megabytes > per user. > > It makes sense to account for them to limit the host's memory consumption > from inside the memcg-limited container. > > Signed-off-by: Vasily Averin > Reviewed-by: Thomas Gleixner Reviewed-by: Shakeel Butt