From owner-freebsd-smp@FreeBSD.ORG Sun Feb 1 12:48:48 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D77D1065672 for ; Sun, 1 Feb 2009 12:48:48 +0000 (UTC) (envelope-from apache@cauquenes.cl) Received: from cauquenes.cl (200-54-154-10.static.tie.cl [200.54.154.10]) by mx1.freebsd.org (Postfix) with ESMTP id AA6958FC08 for ; Sun, 1 Feb 2009 12:48:47 +0000 (UTC) (envelope-from apache@cauquenes.cl) Received: from cauquenes.cl (alhost.localdomain [127.0.0.1]) by cauquenes.cl (8.12.8/8.12.8) with ESMTP id n11AnhHV027426 for ; Sun, 1 Feb 2009 07:49:43 -0300 Received: (from apache@localhost) by cauquenes.cl (8.12.8/8.12.8/Submit) id n11AnfMA027417; Sun, 1 Feb 2009 07:49:41 -0300 Date: Sun, 1 Feb 2009 07:49:41 -0300 Message-Id: <200902011049.n11AnfMA027417@cauquenes.cl> To: freebsd-smp@freebsd.org From: BEN-SHEMESH LOANS AND FOREX MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Subject: Your Financial Worries Are Over------------------Apply Now X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: benshemeshloans@live.com List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 12:48:48 -0000 At Ben-Shemesh Loans and Forex, we don't just promise you loans we make sure we deliver on our promise, we offer loans for; educational, mortgage and all Other purposes including cars and health. I give out loans between $2,000 USD and $5,000,000 USD to honest individuals at 3% interest rate for a period of 2-15 years as the case may be. The repayment will be in monthly installments which will commence 3 months after receipt of the loan. You do not have to worry about your credit state or history, cause it is irrelevant as far as you have a paying job. So if you are in need of a loan or any financial assistance, please contact Mr. Ben-Shemesh and you will be glad you did. Services rendered includes: ~Personal Loans ~Student Loans ~Business Loans ETC Our loan terms and conditions are the best anytime, any day we give out loans at the lowest interest rate of 3%. Try us today and see the difference. Please Contact: Mr. Ben-Shemesh. Chief Executive Officer Tel: +447045792662 BEN-SHEMESH LOANS AND FOREX From owner-freebsd-smp@FreeBSD.ORG Tue Feb 3 18:13:11 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50DA2106564A for ; Tue, 3 Feb 2009 18:13:11 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id C416D8FC0A for ; Tue, 3 Feb 2009 18:13:10 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by koef.zs64.net (8.14.3/8.14.3) with ESMTP id n13HvSx5055303 for ; Tue, 3 Feb 2009 18:57:28 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.3/8.14.3/Submit) id n13HvSXt055302 for freebsd-smp@freebsd.org; Tue, 3 Feb 2009 12:57:28 -0500 (EST) (envelope-from cracauer) Date: Tue, 3 Feb 2009 12:57:28 -0500 From: Martin Cracauer To: freebsd-smp@freebsd.org Message-ID: <20090203175728.GA55080@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: Kernel code: executing once on each CPU? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 18:13:11 -0000 Is there a facility in FreeBSD that allows me to have a piece of code executed on each processor, then return to the original thread when that has been completed? I need to collect some data that's local to the individual CPUs/cores. In Linux there is/was smp_call_function(func, ...). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/ From owner-freebsd-smp@FreeBSD.ORG Tue Feb 3 19:05:36 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AD741065673 for ; Tue, 3 Feb 2009 19:05:36 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outK.internet-mail-service.net (outk.internet-mail-service.net [216.240.47.234]) by mx1.freebsd.org (Postfix) with ESMTP id 72E598FC08 for ; Tue, 3 Feb 2009 19:05:36 +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 E2965237F; Tue, 3 Feb 2009 10:54:39 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id A19802D6023; Tue, 3 Feb 2009 10:54:05 -0800 (PST) Message-ID: <498892D4.7010501@elischer.org> Date: Tue, 03 Feb 2009 10:54:12 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Martin Cracauer References: <20090203175728.GA55080@cons.org> In-Reply-To: <20090203175728.GA55080@cons.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-smp@freebsd.org Subject: Re: Kernel code: executing once on each CPU? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 19:05:37 -0000 Martin Cracauer wrote: > Is there a facility in FreeBSD that allows me to have a piece of code > executed on each processor, then return to the original thread when > that has been completed? > > I need to collect some data that's local to the individual CPUs/cores. > > In Linux there is/was smp_call_function(func, ...). no, though it might be useful. the rmlock facility does this in order to do its work (from memory) and it would be a useful thing.. I'd even suggest that it take a bitmask of required CPUs. that can be used in conjuction with the cpu set stuff. > > Martin From owner-freebsd-smp@FreeBSD.ORG Tue Feb 3 20:35:12 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBAA81065680 for ; Tue, 3 Feb 2009 20:35:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 6F17E8FC1F for ; Tue, 3 Feb 2009 20:35:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LURNA-00072x-Pm; Tue, 03 Feb 2009 21:55:52 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n13JtnJa066824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Feb 2009 21:55:49 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n13Jtnn0017320; Tue, 3 Feb 2009 21:55:49 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n13JtnSc017319; Tue, 3 Feb 2009 21:55:49 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 3 Feb 2009 21:55:48 +0200 From: Kostik Belousov To: Martin Cracauer Message-ID: <20090203195548.GA9427@deviant.kiev.zoral.com.ua> References: <20090203175728.GA55080@cons.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20090203175728.GA55080@cons.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LURNA-00072x-Pm cb1762f4f9008c24df5234cd9e3d4c18 X-Terabit: YES Cc: freebsd-smp@freebsd.org Subject: Re: Kernel code: executing once on each CPU? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 20:35:13 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 03, 2009 at 12:57:28PM -0500, Martin Cracauer wrote: > Is there a facility in FreeBSD that allows me to have a piece of code > executed on each processor, then return to the original thread when > that has been completed? >=20 > I need to collect some data that's local to the individual CPUs/cores. >=20 > In Linux there is/was smp_call_function(func, ...). Look at the smp_rendezvous() in the subr_smp.c. Note that the functions are called in quite restricted context. --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmIoUQACgkQC3+MBN1Mb4gBJwCdE1XHla19zwLZ0AFOWtG4labv B1AAnjWoUiybp6vIgJTtoiHvu6jF4cky =eRq4 -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--