Raspberry Pi Arch Linux Not Enough Memory Issue

by on Mar.30, 2014, under Electronic Projects, Raspberry Pi

Been a long time.

But pretty much have been wandering around wondering what to do. I got a used Raspberry Pi a some time ago and decided to start working in the Linux world for me and not just for work. 

The Arch Linux is a very robust and reliable. You add in only what you need to do the job.  But know that support from the general community is not as large as other loads. So be patient when looking for answers. This version is mostly for those who have a good understanding of Linux world.

I was working on project that required me to load in gdata. ( Google’s python library for many things, but for me I wanted the gdrive function)

Now my Raspberry Pi is of the older variety and it only has 256 mb memory. Which would be enough to run my project….but not enough to load the gdata library.

After a lot of reading and then taking the plunge…installed a swap file. (not a fan of swap files on embedded processors….can take up way to much of the processor and read/writes to a SD card)

-fallocate -l 128M /swapfile

-chmod 600 /swapfile

-mkswap /swapfile

-swapon /swapfile

Then add the following line to /etc/fstab.
/swapfile none swap defaults 0 0

After doing the above and rebooting….BAM…. and was able to installed gdata and the project moved forward. Great days!!!!

If wondering on a good place to start with the gdata, take a look at:

Motion-Dection RPI

Till next time, thanks for your time.




Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...