From owner-freebsd-current@FreeBSD.ORG Fri Apr 6 17:51:37 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE4D01065674; Fri, 6 Apr 2012 17:51:37 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E5DE38FC1C; Fri, 6 Apr 2012 17:51:36 +0000 (UTC) Received: by wern13 with SMTP id n13so2048869wer.13 for ; Fri, 06 Apr 2012 10:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sy4X2n9Vjte6uyGHZnjJncZVeJKQ0sUwdWd91+vrgnM=; b=JnUyVp3qCr9rx2xIXIClzYqucSECW7Z437cbMTwmeD14bcp68L1xvNRqQKq++76QjW b/nCFcbXm6ZxququZUj4HaQqoXV7pQyxMORCtP6tY0hUSsFsX/PrekE92mDCAsPxbLj6 ivf7Vh/T48pcdaL6VkzepAy3zUyGzbaBU5D65POtmCEA11Abik9sNYgip24NOWLNGBQX avFTft7jPdSAW7EBIBT5tXGOSxXLWq922h+6NtL7758sRVLufVnxBc7nsQd0zVcIoUGn jgi/JvlVOA/qTmNpZi0yTqVhBRVEVTwGqcbvODSd/RGPqAqWIFiO5VeUhJFZBfwarq+B Ff5Q== MIME-Version: 1.0 Received: by 10.180.88.164 with SMTP id bh4mr21188790wib.22.1333734695909; Fri, 06 Apr 2012 10:51:35 -0700 (PDT) Received: by 10.216.49.81 with HTTP; Fri, 6 Apr 2012 10:51:35 -0700 (PDT) In-Reply-To: <4F7EFC89.1090805@FreeBSD.org> References: <4F7EFC89.1090805@FreeBSD.org> Date: Fri, 6 Apr 2012 13:51:35 -0400 Message-ID: From: Arnaud Lacombe To: Florian Smeets Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-performance@freebsd.org, FreeBSD Current Subject: Re: Scheduler + IPC performance on FreeBSD 7.4, 8.2, 9.0 and -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 06 Apr 2012 17:51:37 -0000 Hi, On Fri, Apr 6, 2012 at 10:24 AM, Florian Smeets wrote: > On 05.04.12 20:03, Arnaud Lacombe wrote: >> >> Hi folks, > > Hi, >> >> Over the past months, I ran on a couple of unused box the >> `hackbench'[HACKBENCH] benchmark used by the Linux folks for tracking >> down various kind of regression/improvement. `hackbench' is a >> scheduler + IPC test (socket xor pipe). It creates producers/consumers >> groups and let a variable quantity of small messages flow happily. >> Producers and consumers are either processes xor threads. > [Lots of likely very interesting and valuable data.] > >> >> Q4: "So, how can I get all the graph ?" >> R4: All you need is git, a posix shell, a couple of utility (find, >> sort, ...), a recent gnuplot, and a ruby interpreter. >> > > Can you give us some hints on *how* to get the results? I checked the repo > out but it's not immediately obvious what to do and how to get the graphs, > as staring at thousands of numbers in lots of different files isn't exactly > practical. > To just get all the graph, merge the runs/* branch you want, and just run the `results.sh' script: # sh results.sh To gather result, build `hackbench': # eval $(sed '/#gcc/!d; s/.//' hackbench.c) then, reboot in single mode, mount / read-write, adjust whatever you have to adjust and run the script: # sh hackbench.sh [light|medium|heavy] $(pwd)/hackbench this will run a complete iterations over all the possible tunables and gives you a `results.yml' that you can feed to the previous script. - Arnaud > Thanks, > Florian