Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


how to configure mariadb innodb for maximum memory saving? 1gb of ram
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

how to configure mariadb innodb for maximum memory saving? 1gb of ram

I have 1 GB of RAM on my server. Currently running Wordpress and the other projects.

How do I configure MariaDB and InnoDB for maximum memory savings? Let's pretend I only have 256 MB of RAM.

I know memory is cheap, and I can enlarge the capacity if I want. But optimizing a server is my hobby, and I want to get maximum performance.

This is my.cnf

[mysqld]
performance_schema = off
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
query_cache_limit = 256K
query_cache_size = 0
thread_concurrency = 2
innodb_file_per_table = 1

Thank you :smile:

Comments

  • MicrocharonMicrocharon Member
    edited June 2023

    Limit some value like

    sort_buffer_size = 32K
    read_buffer_size=32K
    read_rnd_buffer_size=32K

    No need to optimize server anymore, WordPress itself may take much RAM if more guests visit your site.

  • Use less memory or add more memory

  • al1r4dal1r4d Member
    edited June 2023

    @Microcharon said:
    Limit some value like

    sort_buffer_size = 32K
    read_buffer_size=32K
    read_rnd_buffer_size=32K

    No need to optimize server anymore, WordPress itself may take much RAM if more guests visit your site.

    how many visitors are present at the same time with that specification?
    25 visitor sper second?

  • al1r4dal1r4d Member

    @dahartigan said:
    Use less memory or add more memory

    Hehe

  • al1r4dal1r4d Member

    up

  • Disabling the query cache (query_cache_size = 0) is going to hurt performance quite a bit.

    Your best bet is to reduce the number of times you need to hit the database. For example, use Nginx FastCGI cache, WordPress super cache (stores cache as HTML files on disk that Nginx can serve directly), etc. Failing that, switch to SQLite.

  • al1r4dal1r4d Member

    @Daniel15 said:
    Disabling the query cache (query_cache_size = 0) is going to hurt performance quite a bit.

    Your best bet is to reduce the number of times you need to hit the database. For example, use Nginx FastCGI cache, WordPress super cache (stores cache as HTML files on disk that Nginx can serve directly), etc. Failing that, switch to SQLite.

    Thank you, Sir

  • fazarfazar Member

    @RustyKumar this thread might useful for you. :)

  • al1r4dal1r4d Member

    @fazar said:
    @RustyKumar this thread might useful for you. :)

    oke bang :smile:

    Thanked by 1fazar
Sign In or Register to comment.