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

Installing VLC on Aspire One Linux
Published November 10, 2009

Installing VLC on Aspire One Linux

The below is instructions  on how to install VLC on an Acer AA1 running Linpus, these deatails and credit were found at […]

Published November 8, 2019

Mikrotik Script to calculate Average CPU Load & email notification

# Average CPU Load Notification.# This will email you once when average CPU Load reaches the set CPU Threshold value.# When average […]

Published March 1, 2019

Match a New AD user to an existing 365 user

To match a new AD user to an existing 365 user. match UPN and smtp Alias 2 install “Microsoft Online Services Sign […]

EFA Project Quarantined mail
Published July 20, 2023

EFA Project Quarantined mail

This adjusts the number of days to keep quarantined email etc/MailScanner/defaults /var/www/mailscanner/conf.php days to keep need to be edited in both the […]

Post navigation

  • Previous post install Proxmox guest agent in Debaim
  • Back to post list
  • Next post Install Webmin on Rocky 10

© 2026  – All rights reserved

Powered by WP – Designed with the Customizr Theme