From owner-svn-src-head@FreeBSD.ORG Sun Apr 19 23:31:05 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04D6B106568B; Sun, 19 Apr 2009 23:31:05 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 12D618FC12; Sun, 19 Apr 2009 23:31:03 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by ewy19 with SMTP id 19so1549557ewy.43 for ; Sun, 19 Apr 2009 16:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=mtaIb29TrsX8hmJGEEvOmEmoW+BA5Zx75jhU/LtU1tg=; b=AwXfi4V9NxTN6RzV/bn9HJUKL9NI0P0A8Iu+ZzcYbXQqaSzF9xr0x1w1Ury6gQEGvw 5peFIY3efcdsBf9hmi/aa2SJoMlIvd/1IjfZMWZYs6N11SKDk2utK33N4yaCnV37a6Kb 6gAklhnQnAbismVgNRmN4uOsss3P98FX9CAJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=AcfRv2cPlchqO6JTZWtTo353pnKiEiV0QIUl1fVe3eVE4NTfKhVAEtTJ5htJYyn2BR JJkwz8nPXNFK0tFL0yPiMVuVJSBnNl/JCq/0V4gFDVHDkJLJH+bp4kVQ3ybEmafM9e1F SxW+X3GjdHFzquxM95cK3JaBOtLltUxxPDekw= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.210.87.19 with SMTP id k19mr3065835ebb.39.1240183863251; Sun, 19 Apr 2009 16:31:03 -0700 (PDT) In-Reply-To: References: <200904192302.n3JN2o6Z023217@svn.freebsd.org> From: Ivan Voras Date: Mon, 20 Apr 2009 01:30:48 +0200 X-Google-Sender-Auth: 9fc6ea3808b3ccbb Message-ID: <9bbcef730904191630x4e4f2aeci2d6ac769fc1f73f8@mail.gmail.com> To: Robert Watson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r191291 - in head: lib/libthr/thread libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386 libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc libexec/rtld-... X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 19 Apr 2009 23:31:05 -0000 2009/4/20 Robert Watson : > On Sun, 19 Apr 2009, Robert Watson wrote: > >> =C2=A0Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, us= e >> =C2=A0that definition in the custom locking code for the run-time linker >> =C2=A0rather than local definitions. > > This actually changes the line size used by the rtld code for pre-pthread= s > locking for several architectures. =C2=A0I think this is an improvement, = but if > architecture maintainers could comment on that, that would be helpful. Will there be infrastructure for creating per-CPU structures or is using something like: int mycounter[MAXCPU] __attribute__ ((aligned(CACHE_LINE_SIZE))); considered enough?