Skip to content
Back home
The home of William Rendell
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
  • Search
Back home
  • Search
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
Home » Technical » Computing » Add swap file into linux
Computing Technical

Add swap file into linux

by William Rendell|Published February 11, 2026

fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

If RAM = 4GB
Use swap = 4GB–8GB

If RAM = 8GB
Swap = 2GB–4GB is fine

  • Linux
  • network

You may also like

Published May 2, 2012

the received certificate has expired

When migrating a SBS 2003 server to SBS 2011 you may receive the error “The received certificate has expired” whilst migrating the public folders from Exchange […]

Published October 11, 2013

Draytek 2860 Port 443 / SSL not working port forward

There seems to be a bug in the Draytek 2860 router, even though I had changed the management ports from the default […]

Wifi channels for Mikrotik AX devices
Published March 11, 2025

Wifi channels for Mikrotik AX devices

Credit to https://mikrotikmasters.com/

HTC Desire HD
Published October 5, 2010

HTC Desire HD

Acclaimed handset manufacturer HTC’s new HTC Desire HD and Desire Z smartphones boast of their respective striking features that enable them to […]

Post navigation

  • Previous post install Proxmox guest agent in Debaim
  • Back to post list

© 2026  – All rights reserved

Powered by WP – Designed with the Customizr Theme