Howdy, Stranger!

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


how do I know my VPS is using swap?
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.

how do I know my VPS is using swap?

any info in the output of 'top'? thanks

Comments

  • bruh21bruh21 Member, Host Rep
    free -h
    Thanked by 1yoursunny
  • miaumiau Member

    f and select swap. Or just use htop.
    But swap is 512mb vps thing you certainly don't need it💁‍♂️

  • do you mean if you use swap? or does your provider sell you a VPS from a node that uses swap?

  • @Fast22 said:
    do you mean if you use swap? or does your provider sell you a VPS from a node that uses swap?

    just the statistics how my apps use swap.

  • @frakass said:
    any info in the output of 'top'? thanks

    free -m -h in the terminal

  • Daniel15Daniel15 Veteran
    edited April 2022

    There's a line in top labelled as "MiB Swap".

    Note that some usage of swap is expected even if the RAM is not full. If an app has allocated a lot of RAM but is not using all of it very often, the kernel may decide that the infrequently used parts of that RAM would actually be more useful for caching, and swap out those pages. You can reduce the vm.swappiness sysctl to reduce the likelihood of this happening.

    Thanked by 1bulbasaur
  • If you are a boom victim, your entire RAM is actually swap.

  • @dahartigan said:
    If you are a boom victim, your entire RAM is actually swap.

    That's not exactly true, but is nearly the case.

    Thanked by 1dahartigan
  • @dahartigan said:
    If you are a boom victim, your entire RAM is actually swap.

  • @dahartigan said: If you are a boom victim, your entire RAM is actually swap.

    >

    do you mean if my neighbors were trying to consume out all the physical memory then my VM should be using the swap?

  • @frakass said:

    @dahartigan said: If you are a boom victim, your entire RAM is actually swap.

    >

    do you mean if my neighbors were trying to consume out all the physical memory then my VM should be using the swap?

    I mean that boom deliberately oversells swap as RAM, so even if you think you're using RAM and not swap, behind the scenes it was actually swap the whole time.

    Thanked by 1idflorin
  • dane_dohertydane_doherty Member
    edited April 2022

    *slaps roof of Kingston SSD drive* This bad boy can fit so much "RAM" in it

    Thanked by 2bulbasaur mhn
  • kdhkdh Member
    edited April 2022

    free -m for swap usage
    swapon -s for list of swaps

  • @dahartigan said:
    If you are a boom victim, your entire RAM is actually swap.

    You can always run a memory benchmark and see

Sign In or Register to comment.