Welcome to Centmin Mod Community
Register Now

Install RAM requirement for Alma/Rocky 8/9

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Kintaro, Jul 7, 2025.

Tags:
  1. Kintaro

    Kintaro Member

    110
    11
    18
    Dec 2, 2016
    Italy
    Ratings:
    +32
    Local Time:
    7:02 AM
    1.15.x
    MariaDB 10
    I read that the minimun requirement is 4GB.
    I have some linode 1GB vps that needs upgrade and the price step is huge from 5$ to 24$ per month.


    Is anyone using them with 1 or 2 GB?

    Should I abandon the philosophy of "1 vps = 1 project" for that of "1 vps = 4/5 projects"?
     
  2. MaximilianKohler

    MaximilianKohler Member

    214
    9
    18
    Jun 23, 2023
    Ratings:
    +39
    Local Time:
    10:02 PM
    You could switch to Hetzner or another cheaper host.
     
  3. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    2:02 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    My smallest VPS is 2GB RAM and 2CPU so you should be good with something smaller.

    I don't think 1GB would work anymore like with centos 7.
     
  4. Pauly

    Pauly Premium Member Premium Member

    17
    2
    3
    Jan 9, 2019
    UK
    Ratings:
    +4
    Local Time:
    6:02 AM
    Recommended is 4GB but minimum is 2GB, i have been successfully running a 2GB VPS for testing purposes but recently come up against this, seems i am a few MBs short :(

    Code:
                              
    Warning: physically installed memory and swap too low for Centmin Mod
    Installation [Installed: 1674 MB < 1689 MB memory and 3686 MB < 3686 MB swap (recommended minimum)]
    
    aborting install...
    
    I am tied in to contract on a couple 2GB VPS so hopefully there is a simple way to circumvent this and allow installation ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Yeah you'd really want 4GB if you can.

    Though if you have 2GB and just shy of some, on fresh Centmin Mod install create /etc/centminmod/custom_config.inc persistent config file BEFORE actual Centmin Mod install and place in the file the variable
    Code (Text):
    ISMINMEM_OVERRIDE='y'

    which will lower the threshold to 1.43GB for test VPSes

    Then run Centmin Mod installer
     
  6. Pauly

    Pauly Premium Member Premium Member

    17
    2
    3
    Jan 9, 2019
    UK
    Ratings:
    +4
    Local Time:
    6:02 AM
    Thanks @eva2000 this is just what i needed

    I used
    Code (Text):
    mkdir /etc/centminmod
    nano /etc/centminmod/custom_config.inc

    and added
    Code (Text):
    ISMINMEM_OVERRIDE='y'

    when installing CMM i got the exact same error as listed above
    Code (Text):
    Installation [Installed: 1674 MB < 1689 MB memory and 3686 MB < 3686 MB swap (recommended minimum)]
    
    aborting install...
    

    i got around this by removing the single quotes each side of the 'y' so the contents of the custom_config.inc now reads
    Code (Text):
    ISMINMEM_OVERRIDE=y

    Now when runnign CMM installer it proceeds ok and memory output reads
    Code (Text):
    Ok: swap is sufficient for Centmin Mod installation despite low memory
    Installation [Installed: 1674 MB < 1689 MB memory, but 4194300 MB >= 3686 MB swap]
    

    I dont fully understand why this fails and then works but i have had it fail multiple times with 'y' and then install multiple times once edited ?

    just wanted to post some feedback in case it helps anyone else trying to install on 2GB machine
     
    Last edited: Jul 13, 2025
  7. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what SSH client/terminal you using? try doing this instead as there's both memory and swap size overrides. Your failed one didn't pass swap file size check with 3686 MB < 3686 MB swap
    Code (Text):
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    echo "ISMINMEM_OVERRIDE='y'" >> /etc/centminmod/custom_config.inc
    echo "ISMINSWAP_OVERRIDE='y'" >> /etc/centminmod/custom_config.inc
    


    FYI, Centmin Mod min memory and swap file checks are usually
    • EL7 (CentOS 7)
      • Minimum RAM: 922 624 bytes (~ 900 MB)
      • Minimum swap: 2 097 152 bytes (2 GB)
    • EL8 (AlmaLinux 8 / Rocky Linux 8 / CentOS 8)
      • Minimum RAM:
        • default: 1 730 000 bytes (~ 1.7 GB)
        • if override (ISMINMEM_OVERRIDE=y): 1 500 000 bytes (~ 1.43 GB)
      • Minimum swap:
        • default: 3 774 873 bytes (~ 3.6 GB)
        • if override (ISMINSWAP_OVERRIDE=y): 2 097 152 bytes (2 GB)
    • EL9 (AlmaLinux 9 / Rocky Linux 9 / CentOS 9)
      • same as EL8 above
    • EL10 (AlmaLinux 10 / Rocky Linux 10 / CentOS 10)
      • same as EL8 above
     
  8. Pauly

    Pauly Premium Member Premium Member

    17
    2
    3
    Jan 9, 2019
    UK
    Ratings:
    +4
    Local Time:
    6:02 AM
    Im installing on alma9 and use MobaXterm for SSH

    Code (Text):
    [root@localhost ~]# mkdir -p /etc/centminmod
    [root@localhost ~]# touch /etc/centminmod/custom_config.inc
    [root@localhost ~]# echo "ISMINMEM_OVERRIDE='y'" >> /etc/centminmod/custom_config.inc
    [root@localhost ~]# echo "ISMINSWAP_OVERRIDE='y'" >> /etc/centminmod/custom_config.inc
    [root@localhost ~]# curl -O https://centminmod.com/installer83.sh && chmod 0700 installer83.sh && bash installer83.sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  109k    0  109k    0     0   162k      0 --:--:-- --:--:-- --:--:--  162k
    Last metadata expiration check: 8:54:55 ago on Sun 13 Jul 2025 12:52:47 AM UTC.
    Package glibc-langpack-en-2.34-168.el9_6.20.x86_64 is already installed.
    Dependencies resolved.
    Nothing to do.
    Complete!
    
    Installed:
      bc-1.07.1-14.el9.x86_64
    
    
                   total        used        free      shared  buff/cache   available
    Mem:            1674         418        1083           8         331        1255
    Swap:              0           0           0
    
    create 4GB swap file
    1048576+0 records in
    1048576+0 records out
    4294967296 bytes (4.3 GB, 4.0 GiB) copied, 8.05385 s, 533 MB/s
    -rw-r--r--. 1 root root 4.0G Jul 13 09:47 /swapfile
    mkswap: /swapfile: insecure permissions 0644, fix with: chmod 0600 /swapfile
    Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
    no label, UUID=e9751bea-9b60-4e99-a620-41eed02c4ae4
    swapon: /swapfile: insecure permissions 0644, 0600 suggested.
    Filename                                Type            Size            Used           Priority
    /swapfile                               file            4194300         0              -2
                   total        used        free      shared  buff/cache   available
    Mem:            1674         353          95           8        1388        1320
    Swap:           4095           0        4095
    
    
    For EL8 and EL9 operating system the minimum and recommended memory requirements have increased
    Minimum: 2GB memory with 4GB swap disk
    Recommended: 4GB memory with 4GB swap disk
    Warning: physically installed memory and swap too low for Centmin Mod
    Installation [Installed: 1674 MB < 1689 MB memory and 3686 MB < 3686 MB swap (recommended minimum)]
    
    aborting install...
    

    then i delete custom_config and try again without the single quotes and it runs ???
    Code (Text):
    [root@localhost ~]# touch /etc/centminmod/custom_config.inc
    [root@localhost ~]# echo "ISMINMEM_OVERRIDE=y" >> /etc/centminmod/custom_config.inc
    [root@localhost ~]# echo "ISMINSWAP_OVERRIDE=y" >> /etc/centminmod/custom_config.inc
    [root@localhost ~]# curl -O https://centminmod.com/installer83.sh && chmod 0700 installer83.sh && bash installer83.sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  109k    0  109k    0     0   635k      0 --:--:-- --:--:-- --:--:--  635k
    Last metadata expiration check: 8:58:42 ago on Sun 13 Jul 2025 12:52:47 AM UTC.
    Package glibc-langpack-en-2.34-168.el9_6.20.x86_64 is already installed.
    Dependencies resolved.
    Nothing to do.
    Complete!
    
                   total        used        free      shared  buff/cache   available
    Mem:            1674         389         126           8        1320        1285
    Low:            1674        1547         126
    High:              0           0           0
    Swap:           4095           0        4095
    Total:          5770         389        4222
    
    re-create 4GB swap file
    1048576+0 records in
    1048576+0 records out
    4294967296 bytes (4.3 GB, 4.0 GiB) copied, 8.01918 s, 536 MB/s
    -rw-------. 1 root root 4.0G Jul 13 09:51 /swapfile
    
    mkswap: /swapfile contains holes or other unsupported extents.
            This swap file can be rejected by kernel on swap activation!
            Use --verbose for more details.
    
    Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
    no label, UUID=8ebb0a24-129b-4230-a149-5c44d78a09e9
    Filename                                Type            Size            Used           Priority
    /swapfile                               file            4194300         0              -2
                   total        used        free      shared  buff/cache   available
    Mem:            1674         356          93           8        1386        1317
    Low:            1674        1580          93
    High:              0           0           0
    Swap:           4095           0        4095
    Total:          5770         356        4189
    
    
    Ok: swap is sufficient for Centmin Mod installation despite low memory
    Installation [Installed: 1674 MB < 1689 MB memory, but 4194300 MB >= 3686 MB swap]
    
    suspected the editor so went to putty on windows instead and got the exact same failure on a fresh image ?
    It works so i dont need a solution just finding it all very strange !
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Could be a bug, 1st run your swap file doesn't exist and gets reported but has message on abort 3686 MB < 3686 MB swap

    On 2nd run swap file has now been created automatically by Centmin Mod and reports 4194300 MB >= 3686 MB swap

    Might need for me to double check when Centmin Mod is evaluating the size of the swap file as it may need re-evaluating after swap file is created on 1st run

    edit: updated 140.00beta01 and 132.00stable with bug fix for this to ensure swap size is re-calculated after auto creation of swap file :)
     
  10. atomi

    atomi Member

    40
    11
    8
    Jul 14, 2018
    Ratings:
    +26
    Local Time:
    8:02 AM
    1.29.x
    10.6
    I'm using it in multiple alma8 servers with 1GB in production sites and its running great. Ofc it depends of your site but mine are basic php+mysql without any fancy techs. You just have to manually disable memchecks from CMM installer before you run it

    Here are some stats from one of my (1core/1GB ram/20gb ssd) box with sites that have tens of simultaneous users
    Screenshot-2026-01-02.jpg
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Thanks for sharing, interesting I imagine nginx and php-fpm compiles/updates are slower as there's an amount of memory required too alot with YUM updates? Personally I wouldn't use less than 2GB myself and to be safe 4GB for comfortable usage.
     
  12. atomi

    atomi Member

    40
    11
    8
    Jul 14, 2018
    Ratings:
    +26
    Local Time:
    8:02 AM
    1.29.x
    10.6
    1GB works fine with alma8+CMM but you have to tweak cmm installer to get it working. Now whats harder is 10GB disk, I have couple centos7 boxes with 1GB ram and 10GB disk running fine but I'm unable to get those reinstalled with alma8 + cmm because disk is too small. I still have plans to get it work somehow when I have time
     
    Last edited: Jan 2, 2026
  13. atomi

    atomi Member

    40
    11
    8
    Jul 14, 2018
    Ratings:
    +26
    Local Time:
    8:02 AM
    1.29.x
    10.6
    yep those are slow but being a cheapskate I dont mind waiting since luckily you dont see those updates often

    still waiting for a param insane_admin=y which would disable all kind of checks in installer so you could try exotic serverconfigs like 512mb ram and 1tb disk ;)
     
  14. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    very hard to do on YUM/DNF based linux unfortunately these days heh