Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp876970pxf; Wed, 7 Apr 2021 13:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfJkbnrtMlnTZBvqFpuNv6NWDDiFQRWRinq4Rk5z50XHoUfK/ri5ZjMhhu8pJlKgyaYGLN X-Received: by 2002:a92:da88:: with SMTP id u8mr4520647iln.241.1617829005433; Wed, 07 Apr 2021 13:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829005; cv=none; d=google.com; s=arc-20160816; b=P/1MAhmfyhMCnS226d3j9FRCItsACO9dOBkfaPVxQyheI7DWLOyftgo0IZfipHiQ1z Ckn16H8JfRREvgu95sy8PgSbSKolCEwDmrF0za+CyVtT8vJHzboiMnMYvczMEl70CEVr DpUOJLMW1BmavOTVgVPsBfuARttGbUiIt+z/tLbv7iNxDt2y7z1Oxl9cbJMRq6GYEp2a dpotwGeoyB44BgkYItIDlJ4b5oTRSXy8lCyW5RkQ+kUmWq2EpKYcsysJlSgG5LaGvLNS l9JQ8YEtuxP9aM4GcGW9AGKYcfZ0ZHclytzDoyeNtPlVPRaIj+BrKoW2nyAerucr03eL aHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ddpRdKT9wYCe24wptl48nZTWB76xl1PPFUiBI9ZFlHc=; b=CTflHck4Cx75ANBWyB+u6aL3FXs1KhjF98RSOgy1hg9SEH8T/kXdeAVBv90EuaPiCm FYpnsSzDctinAE37y89EskrUVx8jO+8v6v5bvSoc1PRAn+YwoUHmHO8WXR7n9gRKx/EM voZjoOCbXQVLOD1+yr/Y17ZjKZwRM9RBlZE0VurXO6/BuVfcnoUr57Pq0rI1T00tyvQ0 BXeOIywwq/wZCjSwg0JYDcAFRuswkR15JvmVa40gXtxxIUiYKADVhjLTzqq+xJK2/B+6 kOqUsl2BgCA2Lh1/C9Rqwuf9q/Dqi/MCrtNt/lRwrwZzdZuTmm0yeeqNv6CJKntz9a2l k/HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QFoOzYFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si12183588iln.40.2021.04.07.13.56.33; Wed, 07 Apr 2021 13:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QFoOzYFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235001AbhDGLzA (ORCPT + 99 others); Wed, 7 Apr 2021 07:55:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:37682 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbhDGLy7 (ORCPT ); Wed, 7 Apr 2021 07:54:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1617796489; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ddpRdKT9wYCe24wptl48nZTWB76xl1PPFUiBI9ZFlHc=; b=QFoOzYFZ0klurN8wSeF86h+RI9rN+UuqSPcBbyy8RJng6XIlHnfWMeTHox7cZfeZt+C5up IdTrJTby1hXTKYzqoM9y5QoZmFJlJcg+lUTdDJxia8mjFwD9liJruBWN6bdZk+jFuCcG3f 0eAeBs4xLCWH7V9RTPR8x4Ev4k5H4Ik= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E116FB12B; Wed, 7 Apr 2021 11:54:48 +0000 (UTC) Date: Wed, 7 Apr 2021 13:54:48 +0200 From: Michal Hocko To: Bharata B Rao Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, aneesh.kumar@linux.ibm.com Subject: Re: High kmalloc-32 slab cache consumption with 10k containers Message-ID: References: <20210405054848.GA1077931@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210405054848.GA1077931@in.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 05-04-21 11:18:48, Bharata B Rao wrote: > Hi, > > When running 10000 (more-or-less-empty-)containers on a bare-metal Power9 > server(160 CPUs, 2 NUMA nodes, 256G memory), it is seen that memory > consumption increases quite a lot (around 172G) when the containers are > running. Most of it comes from slab (149G) and within slab, the majority of > it comes from kmalloc-32 cache (102G) Is this 10k cgroups a testing enviroment or does anybody really use that in production? I would be really curious to hear how that behaves when those containers are not idle. E.g. global memory reclaim iterating over 10k memcgs will likely be very visible. I do remember playing with similar setups few years back and the overhead was very high. -- Michal Hocko SUSE Labs