Antonius [Denny] Harijanto Blog

Random useful tech stuffs I write to remind myself. Hopefully useful for you!

Pages

  • Home
  • ThinkPad
  • Arch Linux
  • Ubuntu
  • CS Projects
  • Machine Learning

Friday, May 3, 2024

Resizing Swap Size Ubuntu 23


```
# Check current swap size
cat /proc/swaps
sudo swapoff -a
# Create new swap file
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Check again
cat /proc/swaps

```

Posted by Antonius Denny Harijanto at 11:50 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2024 (1)
    • ▼  May (1)
      • Resizing Swap Size Ubuntu 23
  • ►  2023 (2)
    • ►  April (2)
  • ►  2020 (2)
    • ►  August (1)
    • ►  April (1)
  • ►  2019 (1)
    • ►  October (1)
  • ►  2018 (5)
    • ►  November (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
  • ►  2017 (7)
    • ►  November (1)
    • ►  August (1)
    • ►  July (2)
    • ►  May (3)
  • ►  2016 (4)
    • ►  December (3)
    • ►  October (1)
  • ►  2015 (18)
    • ►  December (1)
    • ►  October (12)
    • ►  May (1)
    • ►  April (3)
    • ►  March (1)
  • ►  2014 (2)
    • ►  September (1)
    • ►  January (1)
  • ►  2013 (4)
    • ►  May (4)
  • ►  2011 (3)
    • ►  December (1)
    • ►  November (2)

About Me

My photo
Antonius Denny Harijanto
View my complete profile
Awesome Inc. theme. Powered by Blogger.