Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
The trick is to make a file and then tell the swapon program to use it. Here’s how to create, for example, a 64 megs swap file on your root partition (of course make sure you have at least 64 megs free):
And you can then add it to your swap pool: swapon /swapfile With that you have 64 megs of swap added. Don’t forget to add the swapon command to your startup files so the command will be repeated at each reboot.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government. No gods, no masters. "A druid is by nature anarchistic, that is, submits to no one." http://uk.druidcollege.org/faqs.html
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop. "There are no stupid questions - Only stupid answers!"
jemadux wrote:ok viking .... i will post more tips !!
Please do!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government. No gods, no masters. "A druid is by nature anarchistic, that is, submits to no one." http://uk.druidcollege.org/faqs.html
I just made a swapfile on my raspberry pi (it has 512 M standard memory -). As we have learned we can make both a swapfile or a separate partition for swap.
What you choose will not matter in terms of speed or efficiency so you can simply pick what you like.
BUT I chose a slightly different method than our friend above:
(I will be doing a write-up of my Raspberry pi installation as soon as I understand what I am doing ....so sit tight... )
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop. "There are no stupid questions - Only stupid answers!"
Just to be clear: If you have a swap partition and need more swap space; you can use the swapfile in addition to the existing swap partition. I had set my swap partition to 16 MB and I have 6G of memory so I originally almost figured I did not need swap.
After having installed Steam glances reported that all the swap was constantly full so I decided to add a 2G swapfile.
..... # /dev/sda7 UUID=23a0dd5a-40b5-4c94-a583-8e278b0f7491 swap swap sw 0 0 # /swapfile This is what I added no /dev no UUID only /swapfile /swapfile none swap sw 0 0
That sure beats trying to drag the swap partition bigger with gparted.
And if you regret it you can easily remove the swap file like this (as root):
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop. "There are no stupid questions - Only stupid answers!"
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop. "There are no stupid questions - Only stupid answers!"
Good job! It will be inspiring this kid too, once I can finally get a wireless connection.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government. No gods, no masters. "A druid is by nature anarchistic, that is, submits to no one." http://uk.druidcollege.org/faqs.html
Here I have recorded a terminal sessions that shows the difference between swapoff -a and swapoff /swapfile. It shows that I have both a swap partition of 15 MB and a swapfile of 2G. I can turn on/off both.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop. "There are no stupid questions - Only stupid answers!"
viking60 wrote:Here I have recorded a terminal sessions that shows the difference between swapoff -a and swapoff /swapfile. It shows that I have both a swap partition of 15 MB and a swapfile of 2G. I can turn on/off both.
This is SO COOL. I was going to ask how you put it in the container for it there, but I see how now in the code. You present so much cool stuff to us. Many kudos.
Thank you!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government. No gods, no masters. "A druid is by nature anarchistic, that is, submits to no one." http://uk.druidcollege.org/faqs.html