Can I create a swap file with OpenVZ VPS?

It is not possible to create a swap file within a VPS when using ourĀ OpenVZ VPS.

However, at Farbyte we create a virtual swap file for each VPS, which actually uses real RAM. It is half the size of your VPS RAM allocation (e.g. 512MB RAM = 256MB, 1GB RAM = 512MB swap, etc.).

Allowing swap file creation within a public VPS hosting service is a poor practice allowed by some other VPS hosting services.
The reason being that many people try to create large swap files instead of getting extra RAM, thus their VPS thrashes the disk sub-system causing poor performance for not just the VPS in question, but also affecting all other VPS on the server.

This is one of the reasons OpenVZ offers great performance in comparison to some other technologies, as it just doesn't allow swap file creation within the VPS.

If you think you need more swap, you should really be considering upgrading your VPS RAM.
This can be done by logging into the client area at

  • vps
  • 85 Users Found This Useful
Was this answer helpful?

Related Articles

Can I Upgrade VPS Resources and Options

You can upgrade your VPS resources and options by: Logging into Click the VPS you...

Where Are The Support Boundaries With Unmanaged VPS?

Our unmanaged VPS support responsibility covers the following: Initially ensuring the VPS is...

Do Farbyte Block Ports To VPS?

We do not block outgoing ports from your VPS. However, some commonly abused bot / hacker...

How Can I Change My OpenVZ VPS Package?

Please ensure your current VPS is using less disk storage than the package you wish to change to...

What are the Farbyte guidelines for extra IPv4 and IPv6 allocations?

IPv4 As you may already know, the public IPv4 address space is almost completely depleted and as...