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
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.

Is Your VPS memory "ballooning" ?

The hypervisor can return the not used memory from your VPS to the host and share it for other users. But sometimes, especially on Windows it can slow down or crash the system, with unstable memory variation.
I experienced that, and resolved it, by uninstalling or disable it.
And now what's about debian, does it exist ?

lspci | grep balloon
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
lsmod | grep balloon
virtio_balloon         24576  0
virtio                 20480  6 virtio_console,virtio_balloon,virtio_scsi,virtio_pci,virtio_blk,virtio_net
virtio_ring            45056  6 virtio_console,virtio_balloon,virtio_scsi,virtio_pci,virtio_blk,virtio_net

You can disable it by removing the module

rmmod virtio_balloon

blacklisting it

echo 'blacklist virtio_balloon' >> /etc/modprobe.d/blacklist.conf 
update-initramfs -u 

or change the grub by adding at the beginning of the parameter on the right side of the equal sign in the original GRUB_CMDLINE_LINUX, and add a space like that

GRUB_CMDLINE_LINUX="virtio_balloon=0 

before second quote and run

update-grub

Some providers can overbook the ram, you paid the ram, of course you perhaps want to share it.

Thanked by 3vr10 zed mandala
Your choice !
  1. Do you care about ballooning ?36 votes
    1. NO
      52.78%
    2. YES but i do nothing
      19.44%
    3. YES and i change settings (if it's not locked)
      27.78%

Comments

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    I am generally kind, why reserve all the RAM when others can make use of it? Unless I really in need of the RAM or services that requires high performance, I see no point of removing ballooning.

    That said I will refrain from using providers who oversold memory by too much. Either way VPS is shared resources and I am glad that we can pay peanuts for those peak performance when needed.

  • xemapsxemaps Member

    @FAT32 said:
    I am generally kind, why reserve all the RAM when others can make use of it? Unless I really in need of the RAM or services that requires high performance, I see no point of removing ballooning.

    That said I will refrain from using providers who oversold memory by too much. Either way VPS is shared resources and I am glad that we can pay peanuts for those peak performance when needed.

    1) What system/os do you use ?
    2) Does all your VPS from all your providers have ballooning ?

    On my differents dedicated proxmox hosts i never activate it for the KVM/VPS, especially windows.

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    @xemaps said:

    @FAT32 said:
    I am generally kind, why reserve all the RAM when others can make use of it? Unless I really in need of the RAM or services that requires high performance, I see no point of removing ballooning.

    That said I will refrain from using providers who oversold memory by too much. Either way VPS is shared resources and I am glad that we can pay peanuts for those peak performance when needed.

    1) What system/os do you use ?
    2) Does all your VPS from all your providers have ballooning ?

    On my differents dedicated proxmox hosts i never activate it for the KVM/VPS, especially windows.

    1) Usually Debian, but I do agree Windows feels smoother without ballooning
    2) Didn't bother to check because it usually isn't the cause of slow performance

    Thanked by 4vr10 HuiW xemaps Chocoweb
  • HuiWHuiW Member

    @FAT32 said:

    @xemaps said:

    @FAT32 said:
    I am generally kind, why reserve all the RAM when others can make use of it? Unless I really in need of the RAM or services that requires high performance, I see no point of removing ballooning.

    That said I will refrain from using providers who oversold memory by too much. Either way VPS is shared resources and I am glad that we can pay peanuts for those peak performance when needed.

    1) What system/os do you use ?
    2) Does all your VPS from all your providers have ballooning ?

    On my differents dedicated proxmox hosts i never activate it for the KVM/VPS, especially windows.

    1) Usually Debian, but I do agree Windows feels smoother without ballooning
    2) Didn't bother to check because it usually isn't the cause of slow performance

    Love Debian too :D

    Thanked by 2FAT32 xemaps
  • RubbenRubben Member

    oh i guess another thing to disable besides qemu-ga and cloud-init. if im paying monies for a specific amount of ram you best believe i want that ram to be assigned to me and not some other rando

    Thanked by 2xemaps hezi
  • xemapsxemaps Member

    @Rubben said:
    oh i guess another thing to disable besides qemu-ga and cloud-init. if im paying monies for a specific amount of ram you best believe i want that ram to be assigned to me and not some other rando

    I have a|my story for cloud-init to post soon :D
    I will never trust preinstalled something.
    On all the VPS i tried is always something as [ gift ], i always reinstall from clean iso debian|windows, even it's difficult.

  • windows does not support ballooning and always take the whole configed memory.

  • ralfralf Member

    @FAT32 said:
    I am generally kind, why reserve all the RAM when others can make use of it? Unless I really in need of the RAM or services that requires high performance, I see no point of removing ballooning.

    Ballooning can lead to random kernel crashes though.

    That said I will refrain from using providers who oversold memory by too much. Either way VPS is shared resources and I am glad that we can pay peanuts for those peak performance when needed.

    I work on the assumption that every provider I use hasn't oversold memory. I can live with oversold CPU and shared iops, but having the hypervisor steal memory is too much. AFAIC, a host should always have RAM spare assuming every guest is using the full amount. If they don't have the RAM, they shouldn't sell it as RAM, simple as.

    If a provider does oversell RAM and insists on guests supporting ballooning, it's an instant red flag that the server is going to have terrible and unpredictable latency hitches.

    Thanked by 2xemaps FAT32
  • jsgjsg Member, Resident Benchmarker
    edited July 2025

    FWIW on the VDS I provide (for free) I've disabled ballooning completely, because in my eyes that's not VDS like and I also dislike it on a VPS but I'm afraid basically boiling down to "shared RAM" ~ "squeezing more users on a node" it's too alluring to quite a few providers ...
    And of course on a VDS I strive for basically "slicing the dedi into pieces" and providing those, i.e. providing as true a "virtual small dedi" as any possible.

    Thanked by 1xemaps
  • I originally answered 'no' but then I read some research so now I care about it :p

    TDLR: Not much impact for just a regular website server (0~4%), big impact for a database server (18%).

    Thanked by 3FAT32 ralf xemaps
  • xemapsxemaps Member

    Sample virtio_ballooning on/off gain on debian
    Ram staying on my client before: 7.41%, after 25.69% (on a total from 6GB) and stay now always straight at idle
    ram-virtio

  • zedzed Member

    Can you smell the providers adding it to TOS that you aren't allowed to disable the module?

  • zGatozGato Member

    @zed said:
    Can you smell the providers adding it to TOS that you aren't allowed to disable the module?

    zap-hosting.

    to be fair, after complaining like a kid, they ended up disabling it for me and now is an option in their panel. Since they made the right move (and I just idle VMs) I enabled it back cuz i don't care, just wanted to check (since I have a lifetime VPS) if I would be able to disable it if I wanted to.

    Thanked by 2xemaps zed
  • zedzed Member

    @zGato said: zap-hosting.

    to be fair, after complaining like a kid, they ended up disabling it for me and now is an option in their panel. Since they made the right move (and I just idle VMs) I enabled it back cuz i don't care, just wanted to check (since I have a lifetime VPS) if I would be able to disable it if I wanted to.

    Well shit. That seems like a legitimate interpretation of a clause that's probably in every TOS already.. even to me and I like to argue. TIL.

  • zGatozGato Member
    edited July 2025

    @zed said:

    @zGato said: zap-hosting.

    to be fair, after complaining like a kid, they ended up disabling it for me and now is an option in their panel. Since they made the right move (and I just idle VMs) I enabled it back cuz i don't care, just wanted to check (since I have a lifetime VPS) if I would be able to disable it if I wanted to.

    Well shit. That seems like a legitimate interpretation of a clause that's probably in every TOS already.. even to me and I like to argue. TIL.

    To be fair, either I'm dumb or I really haven't experienced ballooning with any other provider ever, zap was the first one I noticed it, mainly because they're actually kinda aggressive with it (you can get less than 50% of your total RAM at times)

    This VM should have 8GB for example:

  • xemapsxemaps Member

    One ok is (for 6GB ram) :

    free -h
                   total       utilisé      libre     partagé tamp/cache   disponible
    Mem:           5,8Gi       431Mi       5,2Gi       508Ki       347Mi       5,4Gi
    Échange:       974Mi          0B       974Mi
    
Sign In or Register to comment.