How much RAM my server is actually using ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freecartoonporn
    Confirmed User
    • Jan 2012
    • 7683

    #1

    Tech How much RAM my server is actually using ?

    my server shows

    Code:
    free -h
                  total        used        free      shared  buff/cache   available
    Mem:           125G         43G         16G        1.2G         65G         79G
    Swap:          4.0G        2.3G        1.7G
    this box has 128 gigs of ram.

    am i really using all of it ? or i can move to 64 gigs ram server ?

    server is using
    mysql innodb_buffer_pool_size = 70G (actually database size is only 20 GB )
    elastic 15 gb

    thanks for your time.
    SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
  • shake
    frc
    • Jul 2003
    • 4663

    #2
    I would install htop, it has a more useful output.
    Crazy fast VPS for $10 a month. Try with $20 free credit

    Comment

    • freecartoonporn
      Confirmed User
      • Jan 2012
      • 7683

      #3
      Originally posted by shake
      I would install htop, it has a more useful output.
      i have htop installed and it shows.

      SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

      Comment

      • ghjghj
        So Fucking Banned
        • Jun 2005
        • 3768

        #4
        Originally posted by freecartoonporn
        Code:
        free -h
        available
        79G

        Comment

        • NatalieMojoHost
          Confirmed User
          • Aug 2013
          • 1479

          #5
          The deal with Linux is: it will try to use all of the RAM in the system for speeding up the filesystem and other things. That's what the buf/cache is.

          The shortest answer is - you have 79GB available and 43GB hard in-use, but Linux is taking another 65GB and using it to slightly speed up your system in other ways.

          If another process needs that memory, say MySQL or Elasticsearch, it's able to pull it out of that buffer/cache pool and away from the filesystem. But it will pull it from the 16GB free first.

          Hope this helps clear things up for you.

          MojoHost.COM | natalie at mojohost dot com | Skype natalie.ac | Telegram @znatalie. Since 1999: 70 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • kjs
            Confirmed User
            • Jan 2014
            • 167

            #6
            If you really want to understand whats happening on the server install netdata.

            https://github.com/netdata/netdata

            You will have to enable the hooks for whatever your architecture is e.g. nginx/apache php etc.

            VPS is even more misleading when it comes to the standard tools because they usually don't include wait times, swaps, connection pools running out, etc.
            Skype: live:1794c463efa7cc23

            Comment

            • wankawonk
              Confirmed User
              • Aug 2015
              • 1018

              #7
              Originally posted by NatalieMojoHost
              The deal with Linux is: it will try to use all of the RAM in the system for speeding up the filesystem and other things. That's what the buf/cache is.

              The shortest answer is - you have 79GB available and 43GB hard in-use, but Linux is taking another 65GB and using it to slightly speed up your system in other ways.

              If another process needs that memory, say MySQL or Elasticsearch, it's able to pull it out of that buffer/cache pool and away from the filesystem. But it will pull it from the 16GB free first.

              Hope this helps clear things up for you.
              solid answer

              I would recommend just using top, add up the "free" and "buf/cache" columns and that's how much you have "free". though you should always leave some buf/cache to speed up any potential swapping.

              Important elasticsearch detail: If your elasticsearch shard size exceeds the amount of heap space you allocate to it, elasticsearch will get a big speed boost from having memory available for buf/cache. So be careful to monitor that. don't just assign all your buf/cache to (for example) redis because it might severely impact your elasticsearch performance.

              Comment

              • freecartoonporn
                Confirmed User
                • Jan 2012
                • 7683

                #8
                Originally posted by NatalieMojoHost
                The deal with Linux is: it will try to use all of the RAM in the system for speeding up the filesystem and other things. That's what the buf/cache is.

                The shortest answer is - you have 79GB available and 43GB hard in-use, but Linux is taking another 65GB and using it to slightly speed up your system in other ways.

                If another process needs that memory, say MySQL or Elasticsearch, it's able to pull it out of that buffer/cache pool and away from the filesystem. But it will pull it from the 16GB free first.

                Hope this helps clear things up for you.
                Originally posted by wankawonk
                solid answer

                I would recommend just using top, add up the "free" and "buf/cache" columns and that's how much you have "free". though you should always leave some buf/cache to speed up any potential swapping.

                Important elasticsearch detail: If your elasticsearch shard size exceeds the amount of heap space you allocate to it, elasticsearch will get a big speed boost from having memory available for buf/cache. So be careful to monitor that. don't just assign all your buf/cache to (for example) redis because it might severely impact your elasticsearch performance.
                thank you, i wan planning to move my server to 64 gigs ram server, i guess more ram is always better.
                SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

                Comment

                • rowan
                  Too lazy to set a custom title
                  • Mar 2002
                  • 17393

                  #9
                  Originally posted by freecartoonporn
                  my server shows

                  Code:
                  free -h
                                total        used        free      shared  buff/cache   available
                  Mem:           125G         43G         16G        1.2G         65G         79G
                  Swap:          4.0G        2.3G        1.7G
                  I'm not so familiar with Linux, but the fact that you have some swap used, especially a couple of gigs, may suggest that at some point the RAM usage was a lot higher, and the system had to swap out an idle task.

                  Comment

                  • freecartoonporn
                    Confirmed User
                    • Jan 2012
                    • 7683

                    #10
                    Originally posted by rowan
                    I'm not so familiar with Linux, but the fact that you have some swap used, especially a couple of gigs, may suggest that at some point the RAM usage was a lot higher, and the system had to swap out an idle task.
                    maybe because of swappiness set to 60, so it tends to swap more often.
                    SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

                    Comment

                    Working...