Saturday, October 25, 2008

Talk some more about working efficiency on Terminal

Do you know how long compiling a kernel on different hardware with different configs will take?

$ time make -C /usr/src/linux-2.6.27/ -j5

1. that would take 25 minutes on my personal PC with 1 2.9GHz P4 and 512M RAM, 5400rpm IDE disk, a moderate configuration for desktop peripherals;
2. that would take 10 minutes on a Dell 2950 Server, which has dual core 3.0Gx2, 2GB RAM, 7200rpm SATA disk, a minimal config for this type of hardware;
3. that would take 5 minutes if distcc configured on 2 Dell 2950 machines, and compiled with "-j13";

Do you know how long compiling a software package will take on different hardware?

$ time { ./configure --prefix=/usr && make; }

and then:

$ make install DESTDIR=$PWD/dest

from LFS book, you could know the time in unit of SBU,

Use "time" to time it, anywhere the command will last longer than 1 second.

No comments: