9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] slow performance
Date: Sun,  1 Apr 2007 21:07:58 +0100	[thread overview]
Message-ID: <1eb89280c77a80750662f0114c3468b5@terzarima.net> (raw)
In-Reply-To: <e510e47e0704011257q7ca6dd46yc84b022817dd1642@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

>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).

[-- Attachment #2: Type: message/rfc822, Size: 4195 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 238 bytes --]

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.

[-- Attachment #2.1.2: Type: text/html, Size: 252 bytes --]

  reply	other threads:[~2007-04-01 20:07 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-31 16:41 pedro henrique antunes de oliveira
2007-03-31 16:48 ` Lorenzo Fernando Bivens de la Fuente
2007-03-31 16:48 ` Charles Forsyth
2007-03-31 16:57   ` pedro henrique antunes de oliveira
2007-03-31 16:55 ` W B Hacker
2007-03-31 17:12   ` Uriel
2007-03-31 19:27     ` W B Hacker
2007-03-31 23:20       ` erik quanstrom
2007-03-31 23:35         ` pedro henrique antunes de oliveira
2007-04-01  1:40           ` erik quanstrom
2007-03-31 17:15   ` Charles Forsyth
2007-03-31 18:50 ` Armando Camarero
2007-03-31 21:05   ` C H Forsyth
2007-03-31 23:25     ` pedro henrique antunes de oliveira
2007-04-01  1:32       ` erik quanstrom
2007-04-01  9:22       ` Charles Forsyth
2007-04-01  9:52         ` pedro henrique antunes de oliveira
2007-04-01  9:56           ` pedro henrique antunes de oliveira
2007-04-01 18:24 ` ron minnich
2007-04-01 19:11   ` pedro henrique antunes de oliveira
2007-04-01 19:26     ` geoff
2007-04-01 19:57       ` pedro henrique antunes de oliveira
2007-04-01 20:07         ` Charles Forsyth [this message]
2007-04-01 20:11           ` pedro henrique antunes de oliveira
2007-04-01 20:26             ` Charles Forsyth
2007-04-01 21:13             ` ISHWAR RATTAN
2007-04-02  1:52               ` pedro henrique antunes de oliveira
2007-04-01 12:08 erik quanstrom
2007-04-01 12:35 ` pedro henrique antunes de oliveira
2007-04-01 14:39   ` Uriel
2007-04-01 15:11   ` C H Forsyth
2007-04-01 17:35     ` pedro henrique antunes de oliveira
2007-04-01 18:05       ` erik quanstrom
2007-04-02  9:14 phao
2007-04-02  9:31 ` Anselm R. Garbe
2007-04-02  9:38   ` Charles Forsyth
2007-04-02  9:42     ` C H Forsyth
2007-04-02  9:45     ` Anselm R. Garbe
2007-04-02 12:49       ` pedro henrique antunes de oliveira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1eb89280c77a80750662f0114c3468b5@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).