From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 03 Nov 2018 10:16:06 +0100 (CET) Received: from lithops.sigma-star.at ([195.201.40.130]:48108 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23991808AbeKCJPPb4N9i convert rfc822-to-8bit (ORCPT ); Sat, 3 Nov 2018 10:15:15 +0100 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0885C606D487; Sat, 3 Nov 2018 10:15:15 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id POaZfqxv8zrK; Sat, 3 Nov 2018 10:15:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 81CD7606C48C; Sat, 3 Nov 2018 10:15:14 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6U7XB2Wlq2pf; Sat, 3 Nov 2018 10:15:14 +0100 (CET) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id 440E1609F82F; Sat, 3 Nov 2018 10:15:12 +0100 (CET) From: Richard Weinberger To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Joel Fernandes , akpm@linux-foundation.org, Andrey Ryabinin , Andy Lutomirski , anton.ivanov@kot-begemot.co.uk, Borislav Petkov , Catalin Marinas , Chris Zankel , dancol@google.com, Dave Hansen , "David S. Miller" , elfring@users.sourceforge.net, Fenghua Yu , Geert Uytterhoeven , Guan Xuetao , Helge Deller , hughd@google.com, Ingo Molnar , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Julia Lawall , kasan-dev@googlegroups.com, kirill@shutemov.name, kvmarm@lists.cs.columbia.edu, Ley Foon Tan , linux-alpha@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vge, r.kernel.org@lithops.sigma-star.at, linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, lokeshgidra@google.com, Max Filippov , Michal Hocko , minchan@kernel.org, nios2-dev@lists.rocketboards.org, pantin@google.com, Peter Zijlstra , Rich Felker , Sam Creasey , sparclinux@vger.kernel.org, Stafford Horne , Stefan Kristiansson , Thomas Gleixner , Tony Luck , Will Deacon , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Yoshinori Sato Subject: Re: [PATCH -next 0/3] Add support for fast mremap Date: Sat, 03 Nov 2018 10:15:11 +0100 Message-ID: <6886607.O3ZT5bM3Cy@blindfold> In-Reply-To: <20181103040041.7085-1-joelaf@google.com> References: <20181103040041.7085-1-joelaf@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 67060 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: richard@nod.at Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Joel, Am Samstag, 3. November 2018, 05:00:38 CET schrieb Joel Fernandes: > Hi, > Here is the latest "fast mremap" series. This just a repost with Kirill's > Acked-bys added. I would like this to be considered for linux -next. I also > dropped the CONFIG enablement patch for arm64 since I am yet to test it with > the new TLB flushing code that is in very recent kernel releases. (None of my > arm64 devices run mainline right now.) so I will post the arm64 enablement once > I get to that. The performance numbers in the series are for x86. > > List of patches in series: > > (1) mm: select HAVE_MOVE_PMD in x86 for faster mremap > > (2) mm: speed up mremap by 20x on large regions (v4) > v1->v2: Added support for per-arch enablement (Kirill Shutemov) > v2->v3: Updated commit message to state the optimization may also > run for non-thp type of systems (Daniel Col). > v3->v4: Remove useless pmd_lock check (Kirill Shutemov) > Rebased ontop of Linus's master, updated perf results based > on x86 testing. Added Kirill's Acks. > > (3) mm: treewide: remove unused address argument from pte_alloc functions (v2) > v1->v2: fix arch/um/ prototype which was missed in v1 (Anton Ivanov) > update changelog with manual fixups for m68k and microblaze. > > not included - (4) mm: select HAVE_MOVE_PMD in arm64 for faster mremap > This patch is dropped since last posting pending further performance > testing on arm64 with new TLB gather updates. See notes in patch > titled "mm: speed up mremap by 500x on large regions" for more > details. > This breaks UML build: CC mm/mremap.o mm/mremap.c: In function ‘move_normal_pmd’: mm/mremap.c:229:2: error: implicit declaration of function ‘set_pmd_at’; did you mean ‘set_pte_at’? [-Werror=implicit-function-declaration] set_pmd_at(mm, new_addr, new_pmd, pmd); ^~~~~~~~~~ set_pte_at CC crypto/rng.o CC fs/direct-io.o cc1: some warnings being treated as errors To test yourself, just run on a x86 box: $ make defconfig ARCH=um $ make linux ARCH=um Thanks, //richard