Re: what kind of computer for programmer ?



Willem wrote:
> Rob wrote:
> ) This depends on the system. The last time I did this the machine had
> ) enough memory to disk-cache the intermediate files - but the operating
> ) system didn't do this well. So, overall a ramdisk was faster.
>
> If you use a ramdisk, the files never have to be written to disk at all,
> even with a write-caching FS the intermediates will still be written out
> after X seconds, degrading performance.

Exactly. The problem is the disk cache tends to start writing back
during the compile.

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.

For compiling only a few files the ram-disk is not likely to be any
quicker.

I think the difference is also less on the free-unices with GNU tools.

.



Relevant Pages

  • Re: RAMDisk and harddisk - Revisited
    ... but your constatation that driver load fails is not accurate in some amount based on info you gave us. ... Only if it is a cloned disk they can have same diskid, but this would be completely different error. ... the ATA Flash Disk was detectable and mountable from RAMDisk image as described. ... e.g. IDE ATA Flash or IDE hard drives. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Oops!
    ... Yes minimizing disk ... SSD with about 1.4 gigs free, at 9 blocks written per second (assuming ... Instead run it on a ramdisk. ... sudo chmod 777 rd/work ...
    (rec.games.corewar)
  • very large ramdisk setup problems
    ... I'm trying to set up a very large RAM disk -- 2 GB, ... We are looking at RAMDisk as a way to avoid having those temporary ... tmpfs -- seems to work, ... If I build a ramdisk in ext2 or some other regular file system will ...
    (comp.os.linux.misc)
  • Re: best distro to install on CF card?
    ... all the components I need and the plan is to install a Linux system onto ... the actual Linux files, not a ramdisk image that's loaded ... I would start off making everything in sight readonly except /tmp and /var/log using a disk, and gradually reconfiguring it and removing unwanted stuff till you get no errors...then transfer the moveable bits to ramdisk and the static bits to flash. ...
    (comp.os.linux.setup)
  • very big ramdisks
    ... I'm trying to set up a very large RAM disk -- 2 GB, ... We are looking at RAMDisk as a way to avoid having those temporary ... Is there any way to keep tmpfs from being swapped? ... If I build a ramdisk in ext2 or some other regular file system will ...
    (comp.os.linux.setup)