Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    405

    VPS top -c question

    Hi

    If I have a VPS that has a min RAM of 512 MB and a burst of 2 GB what will I see using top -c?

    Will I see the min RAM or the Max Burstable RAM?

    Thanks

  2. #2
    Join Date
    May 2006
    Location
    Coimbra, Portugal
    Posts
    236
    You will see the total memory available, used, cached & buffers of the hardware node.

    To see your memory usage/burst check:
    cat /proc/user_beancounters

    Guaranteed = vmguarpages limit / 256 [MB]
    Used = privvmpages held / 256 [MB]
    Burstable memory = privvmpages limit / 256 [MB]

    PHP Code:
    #!/bin/bash
    bean=`cat /proc/user_beancounters`
    guar=`echo "$bean" | grep vmguar | awk '{ print $4;}'`
    burst=`echo "$bean" | grep privvm | awk '{ print $5;}'`
    priv=`echo "$bean" | grep privvm | awk '{ print $2;}'`
    let total=guar/256
    let used
    =priv/256
    let burst
    =burst/256
    echo "VPS memory usage:"
    echo "Used: $used MB"
    echo "Total: $total MB"
    echo "Burstable to: $burst MB" 


  3. #3
    Join Date
    Jun 2006
    Posts
    405
    Thanks I will look at this now.

    So Top -c command is showing what is available on the hardware node?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •