Hi,
I have a problem to compile kernel in RAM faster than on harddisk. I have still got the same compilation time consumption similar to on hard disk.
commands:
swapoff -a
mkdir -p /tmp/ramdisk
sudo mount -t tmpfs -o size=4G tmpfs /tmp/ramdisk
tar xvf linux-3.2.2.tar.xz -C /tmp/ramdisk/
cd /tmp/ramdisk/
make clean
make mrproper
make defconfig
export CONCURRENCY_LEVEL=`grep -c '^processor' /proc/cpuinfo`
time make
---time on ramdisk and harddisk:
real 6m4.874s
user 5m6.919s
sys 0m36.714s
real 6m7.436s
user 5m6.135s
sys 0m37.198s
---time on ramdisk and harddisk with -j20 parameter:
1m18s
Could please anybody help me what am I doing wrong ? Why is not ramdisk much faster than harddisk ?
Thank you for any clue.
Martin
Bookmarks