From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Kenneth W" Date: Fri, 29 Jul 2005 08:08:48 +0000 Subject: RE: Add prefetch switch stack hook in scheduler function Message-Id: <200507290808.j6T88ng08130@unix-os.sc.intel.com> List-Id: In-Reply-To: <10462.1122622689@kao2.melbourne.sgi.com> References: <200507272207.j6RM7fg18695@unix-os.sc.intel.com> In-Reply-To: <200507272207.j6RM7fg18695@unix-os.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: 'Keith Owens' , Ingo Molnar Cc: David.Mosberger@acm.org, Andrew Morton , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Keith Owens wrote on Friday, July 29, 2005 12:38 AM > BTW, for ia64 you may as well prefetch pt_regs, that is also quite > large. > > #define MIN_KERNEL_STACK_FOOTPRINT (IA64_SWITCH_STACK_SIZE + IA64_PT_REGS_SIZE) This has to be carefully done, because you really don't want to overwhelm number of outstanding L2 cache misses. It only has a limited amount of queue and once that is filled, cpu get into L2 recirculate state. And that is going to be very painful because it translate into cpu stall cycles.