Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1325040ybb; Sat, 11 Apr 2020 00:21:44 -0700 (PDT) X-Google-Smtp-Source: APiQypLvCAlVNSMiy/U0/MvA1jcQ5HJFFKNSyjnROO9w45o8qXQNZX+XWbvz77JW/DfBL3q6LSgc X-Received: by 2002:a0c:ee43:: with SMTP id m3mr8667711qvs.164.1586589704682; Sat, 11 Apr 2020 00:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586589704; cv=none; d=google.com; s=arc-20160816; b=LqvtAEmeKCTrJ5cPhHNsUH8O0S2E5zeWACeuhXgG7M4Gyt62WuNWSUbTYJB0h7cXUR +AjQgmDaTkCnUSCvF0vlK+zERhRJcgCRVi5KLcJukaTQP9xU8t4cLrAXv09tOktf9Z1w zrB9h3G3H1haZ4BVvCamM7K9J7TivoJK26ZGX0ALQf4u/RzRc+keUJhGvtcFKapKcdiO tfn8uN08aPdvE+zZhYxvpM0JpG81FLgCmrZL/hJkuwyFGz8xwggY9iXW/Tc35yhmv0xr wScQdJTRab401vB/gcDBzRObhxivzwYmHwv+0IHubrnZZEWBHAUuNa2Ta88USQJHIsua 9fdA== 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=FDBwOuar5fcDJ5MGSKLtYZDkwTDk6ceaNCghm/LX33w=; b=ain+heoAIEiUfnwn/vUCzQsXXz0fxP+tRSrTnDI5XHUK9X1U3NlW/pmLjRekqEBZun k7eqPvKLnqd+PDZMb51/FUTKzh9ASLGq7vDYmfFgHmmCuxThmEGEWA+/Y/Jzl3m+WDIc /9J8LJiTGjLJz6iKfueWHiZxsT5KxxJM2mrVW+n+IxKqRv8FuXFmLA/FlYCGvEIgGdwT P7rfKgFLehGuE9oeS0cP5PlOmnd1OSdLrwPqv24WXgnIRONXl102NCAsWEyUWEyEgnuY ToBgSMrdqrtpHIJzLdERecoSnNRLUNVtWoOg0PZDMd9iSAom+0P5nLzpUZbpQOv3rxbv gR2A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si724423qvs.156.2020.04.11.00.21.29; Sat, 11 Apr 2020 00:21:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725935AbgDKHU5 (ORCPT + 99 others); Sat, 11 Apr 2020 03:20:57 -0400 Received: from verein.lst.de ([213.95.11.211]:52955 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbgDKHU4 (ORCPT ); Sat, 11 Apr 2020 03:20:56 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 4505168BFE; Sat, 11 Apr 2020 09:20:52 +0200 (CEST) Date: Sat, 11 Apr 2020 09:20:52 +0200 From: Christoph Hellwig To: Minchan Kim Cc: Sergey Senozhatsky , Peter Zijlstra , Christoph Hellwig , Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Nitin Gupta , Robin Murphy , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/28] mm: only allow page table mappings for built-in zsmalloc Message-ID: <20200411072052.GA31242@lst.de> References: <20200408115926.1467567-1-hch@lst.de> <20200408115926.1467567-11-hch@lst.de> <20200409160826.GC247701@google.com> <20200409165030.GG20713@hirez.programming.kicks-ass.net> <20200409170813.GD247701@google.com> <20200410023845.GA2354@jagdpanzerIV.localdomain> <20200410231136.GA101325@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200410231136.GA101325@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Minchan, On Fri, Apr 10, 2020 at 04:11:36PM -0700, Minchan Kim wrote: > It doesn't mean we couldn't use zsmalloc as module any longer. It means > we couldn't use zsmalloc as module with pgtable mapping whcih was little > bit faster on microbenchmark in some architecutre(However, I usually temped > to remove it since it had several problems). However, we could still use > zsmalloc as module as copy way instead of pgtable mapping. Thus, if someone > really want to rollback the feature, they should provide reasonable reason > why it doesn't work for them. "A little fast" wouldn't be enough to exports > deep internal to the module. do you have any data how much faster it is on arm (and does that include arm64 as well)? Besides the exports which were my prime concern, zsmalloc with pgtable mappings also is the only user of map_kernel_range outside of vmalloc.c, if it really is another code base for tiny improvements we could mark map_kernel_range or in fact remove it entirely and open code it in the remaining callers. (unmap_kernel_range is a different story, it has a bunch of callers, and most look odd)