From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 19:56:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6CEF106567B for ; Thu, 17 Jul 2008 19:56:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outx.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id 959358FC28 for ; Thu, 17 Jul 2008 19:56:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B699D2472; Thu, 17 Jul 2008 12:56:31 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id C5CE22D6032; Thu, 17 Jul 2008 12:56:30 -0700 (PDT) Message-ID: <487FA33B.4010404@elischer.org> Date: Thu, 17 Jul 2008 12:53:31 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: "Murty, Ravi" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: atomic_load_acq_int in ipi_nmi_handler() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 19:56:32 -0000 Murty, Ravi wrote: > Hello All, > > > > Just a quick question: Why does this function (ipi_nmi_handler) execute > a atomic_load_acq_int(&ipi_nmi_pending). Following this it calls > atomic_clear_int to clear itself out of this mask. I can't think of why > the CPU would reorder these instructions knowing there is a dependency > here. > > > > Also, since FreeBSD has masks (like ipi_nmi_pending), has there been any > work on extending this beyond 64 CPUs? Only in discussion. A quick survey of other OS's and their answers is probably in order. There are cpu bitmasks in use.. We are going to have to look at the whole NUMA thing soon too. (BTW it's only 32 on 32 bit machines I believe) > > > > Thanks > > Ravi > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"