[SOLVED] Temporary Swap

duald flipflopduald flipflop Posts: 4New Member
edited July 2016 in Memory
I was trying to compile something last night, I got an error saying I was out of virtual memory. Knowing that it's not a great idea for flash storage to use swap, I understand that one wouldn't want that by default. However when I tried running building a temporary swap partition, I couldn't run mkswap or swapon/off. Is this something ubilinux removed, or am I crazy?

I'm going to switch to Lubuntu for now because the program I was trying to compile last night has a PPA, so I may be able to get around this for now, but I'd like to know for future reference how to activate a temporary swap (especially since 1GB of RAM is a bit small these days).

Comments

  • DCleriDCleri Posts: 478Administrator, Emutex admin
    Hi Duald,

    I tried to enable a swap file on ubilinux and it works fine on my side.
    I am preparing a quick tutorial to add to our wiki/documentation so you could try it again.

    I'll keep you posted!
  • DCleriDCleri Posts: 478Administrator, Emutex admin
    Just added a simple tutorial to our wiki: https://up-community.org/wiki/Enable_Swap_on_ubilinux
  • KurtKurt Posts: 137New Member ✭✭
    Thanks, I will may also do this when I receive my Up board.

    I thought I would note, that one place I have bookmarked for setting up my different systems is:
    https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
    Which has some good information. Not sure if the tweaks will apply here or not, but thought I would mention this link
  • duald flipflopduald flipflop Posts: 4New Member
    That is exactly what I tried the first time. I'll try it again after I reinstall tonight. I'll let you know how it goes.
  • duald flipflopduald flipflop Posts: 4New Member
    edited July 2016
    So, something must have been going on in my previous install of ubilinux to not allow me to build swap like a normal system would. This time after reinstalling, a quick update, and restart of the machine, I was able to make a four gigabyte swap on my UpBoard and compile the project. Now I just gotta figure out some other settings to make this more friendly as a kiosk display and we're in business! Perhaps when done, I'll post a project log.
  • DCleriDCleri Posts: 478Administrator, Emutex admin
    Please do!

    We will soon enable a project section where the people from the community will be able to publish their work.
Sign In or Register to comment.