From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752232AbaBGRcE (ORCPT ); Fri, 7 Feb 2014 12:32:04 -0500 Received: from mga09.intel.com ([134.134.136.24]:51364 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbaBGRcB (ORCPT ); Fri, 7 Feb 2014 12:32:01 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,802,1384329600"; d="scan'208";a="479748325" Date: Fri, 7 Feb 2014 09:32:00 -0800 From: Andi Kleen To: "Kirill A. Shutemov" Cc: Linus Torvalds , Peter Anvin , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , the arch/x86 maintainers , Linux Kernel Mailing List , Ning Qu , Dave Hansen , Matthew Wilcox Subject: Re: [RFC, PATCH] mm: map few pages around fault address if they are in page cache Message-ID: <20140207173200.GC12219@tassilo.jf.intel.com> References: <20140206005534.GA27848@node.dhcp.inet.fi> <20140206222450.GA8823@node.dhcp.inet.fi> <20140207154232.GA18611@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140207154232.GA18611@node.dhcp.inet.fi> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I haven't tested it much, but my kvm boots. There're few places where code > should be fixed. __do_fault() and filemap_fault() are too ugly and need to > be cleaned. > > I don't have any performance data yet. > > Any thoughts? It seems very drastic to do it unconditionally. How about at least a simple stream detection heuristic and perhaps also madvise? There are some extreme cases where workloads could use a lot more memory than before, if they access their memory sparsely in the right pattern. -Andi