From owner-freebsd-mips@FreeBSD.ORG Tue Nov 6 22:02:57 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F899F83 for ; Tue, 6 Nov 2012 22:02:57 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.ChatUSA.com) Received: from pdx.rh.CN85.ChatUSA.com (pdx.rh.CN85.ip6.chatusa.com [IPv6:2607:fa80:104::6]) by mx1.freebsd.org (Postfix) with ESMTP id D9EA78FC0A for ; Tue, 6 Nov 2012 22:02:56 +0000 (UTC) Received: from pdx.rh.CN85.ChatUSA.com (localhost [127.0.0.1]) by pdx.rh.CN85.ChatUSA.com (8.13.3/8.13.3) with ESMTP id qA5CMYUm095112; Mon, 5 Nov 2012 04:22:34 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.ChatUSA.com) Received: (from freebsd@localhost) by pdx.rh.CN85.ChatUSA.com (8.13.3/8.13.3/Submit) id qA5CMYNF095111; Mon, 5 Nov 2012 04:22:34 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201211051222.qA5CMYNF095111@pdx.rh.CN85.ChatUSA.com> Subject: Re: CACHE_LINE_SIZE macro. In-Reply-To: To: Eitan Adler Date: Mon, 5 Nov 2012 04:22:33 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: Juli Mallett , "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 22:02:57 -0000 [ Charset UTF-8 unsupported, converting... ] > On 4 November 2012 13:28, Rodney W. Grimes > wrote: > > > > What ABI is exposing anything about cache parameters or may be come dependent > > on such information? > > There has been some discussion recently about padding lock mutexs to > the cache line size in order to avoid false sharing of CPUs. Some have > claimed to see significant performance increases as a result. I actually just went and read the diffs in attilio r242402 commit and it appears to me that he is actually REMOVING the CACHE_LINE_SIZE abuse and using a mtx_padalign struct that must already exist cause his commit didnt create it. Independent of weither using cache line size alignment is evil, at least this commit reduces the abuse of the constant. -- Rod Grimes freebsd@freebsd.org