Contact SalesSitemapCustomer Login

Warning: mysql_connect() [/function.mysql-connect]: Can't connect to MySQL server on 'coredb-01.spry.com' (13) in [path]/vpslink_template_files/contextual_ads.inc.php on line 56

Go Back   VPSlink Forums > Technical Discussion > HowTo's

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2009, 06:12 PM
Junior Member
 
Join Date: May 2009
Location: Kochi, India
Posts: 7
Send a message via Yahoo to johnmathe Send a message via Skype™ to johnmathe
Default MySql InnoDB engine on Link-3

Hi all,
Is it possible to set up mysql to use the default engine on the Link-3 hosting plan? (i.e. 256 Mb garunteed RAM)

Here is a sample /etc/mysql/my.cnf that I modified for a smaller footprint
Code:
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.

#skip-innodb
#
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=128M
innodb_additional_mem_pool_size=20M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=32M
innodb_log_buffer_size=8M
#
innodb_flush_log_at_trx_commit=1
Any help to make Innodb work on the Link 3 or modification of the config file will be appreciated

Thanks in advance
-john
Reply With Quote
  #2 (permalink)  
Old 05-22-2009, 03:43 PM
Junior Member
 
Join Date: May 2009
Location: Kochi, India
Posts: 7
Send a message via Yahoo to johnmathe Send a message via Skype™ to johnmathe
Default

i found some nice HowTos about low memory MySql on this site sorry for not looking around
(i'm not allowed to post the link but its in the HowTos wiki)
Reply With Quote
  #3 (permalink)  
Old 05-22-2009, 04:23 PM
Administrator
 
Join Date: Dec 2007
Posts: 1,141
Default

Tested on a Link-4 OpenVZ VPS without any other significant running processes:

Default MySQL Configuration
Code:
# free -m
             total       used       free     shared    buffers     cached
Mem:           500        151        348          0          0          0
-/+ buffers/cache:        151        348
Swap:            0          0          0

Posted MySQL Configuration
Code:
# free -m
             total       used       free     shared    buffers     cached
Mem:           500        270        229          0          0          0
-/+ buffers/cache:        270        229
Swap:            0          0          0

For testing purposes, I tweaked the configuration which you presented, reducing all of the memory values by 75% - here is the result:
Code:
# free -m
             total       used       free     shared    buffers     cached
Mem:           500        147        352          0          0          0
-/+ buffers/cache:        147        352
Swap:            0          0          0
It looks as though you will want to revisit your configuration - I would recommend decrementing the values significantly and then experimenting with increased values.

Last edited by DanL@VPSLink; 05-22-2009 at 04:31 PM.
Reply With Quote
Reply

Bookmarks

Tags
innodb, mysql, under 256mb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0