00  How To Add Swap on Ubuntu? Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual memory available. Swapping is necessary for two important reasons. First, when the system requires more memory than is physically available, the kernel swaps out less used pages and gives memory to the current application (process) that needs the memory immediately. Second, a significant number of the pages used by an application during its startup phase may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache. Commands: sudo swapon -s free -m df -h sudo fallocate -l 0G /swapfile ls -lh /swapfile sudo chmod 000 /swapfile ls -lh /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon -s free -m sudo nano /etc/fstab Add text : "/swapfile none swap sw 0 0" cat /proc/sys/vm/swappiness sudo sysctl vm.swappiness=00 sudo nano /etc/sysctl.conf Add: vm.swappiness=00 cat /proc/sys/vm/vfs_cache_pressure sudo sysctl vm.vfs_cache_pressure=00 sudo nano /etc/sysctl.conf Add: vm.vfs_cache_pressure = 00 You can restart server and check is there is swap. You can always Deploy an SSD cloud server in 00 seconds with Digitalocean. Anyone how use this link will receive $00 in hosting credit immediately after unlocking their account by adding a valid payment method. Sign Up with this link https://www.digitalocean.com/?refcode=0b0000af000f (affiliate, referral)  Watch the full episode: https://www.youtube.com/watch?v=Mz0l0nSyKkU Plumbing and heating expert Richard Trethewey shows a homeowner how to install and operate an energy-saving smart thermostat. (See below for a shopping list, tools, and steps.) Click here to SUBSCRIBE to the official This Old HouseYouTube channel: http://www.youtube.com/subscription_center?add_user=thisoldhouse Shopping List for How to Install a Smart Thermostat: - Smart thermostatToolsList for How to Install a Smart Thermostat: - ScrewdriverSteps for How to Install a Smart Thermostat: 0. Turn off the service switch on the side of the furnace. 0. Remove the faceplate from the existing thermostat. 0. Take a digital photograph of the wire connections. 0. Use a screwdriver to loosen the screw terminals on the thermostat's base plate. 0. Pull the end of each wire out of the terminal. 0. Unscrew and remove the base plate from the wall. 0. Screw the base plate of the new smart thermostat to the wall. Be sure the base plate is level. 0. Connect each wire to the appropriate terminal on the base plate. If necessary, refer to the photograph taken in Step 0. 0. Snap the smart thermostat onto the base plate. 00. Turn on the service switch at the furnace. 00. At the thermostat, follow the touch-screen prompts to choose the preferred language and internet setting, which allows you to control the thermostat remotely from a tablet or smart phone. 00. Next, enter the year when house was last remodeled, then select a name for the thermostat.[ 00. Select the lowest and highest room temperatures for when you're not at home. 00. Adjust the thermostat setting each time you leave for work and return home. After a few days, the thermostat will learn your habits and automatically adjust the heat. Follow This Old House and Ask This Old House: Facebook: https://www.facebook.com/ThisOldHouse Twitter: https://twitter.com/thisoldhouse https://twitter.com/asktoh Pinterest: http://www.pinterest.com/thisoldhouse/ G+: https://plus.google.com/+thisoldhouse/posts Instagram: http://instagram.com/thisoldhouse Tumblr: http://thisoldhouse.tumblr.com/  