Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5649971pxv; Wed, 7 Jul 2021 08:36:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl+j57ZTJZXFxIsCTAUBFa7BLwJ7MU2DR4E36avGVROHHEleKx8XjqSJ0SaHetB6K3TEEb X-Received: by 2002:a17:907:1622:: with SMTP id hb34mr14082382ejc.255.1625672213544; Wed, 07 Jul 2021 08:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625672213; cv=none; d=google.com; s=arc-20160816; b=0ZdN6lqM8F44O9sk8YrHo6wZzlicandZx8ajAQLrAqNEA1HurRym1h70e+1QnLxEkI paou7N8r3P9nXqhBP4ag+ni4pCjbPFxai9vHgH9Efgox+T9hgvOAhSnM3MojdhROFCN4 Z6O9iF3w4TPsrjgv0jShu2U8qjaFDP64sqhhvCR1zy+GD6X6yJtICfIqsrP4tzlb2ef3 MKKYJTy4nRMaHlv5KLV3Qfn7x8nMzzW91XofSo0kmT96ndtEgdo3ltKQHHccKbJtdHXo zFon88ZfcWCg3LUHjhsCKTqBWfkukq6EouFSHPZ0GS1nh7jZ8Zf6cu4fBy8uIfMS3XOg cBng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=YvjmMvDpczJUOj6MRPrVMSwe4+RsIZimfDsJ8UxpWfc=; b=g+0Db4GPiKS/CPLP5dYLGF0kch7U42Kg8z4UGTopC2R8dAmPSw44konoh5KBA2TjS3 iQ6Hh6JqfMbhHRBEAbj9jkcluXQtzlYTXdXyCewaeaDKZ0cRR6ELPNUcXPxR0EDOqSTq m6ZnvL8++RhgJxaFxGDji5lkoqy5Jcp9ANDpbSU93kqZG33IgjPzB9k6+RJknSvK7vdU lN+3AAwC4Zc5w9q3wtw+izxYdvnUfiR+4FUUIl/CiD7eKs9I0io6mlm7oStCEvL8fMSm rnJ2yHTET10mFxt+MHcQtGjptvNEIUCbk+jBp3dGhjfsDqljKCgcSPNvmirthDKce62j C1Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tvInKCoN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si14404714edr.513.2021.07.07.08.36.30; Wed, 07 Jul 2021 08:36:53 -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=@gmail.com header.s=20161025 header.b=tvInKCoN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232147AbhGGOuh (ORCPT + 99 others); Wed, 7 Jul 2021 10:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232050AbhGGOuh (ORCPT ); Wed, 7 Jul 2021 10:50:37 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC09C061574 for ; Wed, 7 Jul 2021 07:47:55 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id u25so2988566ljj.11 for ; Wed, 07 Jul 2021 07:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YvjmMvDpczJUOj6MRPrVMSwe4+RsIZimfDsJ8UxpWfc=; b=tvInKCoNOpOC+YvG2+0TqVANv95mKzSnq6V9suFz+Hd4UqEU4Ys7itHxue76ks7obE UQqE9/+t1X5EBUkcL84GPLoNftEHdiqJjdDuPItFLRdl35x6aShvoicRmIUv0Hnzx5EI NDLNWeWNUm65CJIygNHNOIt7foAlYvkDXrPVJGLhrlWJgj+9qfS7oIITinxrL5K4Ft7Z ZCruFz1qX3x0eN+yBY63CeTioG7vQWSNWoJhUT2ERP5KnHmZQEItUcSf0RMgKYVgtmjJ Ol4gTTHGSVyjT6a6rv0XBIS5CZnrlWvP44/qXnqvbqufQVrzzDVWGiK+AJSk9jkQr1a8 kd0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YvjmMvDpczJUOj6MRPrVMSwe4+RsIZimfDsJ8UxpWfc=; b=fxRx7ztzLsEklZHUDjMn6O3Y6E4Znc8qPqKJbKj3Ufb6M+qZR6w9es9stdVuH4P39g +fVDkf2wYqOMYDmnImMh92gTdCHoJNns+GP5oYKO9Jcf6+jnTkOEKPZjbvqSH56BUI9+ l8tO7E5VHHK+HjECSiH/P0VGOYFmLvbPbLN7z5yTjfWeWu+RA5Kc8wzVcoXb74Q85Hr2 2RbGNm5GUFrlhHorgcKvYW/1TkJh6A1LngAqUsoDyKJV+jTBykMMKkAu3lDIIGTWzeS6 Yen6sX7AJgaymJR/EZaf3JC4YYJhh6fAnfQRH/wC/n6LT1/IDNATPIHtWO6kq4X7So8f 6XPg== X-Gm-Message-State: AOAM531/1sFEf/wjyouDisdzbLls6x/bDA8XxTnlxgq5Jyw0V6jCcjgE +zTfOnmYUHYG6Juy/06yWEo= X-Received: by 2002:a2e:9e1a:: with SMTP id e26mr19810601ljk.265.1625669274105; Wed, 07 Jul 2021 07:47:54 -0700 (PDT) Received: from pc638.lan (h5ef52e3d.seluork.dyn.perspektivbredband.net. [94.245.46.61]) by smtp.gmail.com with ESMTPSA id 70sm1352466ljj.81.2021.07.07.07.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 07:47:53 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Wed, 7 Jul 2021 16:47:51 +0200 To: Andrew Morton , Michal Hocko Cc: Andrew Morton , "Uladzislau Rezki (Sony)" , linux-mm@kvack.org, LKML , Mel Gorman , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Hillf Danton , Oleksiy Avramchenko , Steven Rostedt Subject: Re: [PATCH v2 1/2] mm/vmalloc: Use batched page requests in bulk-allocator Message-ID: <20210707144751.GB1863@pc638.lan> References: <20210705170537.43060-1-urezki@gmail.com> <20210706132653.8374852963b25989e360d599@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 07, 2021 at 10:42:29AM +0200, Michal Hocko wrote: > On Tue 06-07-21 13:26:53, Andrew Morton wrote: > > On Mon, 5 Jul 2021 19:05:36 +0200 "Uladzislau Rezki (Sony)" wrote: > > > > > In case of simultaneous vmalloc allocations, for example it is 1GB and > > > 12 CPUs my system is able to hit "BUG: soft lockup" for !CONFIG_PREEMPT > > > kernel. > > > > > > > > > ... > > > > > > are obtained, i.e. do batched page requests adding cond_resched() meanwhile > > > to reschedule. Batched value is hard-coded and is 100 pages per call. > > > > > > Signed-off-by: Uladzislau Rezki (Sony) > > > > Can we please have a Fixes: for this? > > Is this a fix for any actual real life problem? I mean allocating 1GB of > vmalloc space back and forth sounds like a stretch to me. > It is not a real scenario. I simulated it by the stress-suite tests. So the Fixes tag is not needed, IMHO. > > Is this fix important enough for 4.14-rcx? I think so... > > I do not think so. This is an improvement so that vmalloc behaves more > sanely for those abusers... > A bulk-allocator has recently been introduced, so 4.x does not have it, i.e. this change is not applicable and 4.x kernel does not suffer from it. -- Vlad Rezki