Code Shop

Code Shop

Abhi Yerra  //  An entity composed of reality and pseudo-reality who enjoys coding, news, photography and wasting time.

Sep 14 / 9:05pm

Increasing Swap Space

Lately, I've been trying to compile Chromium on my desktop and I had been constantly getting an error associated with linking:

collect2: ld terminated with signal 9 [Killed]

After Googling around apparently the problem had to do with running out of swap space which causes the linking to fail. Chromium needs almost 700mb more memory to link than I was providing so it was failing. Interestingly, Linux has a really clean solution to increase the swap space.

sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo mkswap /swapfile
sudo swapon /swapfile

These three commands will create an empty file of 1gb, make that a swap file, and turn it on to be used.

 

0 comments

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter