Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753644AbYHVEQ1 (ORCPT ); Fri, 22 Aug 2008 00:16:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751236AbYHVEQT (ORCPT ); Fri, 22 Aug 2008 00:16:19 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:52822 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbYHVEQS (ORCPT ); Fri, 22 Aug 2008 00:16:18 -0400 Date: Fri, 22 Aug 2008 06:15:44 +0200 From: Ingo Molnar To: Rene Herman Cc: Venki Pallipadi , Dave Airlie , "Li, Shaohua" , Yinghai Lu , Andreas Herrmann , Arjan van de Ven , Linux Kernel , "Siddha, Suresh B" , Thomas Gleixner , "H. Peter Anvin" , Dave Jones Subject: Re: [PATCH] x86: have set_memory_array_{uc,wb} coalesce memtypes. Message-ID: <20080822041544.GF30284@elte.hu> References: <20080820100440.GE28492@elte.hu> <48ABF6DC.8070305@keyaccess.nl> <48AC29CA.1060203@keyaccess.nl> <20080820194127.GA10887@linux-os.sc.intel.com> <48AC8F69.4050201@keyaccess.nl> <21d7e9970808201446k3c1a6bc1naf04568a8ad06ed4@mail.gmail.com> <20080820221630.GA3598@linux-os.sc.intel.com> <20080821120626.GG5615@elte.hu> <48ADA2C2.8090905@keyaccess.nl> <48ADF3FC.7070002@keyaccess.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48ADF3FC.7070002@keyaccess.nl> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1910 Lines: 56 * Rene Herman wrote: > Actually, might as well simply reconstruct the memtype list at free > time I guess. How is this for a coalescing version of the array > functions? impressive! Rarely do we get this much bang for such a low linecount :-) > NOTE: I am posting this because I'm going to bed but haven't stared > comfortably long at this and might be buggy. Compiles, boots and > provides me with: > > root@7ixe4:~# wc -l /debug/x86/pat_memtype_list > 53 /debug/x86/pat_memtype_list > > otherwise (down from 16384+). > > cool! I'd do this in v2.6.27 but i forced myself to be reasonable and applied your patches to tip/x86/pat instead, for tentative v2.6.28 merging (assuming it all passes testing, etc.): # 9a79f4f: x86: {reverve,free}_memtype() take a physical address # c5e147c: x86: have set_memory_array_{uc,wb} coalesce memtypes. # 5f310b6: agp: enable optimized agp_alloc_pages methods ( note that i flipped them around a bit and have put your enable-agp_alloc_pages()-widely patch last, so that we get better bisection behavior. ) The frontside cache itself is in x86/urgent: # 80c5e73: x86: fix Xorg startup/shutdown slowdown with PAT ... and should at least solve the symptom that you've hit in practice (the slowdown), without changing the underlying PAT machinery. (which would be way too dangerous for v2.6.27) And it's all merged up in tip/master, you might want to test that too to check whether all the pieces fit together nicely. Tens of thousands of page granular memtypes was Not Nice. Venki, Suresh, Shaohua, Dave, Arjan - any observations about this line of action? Ingo -- 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/