From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 14:41:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A11016A4CE for ; Mon, 12 Apr 2004 14:41:59 -0700 (PDT) Received: from tx1.oucs.ox.ac.uk (tx1.oucs.ox.ac.uk [129.67.1.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id E663943D2D for ; Mon, 12 Apr 2004 14:41:58 -0700 (PDT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan1.oucs.ox.ac.uk ([129.67.1.166] helo=localhost) by tx1.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BD9Bl-0008Ja-J8 for current@freebsd.org; Mon, 12 Apr 2004 22:41:57 +0100 Received: from rx1.oucs.ox.ac.uk ([129.67.1.165]) by localhost (scan1.oucs.ox.ac.uk [129.67.1.166]) (amavisd-new, port 25) with ESMTP id 31806-04 for ; Mon, 12 Apr 2004 22:41:57 +0100 (BST) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx1.oucs.ox.ac.uk with smtp (Exim 4.24) id 1BD9Bl-0008JO-5e for current@freebsd.org; Mon, 12 Apr 2004 22:41:57 +0100 Received: (qmail 26688 invoked by uid 1004); 12 Apr 2004 21:41:57 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.20 (clamscan: 0.67. sweep: 2.18/3.79. Clear:RC:1(163.1.161.131):. Processed in 0.019196 secs); 12 Apr 2004 21:41:57 -0000 Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 12 Apr 2004 21:41:57 -0000 Message-Id: <6.0.1.1.1.20040412223815.043a2e68@imap.sfu.ca> X-Sender: cperciva@imap.sfu.ca (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Mon, 12 Apr 2004 22:41:54 +0100 To: Divacky Roman From: Colin Percival In-Reply-To: <20040411083611.GA63990@stud.fit.vutbr.cz> References: <11095.1081621779@critter.freebsd.dk> <20040411083611.GA63990@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: current@freebsd.org Subject: Re: Optimizing RCng execution speed ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 21:41:59 -0000 At 09:36 11/04/2004, Divacky Roman wrote: >RCng uses dependancies so it naturally makes a graph where some nodes >are independant of each other. what about executing this in parallel? I've put together some code for this -- I hacked up rcorder to output sets of scripts which can be run simultaneously, had rc.subr run them in the background, and had /etc/rc wait after each group. Much to my surprise, it didn't help -- in fact, it resulted in a 5% slowdown (on my single processor, HTT-enabled system). Colin Percival