From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1eb89280c77a80750662f0114c3468b5@terzarima.net> From: Charles Forsyth Date: Sun, 1 Apr 2007 21:07:58 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] slow performance In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-iswjslqwpsmosrrzpugyceyrev" Topicbox-Message-UUID: 3ae7bafc-ead2-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-iswjslqwpsmosrrzpugyceyrev Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit >do you think that gcc is MALLOCing (hehe) all space with one call instead >fallow the program order (malloc 1 space at time) ? you've misunderstood. we'd already discovered that all the extra time compared to Linux was caused by having changed the program to do single writes via print instead of buffered writes via printf (by the way, if you send the output to /dev/null, the effect is much less, but even so). geoff then showed how to make the program run even faster on either system, assuming that was your main aim. he also showed that there were some bugs in the original code (eg not returning a value from bstini, which only happens to work because both compilers happen to leave the result of malloc in the right place to be taken as a returned value by the caller of bstini). --upas-iswjslqwpsmosrrzpugyceyrev Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Sun Apr 1 20:58:46 BST 2007 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 32AFAC79BE for ; Sun, 1 Apr 2007 15:58:35 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 967E7C71BB for <9fans@cse.psu.edu>; Sun, 1 Apr 2007 15:57:27 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08429-01-97 for <9fans@cse.psu.edu>; Sun, 1 Apr 2007 15:57:26 -0400 (EDT) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 724C3C71AB for <9fans@cse.psu.edu>; Sun, 1 Apr 2007 15:57:26 -0400 (EDT) Received: by wx-out-0506.google.com with SMTP id s17so1052601wxc for <9fans@cse.psu.edu>; Sun, 01 Apr 2007 12:57:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DQiOeoKgcYio1J/vnmbFLNueLws/iALpMuKKuOFinWJ/ObbrnrvUUPtAQ+3v3U9QLgWeDmGORW/qyPSoFM+LwctjCBoM97oFVOpV9oqsHC3A9q9k3iFryVZgclWH45oYnyARCU5fqwC/bI1P5ATeaHyUJpEKoBDkeYjSJ5PRye8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Onr0T604DrHzkXTC4AwW/LiDns4PSz8krbuJ2P6YYErQeURuGjZ1lwoTdwHOWauyAHnW+7Dcx6hLwf8ow3Q9MFChNQ0p+dKzZZqEo1qp4FG4gWMUSwkSLhFpMTETHFyXSxeuvZuGQhlVekr65Pto/XM/I0g3kDnTqCk6nfvf02E= Received: by 10.90.89.5 with SMTP id m5mr2768479agb.1175457445820; Sun, 01 Apr 2007 12:57:25 -0700 (PDT) Received: by 10.90.80.11 with HTTP; Sun, 1 Apr 2007 12:57:25 -0700 (PDT) Message-ID: Date: Sun, 1 Apr 2007 16:57:25 -0300 From: "pedro henrique antunes de oliveira" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] slow performance In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_91641_6469179.1175457445768" References: X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu ------=_Part_91641_6469179.1175457445768 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline do you think that gcc is MALLOCing (hehe) all space with one call instead fallow the program order (malloc 1 space at time) ? the cat /dev/cputype prints P4 2401. i'll would ask for that file, if there is some file with my cpuinfo. ------=_Part_91641_6469179.1175457445768 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline do you think that gcc is MALLOCing (hehe) all space with one call instead fallow the program order (malloc 1 space at time) ?

the cat /dev/cputype prints P4 2401. i'll would ask for that file, if there is some file with my cpuinfo.
------=_Part_91641_6469179.1175457445768-- --upas-iswjslqwpsmosrrzpugyceyrev--