CloudLinux & Server Memory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ray
    Senior Member
    Forum ExplorerTechnical AssociateSolutions Developer
    • Mar 2021
    • 108

    #1

    CloudLinux & Server Memory

    memory
  • ray
    Senior Member
    Forum ExplorerTechnical AssociateSolutions Developer
    • Mar 2021
    • 108

    #2
    I have a question about how CloudLinux consumes system memory. Ive read through all of the comments about memory and most are related to LVEs. Nothing about this issue:

    I have a server with a moderate number of high traffic websites that was hosted on a server with 4GB RAM and a 4-core processor. I needed faster i/o so I migrated to an 8GB server with a faster 4-core processor and fast disks.

    Everything runs fine - the server handles the sites & traffic well. I thought this would be a good server to test CloudLinux. After installing CloudLinux, server memory use jumped from +/- 2GB to over 6GB. It seems as if every time I create a new vhost, memory use goes up by about 100MB.

    Can you verify that each new LVE consumes 100GB RAM? I dont intend to put 100s of sites on this server but it seems that CloudLinux severely restricts the number of sites I can add to the server. Unless I am completely misunderstanding LVE configuration, which is possible.

    Here are the server specs:

    8GB RAM
    4-core CPU
    LiteSpeed 4.2.2
    CloudLinux 6
    CPanel
    +/- 20 WP installs

    Apache & MySQL are tuned much like the previous server (which had 4GB) and there are no performance issues.

    Seems to be a lot of memory use that I cant account for. Any insights in to how CloudLinux effects system memory would be greatly appreciated.

    Comment

    • iseletsk
      Senior Member
      • Dec 2017
      • 1199

      #3
      Single LVE takes up around 120kb of RAM.
      So, 1000 sites should take up around 120MB of ram.

      Also, I am not sure what you mean by +/-2GB -- are you talking about disk cache / buffered memory?

      Comment

      • rk
        Junior Member
        • Apr 2017
        • 3

        #4
        Before installing CloudLinux, the system was using about 2GB out of 8GB RAM available.

        After installing CloudLinux and adding about 20 domains/websites, the system is using over 6GB RAM. Right now it is 6.5G out of 8GB system RAM. I have no caching enabled at this time.

        Comment

        • iseletsk
          Senior Member
          • Dec 2017
          • 1199

          #5
          Linux has disk caching enabled always -- you cannot disable it. I think you should read this: http://www.linuxatemyram.com/
          It really sounds like you are mixing up disk caching with RAM being unavailable.

          Comment

          • rk
            Junior Member
            • Apr 2017
            • 3

            #6
            OK, I will look that over ... thanks.

            Comment

            • rk
              Junior Member
              • Apr 2017
              • 3

              #7
              Im a dummy. Youre absolutely right about Linux caching borrowing the RAM. Been working with virtualization too much ...

              Comment

              Working...