Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp88200pxy; Tue, 27 Apr 2021 23:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytXczV0TkRm8mljy4HOqTmQn0+wdnbNqgyeMX+e3k53JR5Sb36JTnNYi9E+XLDaOYknVhN X-Received: by 2002:a63:697:: with SMTP id 145mr25181550pgg.450.1619591674402; Tue, 27 Apr 2021 23:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619591674; cv=none; d=google.com; s=arc-20160816; b=byDLSNC8UOgwoWpFOg6hzcsE40EA0EugLjw0JgO2nPMa6eLtfiXCd9Q/yr4xwHLriu VV95MCf4Ji3SOutkQ4oEkiOCDsQf/hx/QkyjVwQT8xaeFC7dh4ZCJVVQw1tcZs7rSro5 Rh0Nuv1P26apfPCxw5vehQrK0wWSVKSeHcgmydEfgX5HaD7HNJuTNgk2ZsFPnhd+j/C9 ViMhkkeoVsVn6exsqgwBlVHjZza19IVs92xD59tvSThr1EhyOeB2Q6Sqn4cuTno3vLL2 jBkcZ4hB5g2f08eykyDa3WT6fzQX+lv5DdI2D3i3meWQ8P1l9z164AJ28xgsLprVr1D5 QOeA== 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=0ZhVc13i/loE89OYYNbTCn+LJbpHgfesQUl3vFUzU4w=; b=Mqc0tVtSrbaYVsoc/FdYg5YhxbDHbxDTQs0VnxMDGPWLh3rauqWBN7QieS6o+Vdx9o d8MXKpx4YbhDLf+zmeYbBqkRxdA1sg83w1d2oDuDSv3Qolmk+sE6yT4ct8utxQwXeV0u QT0Llv/1QfS4KS5fSmXJC/8FD/Iqs3OdWh+a+UkCfySGFnnewRqcmVdLXvPekTNDuLgQ lW5oMYbLacvvaqbcH3sIcs03fUxZy1KUsxvnKMEWtyMtsYZ5Fo9AedxxGmUeHUJS50Rl 8+gI6GV0mohJ1iYa7InJ0R/07pnBC5x0n4OeDO5USJVXPG6yUVNMb2Rk9RN1eHwSUtKt 8YcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=hcsbUVWZ; 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 w3si2587401pgi.1.2021.04.27.23.34.22; Tue, 27 Apr 2021 23:34:34 -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=hcsbUVWZ; 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 S235302AbhD1GeZ (ORCPT + 99 others); Wed, 28 Apr 2021 02:34:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:51226 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhD1GeY (ORCPT ); Wed, 28 Apr 2021 02:34:24 -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=1619591619; 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=0ZhVc13i/loE89OYYNbTCn+LJbpHgfesQUl3vFUzU4w=; b=hcsbUVWZOVa/VD7u1r+GmF/lDktHCL3s1g+57QapM1T1z/kS/fIVhq2dmbzUoQQ1SkD5P8 jq0XFt5nGtr5WpT2823UcVhheb//TC4a0GNGLkTr+bmBbrLPca+VmxIZWE+D68CsXk/Ul8 PtTpuvnPR6+vo9WXfNBwN9/fguwpXfs= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 803C9B05C; Wed, 28 Apr 2021 06:33:39 +0000 (UTC) Date: Wed, 28 Apr 2021 08:33:38 +0200 From: Michal Hocko To: Vasily Averin Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Dobriyan , Shakeel Butt , Johannes Weiner , Vladimir Davydov , Andrew Morton , Dmitry Safonov <0x7f454c46@gmail.com> Subject: Re: [PATCH 2/2] ipc: use kmalloc for msg_queue and shmid_kernel Message-ID: References: <70805e05-5e56-2ab9-2654-3d48e9fe5a0a@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70805e05-5e56-2ab9-2654-3d48e9fe5a0a@virtuozzo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 28-04-21 08:15:10, Vasily Averin wrote: > On 4/26/21 1:25 PM, Michal Hocko wrote: > > Using kvmalloc for sub page size objects is suboptimal because kmalloc > > can easily fallback into vmalloc under memory pressure and smaller > > objects would fragment memory. Therefore replace kvmalloc by a simple > > kmalloc. > > I think you're wrong here: > kvmalloc can failback to vmalloc for size > PAGE_SIZE only You are right. My bad. My memory failed on me. Sorry about the confusion. -- Michal Hocko SUSE Labs