Monday, July 22, 2019

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

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
>

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment