From owner-svn-src-head@FreeBSD.ORG Mon Apr 6 17:58:48 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5FBF82B; Mon, 6 Apr 2015 17:58:48 +0000 (UTC) Received: from mail106.syd.optusnet.com.au (mail106.syd.optusnet.com.au [211.29.132.42]) by mx1.freebsd.org (Postfix) with ESMTP id 938A8BE4; Mon, 6 Apr 2015 17:58:48 +0000 (UTC) Received: from c211-30-166-197.carlnfd1.nsw.optusnet.com.au (c211-30-166-197.carlnfd1.nsw.optusnet.com.au [211.30.166.197]) by mail106.syd.optusnet.com.au (Postfix) with ESMTPS id C3F1C3C1CD4; Tue, 7 Apr 2015 03:58:24 +1000 (AEST) Date: Tue, 7 Apr 2015 03:58:24 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Adrian Chadd Subject: Re: svn commit: r281103 - head/sys/amd64/amd64 In-Reply-To: Message-ID: <20150407034210.W13160@besplex.bde.org> References: <201504050518.t355IFVJ001786@svn.freebsd.org> <20150405163305.A2515@besplex.bde.org> <20150406152653.K1066@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=ZuzUdbLG c=1 sm=1 tr=0 a=KA6XNC2GZCFrdESI5ZmdjQ==:117 a=PO7r1zJSAAAA:8 a=kj9zAlcOel0A:10 a=JzwRw_2MAAAA:8 a=LZT3cjOAAAAA:8 a=xi4jD1bJun78kkbclQ8A:9 a=xK-qvNO6ba16nrPl:21 a=YYC0QsJ_9vQjtY_J:21 a=CjuIK1q_8ugA:10 Cc: "src-committers@freebsd.org" , Eitan Adler , "svn-src-all@freebsd.org" , Kurt Lidl , Bruce Evans , "svn-src-head@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2015 17:58:49 -0000 On Mon, 6 Apr 2015, Adrian Chadd wrote: > Hi Bruce, > > There's been a bunch of research into that field lately. > > Eg: http://daim.idi.ntnu.no/masteroppgaver/009/9231/masteroppgave.pdf > > The best part (imho)- the length of your USER environment string > influencing code runtime costs. :) I fix the latter in an FP benchmark by aligning the stack to a page boundary, and further adjusting it by a magic amount of a few hundred. This only works for microbenchmarks, since in general the stack pointer is too variable for a single adjustment to keep it from hitting things. Bruce