LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-25-2005, 09:07 AM   #1
mailbinoy
LQ Newbie
 
Registered: Dec 2004
Posts: 23

Rep: Reputation: 0
problem with a huge mysql db


hi guys,
i have got a problem managing a huge database. the database is around 3Gb and the largest table is 1.8 gb. it is being used by a vbullien forum. The problem i amfacing here is the database suddenly seems to stop growing above 3Gb. old posts are getting deleted. I have checked its a 32 bit linux, so filesystem limit should not be a problem. i have attatched the my.cnf below and the details of table that is probably causing the problem.


show mysql> show table status like 'post' \G
*************************** 1. row ***************************
Name: post
Type: MyISAM
Row_format: Dynamic
Rows: 5270236
Avg_row_length: 360
Data_length: 1900205540
Max_data_length: 281474976710655
Index_length: 225594368
Data_free: 0
Auto_increment: 5395146
Create_time: 2005-12-22 14:42:01
Update_time: 2005-12-24 15:46:38
Check_time: 2005-12-24 15:39:22
Create_options: max_rows=4294967295 avg_row_length=361
Comment:
1 row in set (0.00 sec)

notice the data_free is 0. The server has 16 GB ram quad zeon and runs only mysql. 6 seperate apache servers collect data from this server all running the same site.

any help will be highly appreciated. i am sure LQ has a huge mysql db. did any LQ mainteners face this problem? here's the my.cnf

[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
skip-external-locking
safe-show-database
skip-innodb
max_connections = 1000
key_buffer = 6000M
myisam_sort_buffer_size = 1024M
join_buffer_size = 10M
read_buffer_size = 5M
sort_buffer_size = 10M
table_cache = 7000
thread_cache_size = 2304
wait_timeout = 28800
connect_timeout = 15
tmp_table_size = 2048M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 160000
bulk_insert_buffer_size = 32M
thread_concurrency = 16
query_cache_limit = 50M
query_cache_size = 2048M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
set-variable = long_query_time=15
set-variable = low-priority-updates=1
log-slow-queries = /var/lib/mysql/slow_queries.log
tmpdir = /home/mysqltmp


[mysqld_safe]
err-log=/var/log/mysqld.log
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 384M
sort_buffer = 384M
read_buffer = 256M
write_buffer = 256M

Thanks, absolutely any help appreciated.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
a HUGE problem! please help... :( phead Linux - Newbie 3 09-30-2005 06:41 PM
Huge font problem jjswick Linux - Newbie 3 07-05-2005 08:24 AM
Very huge problem...need help wardialer SUSE / openSUSE 7 04-24-2005 02:47 PM
Huge Huge Problem With Forums!!! The_Insomniac Linux - General 1 06-07-2004 08:15 AM
I have a huge problem in mysql4? phantom_j3di Linux - Software 1 05-24-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration