Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. #TIL how to add swap space easily on #OpenBSD

#TIL how to add swap space easily on #OpenBSD

Scheduled Pinned Locked Moved Uncategorized
tilopenbsd
1 Posts 1 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rqm@exquisite.socialR This user is from outside of this forum
    rqm@exquisite.socialR This user is from outside of this forum
    rqm@exquisite.social
    wrote last edited by
    #1

    #TIL how to add swap space easily on #OpenBSD

    1) Create a swapfile made of many many 0's, in the size of how large a swapfile you want, so e.g. for 16gb:
    $ dd if=/dev/zero of=~/.swapfile bs=1m count =16384

    2) Add it as swap:
    # swapctl -a ~/.swapfile

    3) For great success, check it out to get warm fuzzy feelings:

    $ swapctl -l
    Device 512-blocks Used Avail Capacity Priority
    /dev/sd2b 17065992 0 17065992 0% 0
    /home/puffy/.swapfile 33554432 0 33554432 0% 0
    Total 50620424 0 50620424 0%
    1 Reply Last reply
    1
    0
    • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups