Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Allowed to make swap at VPS's at the cost of your own HDD space?

See title. I am curious if you are allowed to use up your own HDD space in order to create swap (or increase swap if one is available already). This is a general question btw, not a specific provider in mind. If you must know a provider (an example), I'll go with vmbox.co.

Some providers don't add swap to the plan, so I was curious if you can do this on your own.

Comments

  • I haven't tried but I don't see why not. Swap is just a repartitioning of disks.

  • They can't stop you (possibly on openvz you can...) but if you swap heavily you may get labelled an IO abuser...

    Thanked by 1coreflux
  • Yes this works. I've confirmed this with BuyVM before. Their smallest KVM plan doesn't have enough RAM to run a yum update on a fresh centos install. I added my own swap partition (1gb) and boom it worked.

    @francisco might be able to chime in if this has changed (either the default templates include swap or things work out of the box)

  • AnthonySmithAnthonySmith Member, Host Rep

    Yeah there should be no reason for this to be a problem for the host as long as you are using it for the right reasons, if it because you don't have enough ram 90% of the time that is the wrong reason, swap is disk based and not a ram replacement, for big updates and occasional things it should be fine.

    Thanked by 2jar netomx
  • Maybe it's helpful to point out that you don't even need to repartition for this - you can make a swap file using a loop back device. linux.com/learn/tutorials/442430-increase-your-available-swap-space-with-a-swap-file

  • If you own the kernel, then you are free to add swap file / swap partition for your kernel to use.

    In case you do not own the kernel (i.e. OpenVZ, LXC, docker), you have no chance.

  • raindog308raindog308 Administrator, Veteran

    New business plan: buy a 512MB VPS, add 32GB swap file, sell 64x2GB VPSes, enjoy hookers & blow.

  • raindog308 said: New business plan: buy a 512MB VPS, add 32GB swap file, sell 64x2GB VPSes, enjoy hookers & blow.

    Same concept, but on a dedicated server, has already been done lots of times.

  • An oldie but goodie:

Sign In or Register to comment.