Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default MYSQL conf

    I am in the process of re tweaking my mysql conf

    Rather than ask a specific question firsrt, I just want to get a general idea of what to indentify a problem

    For example, I read that:

    query_cache_size= 32MB for every 1GB of RAM

    Now, if I have 3GB of RAM, that would mean 96MB right?

    I actually have it set to 512MB. I have never reverted back, due to the fact I never go into SWAP. With this said, if there is no swap, increasing to 512 is not causing a problem thus can only be better than having it set to 96MB

    Or am I missing something?

    Same applies for

    key_buffer = 128MB for every 1GB of RAM


    I read that those 2 our really important, so again I have assigned 956MB to the key buffer and still the memory threshold seems to cope as I never go into swap


    Is this a good way to go about it, or will this cause problems. When my site gets busy, problems are popping up.

    Should I revise my my.cnf methods or is swap = 10k a reason to turn a blind eye to the points I have mentioned above

    THANKS!

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If your caches are too large, then it will take an abnormally long time for the data in them to expire. This means SQL statements will produce incorrect results.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    Quote Originally Posted by cpanelkenneth View Post
    If your caches are too large, then it will take an abnormally long time for the data in them to expire. This means SQL statements will produce incorrect results.
    A side from incorrect data being given, could it have a reverse effect having cache so large?

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What do you mean by "reverse effect" ?

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    Quote Originally Posted by cpanelkenneth View Post
    What do you mean by "reverse effect" ?
    Where as typically the more memory you can give to something

    But, giving to much may effect other features or services

    I mean, at the moment there is no swap, so Im not running out, but is it causing secret problems that arnt blatantly obvious

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If you are asking:

    By giving a lot, or too much, RAM to the MySQL process, will other processes suffer?
    The answer is: it depends.

    It depends upon typicall system load, amount of RAM total in the server, which Operating System is used, which kernel is used, other processes running, etc.

    By configuring the caches to be overly large, MySQL is also put under extra burden as it must track the data in the cache, which adds to its own management overhead.

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    Cool, I have heard it isnt too good anyway

    I think I might cut it to 256 MB

Similar Threads & Tags
Similar threads

  1. Faulty httpd.conf - can't rebuild with rebuildhttpd.conf
    By movielad in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2011, 12:43 PM
  2. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  3. /usr/local/cpanel/conf/general.conf
    By sehh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-27-2007, 12:55 AM
  4. Where is mysql.conf?
    By NetBloke in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-12-2007, 12:32 PM
  5. MySQL Conf suggestions on 512MB ram
    By taimz in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-08-2005, 04:33 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube