Re: what kind of computer for programmer ?
- From: "Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx>
- Date: 27 Jun 2005 09:47:54 -0700
Randy Howard wrote:
> On Mon, 27 Jun 2005 10:58:43 -0500, Rob Thorpe wrote
> (in article
> <1119887923.577165.133820@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>):
>
>
> > I did a small test:
> > The machine I'm sitting in front of is a 2.4GHz Intel Xeon with 1GB of
> > RAM and a ATA-100 hard-disk. I'm compiling a ~16Kloc C and C++ program
> > I maintain with Microsoft Visual C++ v6. For the purpose of this test
> > I rebuilt all the files, including the header-cache file. From the
> > local disk this took 9 seconds, from a ramdisk (using AR soft ramdisk)
> > it took 3 seconds.
>
> No doubt. The problem is, projects small enough to fit easily
> into most ramdisk setups compile so quickly that they aren't
> needed. The really big projects, which do take a long time to
> compile, and really need a speeding up, are too large to fit in
> any but the really agressively sized ramdisks (think 64-bit
> address spaces, or at least >32).
A project would have to be very big indeed to fill a modern PC's
memory.
The 16Kloc project above is 600KB (measuring disk-space not file size).
Extrapolating it's likely a 1.6 million line program would be about
60MB in source form. If it's intermediate files take up say 5x the
size of the source I would need a 300MB ram-disk.
> As such, more RAM to avoid paging, parallel compiles (if your
> system supports make -j and particularly with multiple
> processors), and a very good storage subsystem are the better
> general solution. This is precisely why ramdisks have gone from
> being common to being rare over time.
If you have an extremely large project to compile, then yes a very good
storage subsystem is better. Parallel compiles are useful either way.
(If you have a project that large I'd be tempted to go to distributed
compiles, or a remote compile server with high-bandwidth disks and many
processors)
> > For compiling only a few files the ram-disk is not likely to be any
> > quicker.
>
> Exactly.
But, this is never the problem. If you change something and a handful
of files recompile, that's ok however you do it. The problem comes
when many files need to be recompiled, or an entire rebuild is needed.
> > I think the difference is also less on the free-unices with GNU tools.
>
> Any UNIX system, free or not is probably faster on equivalent
> hardware.
Probably, I mention those in particular because of the useful gcc
--pipe switch.
.
- Follow-Ups:
- Re: what kind of computer for programmer ?
- From: Randy Howard
- Re: what kind of computer for programmer ?
- From: Phlip
- Re: what kind of computer for programmer ?
- References:
- what kind of computer for programmer ?
- From: SAILOR99
- Re: what kind of computer for programmer ?
- From: gswork
- Re: what kind of computer for programmer ?
- From: Rob Thorpe
- Re: what kind of computer for programmer ?
- From: Johan \"MrDutchy\" van den Broek
- Re: what kind of computer for programmer ?
- From: Randy Howard
- Re: what kind of computer for programmer ?
- From: Rob Thorpe
- Re: what kind of computer for programmer ?
- From: Willem
- Re: what kind of computer for programmer ?
- From: Rob Thorpe
- Re: what kind of computer for programmer ?
- From: Randy Howard
- what kind of computer for programmer ?
- Prev by Date: Re: what kind of computer for programmer ?
- Next by Date: Re: what kind of computer for programmer ?
- Previous by thread: Re: what kind of computer for programmer ?
- Next by thread: Re: what kind of computer for programmer ?
- Index(es):
Relevant Pages
|
Loading