Skip to main content

Explain This RAM Usage?

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  I'm not entirely sure what you're looking to solve here.  Are you expecting cPanel tools to use more RAM, or the database system to use more RAM?  I am personally a big fan of bumping query cache if you have RAM to burn, as that will only make database queries faster, but if you could get me more details on what you're expecting to happen or what you'd like to change I can likely get you better information.

    0
  • consultant

    I'm trying to solve the issue of the system not making efficient use of the physical RAM. Just trying to figure out why based on the data I have in front of me the system is showing it's never using more than half the physical RAM. There's nothing in the configuration that should be preventing it.  Since this is more of a Linux question than a Cpanel question I also posted on a Linux forum. 

    There isn't a performance issue. One response was the same as my best guess in that the momentary fluctuation in RAM use that causes the swap to increase but doesn't show any increase in physical RAM usage most likely is so brief the 1-minute polling interval of my system monitor doesn't catch it.  

    Regard query_cache.  It is no longer best practice to use it. So much so that it was removed in MySQL 8 and it was deprecated all the way back in MySQL 5.7.  This essentially explains why it was removed from MySQL.

    10 reasons why MySQL Query Cache should be switched off | Art will save you from MySQL quicksand! (wordpress.com)

    I realize I use MariaDB and not MySQL but MariaDB is essentially following suit to an extent. From MariaDB 10.1.7 onwards, query_cache is no longer enabled by default because of the same reasons listed in the article.

    0
  • cPRex Jurassic Moderator

    I did see that query_cache was off when I was looking for a default value on my box - thanks for posting some reasons why!

    I'm afraid I'm not going to have much good information on my end for this one so maybe the more generic Linux groups might have some ideas.

    0

Please sign in to leave a comment.