Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbbKGTYG (ORCPT ); Sat, 7 Nov 2015 14:24:06 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:64174 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbbKGTYB (ORCPT ); Sat, 7 Nov 2015 14:24:01 -0500 From: Arnd Bergmann To: Hans Ulli Kroll Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, Linus Torvalds , Linux Kernel Mailing List , Will Deacon Subject: Re: [GIT PULL] arm64 updates for 4.4 Date: Sat, 07 Nov 2015 20:23:24 +0100 Message-ID: <5669629.gUNGHpWjD7@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <20151104182508.GA28726@e104818-lin.cambridge.arm.com> <6253831.r99BEBrMgd@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:v9oTjGuxVsty2yEWHlafgvhxk28oMcD0IXslgu4Qxn8KaReZMLl Jlqiv968rH8qIj/IJwkU2bFIQGmMY4iT8u/iapxc7uE/xaw+LSRB0JUx+uhFngRAA7nUFaC i9K0rcEu+wBuitq0FXaPNc/EPgLaovQ5b8v2Pa4hAH4UvapDUABhfc0X24alW6Pry18GnNI tAsruIDc6Iweun4wMXrWQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:HMdMt0bdcrc=:5BcyE26sHOtoclM5IUiEtW pje6l1yJFboP+HtsebDxsNL1esUH8cY2H+atdFw+Thix3KOtQKd3XwR723wvJRMm4l6S3EsgD f9bQojRQ1hmfohr++3c5yQMIRHc3uh+oGjnsY3VOojn76YXlFpe6iUMQ9AkFr4y1LpKzr6aOH yVcfVSrLAdxy1o+xgv8ajqEds+MpQsI+JdMWwqeQDHzrT4hQgPgv6Es4ZYG3/F6W/fTdBzeMu +0H3SDnohx+21q8b0Kap49IU21JIbysvZKdPS1tnAeyfvxbaGJ2zgp777KH4SdQysyIpsx29O iI8onxBRwcvmAbEEHec1L/FI7GLONoS46k1HTcglVn4cf2srBCfU889k4WeMB7PzGqCtAs2ds HzoCO9dQohUtFCGYt8cJnagzLHXMHaVUmeI/uHag7sLOdSX1nsnQYg5eCHTLTnp9CKM5Eqyvg TppWU4nwXUeyFct5++KZXkQ3Ak8N2xgzPy6xu/IAFq67uewl64QkdBBro1ERHXlhCCHTSiHjj 1KqUXGqcmdZNKEQ+XmAnepnrdmBtCmxhSGXcvfDhoGb9S2PDky/7tdH4Xydvqz9BApInsgJRi GDHGIBHf5YCWDSdXpvV5HzGORyIMK938G7jY8At3eJLpy2DSzbrYPJq27+fYZfBhP16IZUuhr cAmBlBX04AjV+C4LxV9jV/j6ujkle2XSSxjKyM/FVTpaKZXXuyskkp0IeORs6UrwwNCv+Hbes 8UX2Rk84xP7qsDxS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3149 Lines: 72 On Saturday 07 November 2015 11:56:44 Hans Ulli Kroll wrote: > On Fri, 6 Nov 2015, Arnd Bergmann wrote: > > On Friday 06 November 2015 16:04:08 Catalin Marinas wrote: > > > On Fri, Nov 06, 2015 at 10:57:58AM +0100, Arnd Bergmann wrote: > > > > On Thursday 05 November 2015 18:27:18 Catalin Marinas wrote: > > > > > On Wed, Nov 04, 2015 at 02:55:01PM -0800, Linus Torvalds wrote: > > > > > > On Wed, Nov 4, 2015 at 10:25 AM, Catalin Marinas wrote: > > > > > > It's good for single-process loads - if you do a lot of big fortran > > > > > > jobs, or a lot of big database loads, and nothing else, you're fine. > > > > > > > > > > These are some of the arguments from the server camp: specific > > > > > workloads. > > > > > > > > I think (a little overgeneralized), you want 4KB pages for any file > > > > based mappings, > > > > > > In general, yes, but if the main/only workload on your server is mapping > > > large db files, the memory usage cost may be amortised. > > > > This will still only do you good for a database that is read into memory > > once and not written much, and at that point you can as well use hugepages. > > > > The problems for using 64kb page cache on file mappings are > > > > - while you normally want some readahead, the larger pages also result > > in read-behind, so you have to actually transfer data from disk into > > RAM without ever accessing it. > > > > - When you write the data, you have to write the full 64K page because > > that is the granularity of your dirty bit tracking. > > > > So even if you don't care at all about memory consumption, you are > > still transferring several times more data to and from your drives. > > As mentioned that can be a win on some storage devices, but usually > > it's a loss. > > > > there is also a maybe a bigger problem. > I know this from my Zyxel NAS540, this thing is build around the Mindspeed > Comcerto 2000 SoC > > Zyxel is currently rolling back to support 4k page sizeses in upcommig > 5.10 firmware release, because Minspeed did some stupid thing : > > It's not possible to use some standard ARMv7 toolchain and build your > own/needed userspace tools. > > And this in change which causes the pain > > diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h > -#define ELF_EXEC_PAGESIZE 4096 > +#define ELF_EXEC_PAGESIZE (PAGE_SIZE) In ARM32 binutils, ELF_MAXPAGESIZE was changed last year to 64KB, so binutils-2.25 or higher should support this by default, as long as you recompile all user binaries. > The SoC is mostly build from off the shelf IP's > SATA, NAND, SPI and so on > The only thing which is completly braindead is MAC > It's using some kind of VLAN tagging to support tree ports, > only one descriptor chain for all three interfaces. You mean they used 64KB logical page sizes to work around a broken ethernet MAC? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/