discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Build GR 3.8 from source


From: Ron Economos
Subject: Re: [Discuss-gnuradio] Build GR 3.8 from source
Date: Mon, 22 Jul 2019 14:08:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Looks like dphys-swapfile is an alternative way to configure a swap file. I'll guess my "classic" way will still work though. You can test things with the following commands:

swapon -s

or

free

I would reboot and see if dphys-swapfile (or any swap space) is active with swapon -s or free. I'll guess it isn't, so try editing /etc/fstab as instructed and make sure that works on the next reboot.

Ron

On 7/22/19 13:37, Barry Duggan wrote:
Hi Ron,

Thank you for your excellent suggestion! I was able finish the last half of the make in 3 hours with no problems :)

In looking at your suggestion to make it permanent, I am concerned about the comments in fstab:

"""
proc            /proc           proc    defaults          0 0
PARTUUID=e625713b-01  /boot           vfat    defaults 0       2
PARTUUID=e625713b-02  /               ext4    defaults,noatime 0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
"""

Do I need to do something else?

Thanks again.

Barry KV4FV

On Sun, 21 Jul 2019 12:53:24 -0700, Ron Economos wrote:

When building GNU Radio on small systems, it's very easy to run out of memory (especially when building swig files). The remedy is to create a swap file.

sudo fallocate -l 2G /swapfile

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

To make is permanent, add this line to /etc/fstab

/swapfile  none  swap  sw  0  0

Ron




reply via email to

[Prev in Thread] Current Thread [Next in Thread]