Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2177322pxj; Sun, 16 May 2021 17:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH52zsGFyyZliHsrPEUE/dDnVk2ZeIshm2FzNHAF24xQrzorborLnnArIDQwIHgRU5CbQ6 X-Received: by 2002:a05:6e02:20ce:: with SMTP id 14mr50168976ilq.102.1621211220317; Sun, 16 May 2021 17:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621211220; cv=none; d=google.com; s=arc-20160816; b=cBKcEAAuuY1UlPMUQ+7NwqZ4tYLz9PboHw15ddkAcRoDE+YA65XHBmCzMC59mJ7aBW twXSdmZ2WJU9pG7VhSWccZ15Zm6Cl52mAXIiwVxdqtprVjkIs/vKxPGxLAqJuAiq1WR8 FT/1Hznne+lXg4+ybreJtirThC9wf74V4F7ZS0GVh8VZ8SNXEgkIZr1VzduKxiAhX04S jcsRhq5vv84Qjv9v7FHDgT65WcswpGcUOzhc/o/PkOyIb5FPYRfr5NSUJQjabKfwizNM 4LHfE0Z0vI26uRjo9JV7xHJYv9pIex7nMJVS2wUMYWEnfQgl0fEI7+FksLFrIwAtcjVd zaKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ftlbpKyqwT0RJWIAe0hR3P6y0TcUKvWKDzduTTWn2Fg=; b=txpRxG8mk5z5GRoQkqaNg/iXUqO+iYYCHcNXsl2NWXlUnV/M8uYqKgTl4IG/J4QdKZ Uj+hiXL/77DUvF0/2awSmU1wLy++P6VeplN+R0weovDVhIbNoCMzxuqPgxVvXtw0J+pA rEZUJScFUaHOVPhTLm1lRUwauRzmYn9ezctJpB9l1nolU+HdhZWH8PIR22+ap80QvxeG RJMCnufLrZEnf79tR6y9QD9BIEzPP1meagw4HIQmR4H3I/zADrlhNoNc6eCfQY8TQtYy JvsvEnt/s68/+CViePg7o9g4FshkeW4eK41AwyJ1eGVIv8E2AJxrbYQm26IwonbQvOCt CcoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lieanZqL; 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 t4si19024032iom.3.2021.05.16.17.26.24; Sun, 16 May 2021 17:27:00 -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=lieanZqL; 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 S233327AbhEPUWY (ORCPT + 99 others); Sun, 16 May 2021 16:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbhEPUWX (ORCPT ); Sun, 16 May 2021 16:22:23 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D54C061573 for ; Sun, 16 May 2021 13:21:08 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id s25so4709752ljo.11 for ; Sun, 16 May 2021 13:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ftlbpKyqwT0RJWIAe0hR3P6y0TcUKvWKDzduTTWn2Fg=; b=lieanZqLCLS2LxP9L02DVSLudXXd7PRMTH6t3WR9+JM+RBJOFnmYxHffww3ace9rFQ p6WP8/iqS4geaNxxt/o0sjvuncrPKb0fKBEQRB7Sy23AY0frBsPBGvGerLVAGHi6qVHw RHJ1mjs5MZvWLYpvR9gkQ4WEu3AHOEKMHH1+n/Ied465UQY2K3d5aN5i8rkkHUMjIiV5 NVSHaBdXf9hF9P+2dJnTb5/ETaOwWROj+xGXZuGewUAkWt3Ao5la106TZ81nyKhaUzMr iJJIHgk/WFgoGXJhiNnXyWXSFmcv/Vjc8AVGJqVdSiKq92Y1KjAXlv2pqnn/SkGFE63v Oceg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ftlbpKyqwT0RJWIAe0hR3P6y0TcUKvWKDzduTTWn2Fg=; b=UpTrWmDeBXAml4GAkHhhHy6dAuQbbbQzVC6FxyZTcgCAh8GkKt99c3dvAsO/lEYJoU nzqyLNmmKIUCXek62bL5F4Il3WUxickUDEJcLPjRaJRc6QYYiZU7mcY1gQnWCgqZB1sT Yd9gMcACwf1YEInkHl1yLun9vMpTf2+xkRJWyE0d2hZbYA+OwKcMJ6JddgmJFJ7607sU iilgIm117NCEMg/l+6aT6E3SppqbQM52dd9Pp4T6qrbT26qXh6VGLFnjQFy1tu3wJ8HW 0lwfpJFX3xGLNrKX6m9ljSoBwMszmSAejPPW9qxUHHzIj2vJkwX4PP05S2cTAGyD7hwv ie2A== X-Gm-Message-State: AOAM533EUGWnpW17ZQTkB3SKbUGC5/02sAfNMCJsh3S4LlCI5kyXobAI amErhVWSGafgnRYBfetn+Mk= X-Received: by 2002:a2e:91cb:: with SMTP id u11mr41546365ljg.83.1621196466691; Sun, 16 May 2021 13:21:06 -0700 (PDT) Received: from pc638.lan (h5ef52e3d.seluork.dyn.perspektivbredband.net. [94.245.46.61]) by smtp.gmail.com with ESMTPSA id y28sm378195lfg.210.2021.05.16.13.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 13:21:05 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Mel Gorman , Matthew Wilcox , Nicholas Piggin , Uladzislau Rezki , Hillf Danton , Michal Hocko , Oleksiy Avramchenko , Steven Rostedt Subject: [PATCH 0/3] vmalloc() vs bulk allocator v2 Date: Sun, 16 May 2021 22:20:53 +0200 Message-Id: <20210516202056.2120-1-urezki@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. There are three patches in this small series. This is a second iteration. First one was buggy and leaded to kernel panic due to passing NUMA_NO_NODE as "nid" to the bulk allocator(it assumes to have a valid node). Therefore the patch number [1] adds an extra helper that guarantees a correct numa node ID if it is not specified. Basically saying when it is invoked with NUMA_NO_NODE. A patch [2] has been slightly updated, the change-log is below. V1 -> V2: - Switch to the alloc_pages_bulk_array_node() helper so the NUMA_NO_NODE is correctly handled(similar to alloc_pages_node() API func). - Use "while()" loop instead of "for()" for high-order pages and increase number of allocated pages after actual alloc. Uladzislau Rezki (Sony) (3): [1] mm/page_alloc: Add an alloc_pages_bulk_array_node() helper [2] mm/vmalloc: Switch to bulk allocator in __vmalloc_area_node() [3] mm/vmalloc: Print a warning message first on failure include/linux/gfp.h | 9 ++++++ mm/vmalloc.c | 78 +++++++++++++++++++++++++-------------------- 2 files changed, 52 insertions(+), 35 deletions(-) -- 2.20.1