Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3128381ima; Tue, 23 Oct 2018 00:24:00 -0700 (PDT) X-Google-Smtp-Source: AJdET5e8NbmXfGFfL+uaEbvy44iC10aDTQWJ3NYSwAVPj0aW7yBK4Jv/KwEwHcK3zCMM1Fr3qFdM X-Received: by 2002:a63:fb41:: with SMTP id w1-v6mr5960841pgj.321.1540279440456; Tue, 23 Oct 2018 00:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540279440; cv=none; d=google.com; s=arc-20160816; b=PSbPxNLAEvVgsEkpg8ZRdldRi5TXUCPuLBamsYZLaNjnaCn2zSE78nxGm156KIq46S Tqsm655y5Fun4vgSYiWdZ+1XmUSeZaIuk2PwE5w7jyXK58KxyPZQqKYkAxnWEEzNWZY0 KS1eWJfcunJrZMDDViv2YuvnBIP58Ku1/CbJElJpmK5y8lp5cJzS1n3zfc5wSmljguzT Ffrb3P4DU/nozWRQ1ay+e6YdVYfqg4Ns6kW7pIyoKSqLljvXQF1JsQeOLBodVGeh/XKa aK+TgI6yRYngCI00aIbT87OIjIlKAcaHt2y6SV+Fc+90CcA/rUI2ldbt2R6dF+8XVjER h+nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pPl9x2HM9J765MSD37B04UX6979X5ExvYAEU9xb/z08=; b=kB+Vl8YNkLaKzVhMkCB9hMUmzioHUo+xpnCRo6aHenzZ7/n+V0uYHKySutseP2ZxJz jueuxeWybWQ33WhRx73nMQjw089L6dSZiST6F3Rx7mNvDOELpoiSlJfp/7HFTaas7w/p rQQhQ9WeHKLPaj2wxBNXfqByo3sU9wiVatTxyKQG7pbt+RxInzLQY446Z4474rs8fcg7 aHocYQFqeV/ZkKa9YDwewxtRXHNIK1cNSd7w3vZAU2DXba8lMVtVJotyg3bE15VMfuui A4K35bL/db4uTCK/qj1TSCoQCm4g7GdzZA1Qq9/9R2UczcJQ78Slc7QjHSnBFVEOCe2b Coaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k65-v6si489804pfj.115.2018.10.23.00.23.45; Tue, 23 Oct 2018 00:24:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727638AbeJWPpR (ORCPT + 99 others); Tue, 23 Oct 2018 11:45:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:49374 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726837AbeJWPpR (ORCPT ); Tue, 23 Oct 2018 11:45:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AD68FAFF0; Tue, 23 Oct 2018 07:23:07 +0000 (UTC) Date: Tue, 23 Oct 2018 09:23:06 +0200 From: Michal Hocko To: Uladzislau Rezki , Shuah Khan Cc: Matthew Wilcox , Andrew Morton , linux-mm@kvack.org, LKML , Thomas Garnier , Oleksiy Avramchenko , Steven Rostedt , Joel Fernandes , Thomas Gleixner , Ingo Molnar , Tejun Heo Subject: Re: [RFC PATCH 0/2] improve vmalloc allocation Message-ID: <20181023072306.GN18839@dhcp22.suse.cz> References: <20181019173538.590-1-urezki@gmail.com> <20181022125142.GD18839@dhcp22.suse.cz> <20181022165253.uphv3xzqivh44o3d@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022165253.uphv3xzqivh44o3d@pc636> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shuah, On Mon 22-10-18 18:52:53, Uladzislau Rezki wrote: > On Mon, Oct 22, 2018 at 02:51:42PM +0200, Michal Hocko wrote: > > Hi, > > I haven't read through the implementation yet but I have say that I > > really love this cover letter. It is clear on intetion, it covers design > > from high level enough to start discussion and provides a very nice > > testing coverage. Nice work! > > > > I also think that we need a better performing vmalloc implementation > > long term because of the increasing number of kvmalloc users. > > > > I just have two mostly workflow specific comments. > > > > > A test-suite patch you can find here, it is based on 4.18 kernel. > > > ftp://vps418301.ovh.net/incoming/0001-mm-vmalloc-stress-test-suite-v4.18.patch > > > > Can you fit this stress test into the standard self test machinery? > > > If you mean "tools/testing/selftests", then i can fit that as a kernel module. > But not all the tests i can trigger from kernel module, because 3 of 8 tests > use __vmalloc_node_range() function that is not marked as EXPORT_SYMBOL. Is there any way to conditionally export these internal symbols just for kselftests? Or is there any other standard way how to test internal functionality that is not exported to modules? -- Michal Hocko SUSE Labs