Skip to main content

Creating a file-based SWAP on your Beagleboard

Related image


On the Beagleboard you should expect to require a swap file given the limitation of how little RAM is available (between 256 MB and 512 MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256 MB not being enough RAM).
Some images (such as those from Linaro.org) do not come with a swap partition or any swap space allocated.
Under Linux, swap space can be either a dedicated partition or a swap file. Both can be mounted as swap which the OS can access.

Creating a Swapfile

The following commands will create a 512MB file, limit access only to root, format it as swap and then make it available to the OS:
sudo mkdir -p /var/cache/swap/   
sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=512
sudo chmod 0600 /var/cache/swap/swapfile 
sudo mkswap /var/cache/swap/swapfile 
sudo swapon /var/cache/swap/swapfile 
To tell the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:
/var/cache/swap/swapfile    none    swap    sw    0   0
To verify that the swapfile is accessilble as swap to the OS, run "top" or "htop" at a console.

Comments

Popular posts from this blog

Library for performing speech recognition, online and offline

This github project has a very detail description on some of the most popular speech recognition engines with installation steps and how-tos. Speech recognition engine/API support: CMU Sphinx  (works offline) Google Speech Recognition Google Cloud Speech API Wit.ai Microsoft Bing Voice Recognition Houndify API IBM Speech to Text Snowboy Hotword Detection (works offline) https://github.com/Uberi/speech_recognition

The most effective SEO tools for your website

Look no further, I have gathered a list of Search-Engine-Optimization (SEO) tools for anyone to maintain and monitoring your website traffic and performance. A very good list of SEO tools can be found in this SEO checker article https://smallseotools.com/website-seo-score-checker/ For a simple quick status check on your website, this SEO tool  will give you the insight information about your website. https://smallseotools.com/website-seo-score-checker/ Also, for performance checking, you should always enable gzip compression on your web server. To check if your web server is gzip enabled, CheckGZIPCompression tool is a great tool. Is your web site optimized for Chat APPs and social networks ? Most likely NOT ! RichLinkPreview is an awesome tool to validate your web site for Chat APPs and social networks.