Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5359979pxv; Wed, 7 Jul 2021 01:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK85zfExhCzLjJbFTTha1XH/wS+prBAHcqINgF38PFJS/QElojJHMIYtik8L/S3Gvcwbnx X-Received: by 2002:a5d:9c96:: with SMTP id p22mr13618888iop.67.1625647395150; Wed, 07 Jul 2021 01:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625647395; cv=none; d=google.com; s=arc-20160816; b=U7luhJUyvPrdnb9dZ9nixUUNokQVbEB6PWSkePlzcaEHrB+GdTcmGBxt3jFI306VCS rkVquEJx7Qlpu3thve3V6syvxYmn7nHYiPFdMuPSTiO+MlV2UihIBA+1xMhaSwlveSaQ wPZh+lp90h2KvB8FnRb4YYFK3/krg+ci9/yiIA5CqIpphXM6gnPgkTkPCkeoIVLXHuYG urhhPGesndD7ApMA8Zjryy3uFnBtrUVwYYCQnDsUXUhw0jCOGuJPsEon0b/k/qOJr+TW 6RREzphTSfEsoqmlBReK6cjhQoQnNvQi7UkYbk8tnt26kkgzGmM781SLT8RlylfW7/dP vuhw== 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=QkLCW4DkuZu2U5kb03XazVB0P803gy0MwtE2WyaRvuA=; b=JKpqmIx3UYCKP5gxTq4lhktHokhBSkrVhXHmomSOJQP2o4rLfMFbjQ4WrfxPAzcZBk Uz5YOKJChhu0ct2rJ3qO8wchSkBfp/SKYDl197Cvwz3wawEx9PxyuD6eLLr//aFGiMnn Fm0JI76rlc3wgPBiFHwQoMtfBP9vfDrtvabgoOakMAwXdHelidqGLCW4fS7kbGRvOFeX 29uyxgdkdxw/XpZmIaWdelkQAC+O6fLTLFLn3FYaMXmegYVKiZCU0BTloviUAcp67e6R s7kCvhZUH9bg7TatdeO9iqKseDCOkcqC+i2fK1hwJyAt6MBoYc3ZVm8/m52MbkwGVhDm jw6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=PAhMNqpA; 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 t44si83718jal.69.2021.07.07.01.43.03; Wed, 07 Jul 2021 01:43:15 -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=PAhMNqpA; 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 S230145AbhGGIpM (ORCPT + 99 others); Wed, 7 Jul 2021 04:45:12 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:49592 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbhGGIpL (ORCPT ); Wed, 7 Jul 2021 04:45:11 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id CE2D122420; Wed, 7 Jul 2021 08:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1625647350; 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=QkLCW4DkuZu2U5kb03XazVB0P803gy0MwtE2WyaRvuA=; b=PAhMNqpAZQQNQMWGXPV/K3pU6RBD5KeDo/1jcw0nshTSqU4W0C/5I8s0gVFUajxpDz1/x4 +hv5JilYabTkBpN578LwDcInUwniKbGRDr7dVw1u89BZ+u7SshjhWJTJcG1DEXlgEon84q e+6ks4eLHzd7+YDg2QNZC2v18UAY+Qg= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 111B5A3B8A; Wed, 7 Jul 2021 08:42:30 +0000 (UTC) Date: Wed, 7 Jul 2021 10:42:29 +0200 From: Michal Hocko To: Andrew Morton Cc: "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: 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: <20210706132653.8374852963b25989e360d599@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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... -- Michal Hocko SUSE Labs