Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > MySQL Veritabanı SQL

MySQL Veritabanı SQL SQL MySQL Access MSSQL Oracle Veritabani Database

Cevapla
 
LinkBack (3) Seçenekler Stil
  #291 (permalink)   iTrader 
Alt 2008-02-15, 18:57
Raiden - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Jan 2005
Mesajlar: 227
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 3
iTrader: %0/0
Raiden is on a distinguished road
Standart

benim ki de bu şekilde: default ayarlı hali

sunucu: p4 3 GHZ 1 GB ram

[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
max_allowed_packet=64M
query_cache_size=256M
query_cache_type=1
max_connections=300

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


bu şekilde gerçi cpu %0.3 gibi kullanıyor bu halde bişey yapmaya gerek var mı ? yoksa şuan böyle kullanmaya devam edeyimmi adminim?

bir de php hızlandırıcı kurulması etki eder mi hız açısından ?
__________________
Conquer Online Yusuf KOÇ Ayva inegöl

Konu Raiden tarafından (2008-02-15 Saat 18:59 ) değiştirilmiştir..
Alıntı ile Cevapla

  #292 (permalink)   iTrader 
Alt 2008-02-20, 09:37
Member
 
Üyelik tarihi: Jan 2008
Mesajlar: 142
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 1
iTrader: %0/0
ShanGaL is an unknown quantity at this point
Standart

my.cnf:

The MySQL server
[mysqld]
default-character-set=latin5
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M


#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

Top değerleride bunlar:


top - 09:35:45 up 3 days, 10:32, 1 user, load average: 4.22, 3.02, 2.27
Tasks: 151 total, 4 running, 147 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.4% us, 6.4% sy, 0.0% ni, 20.3% id, 26.6% wa, 0.2% hi, 0.2% si
Mem: 4128176k total, 3736976k used, 391200k free, 117300k buffers
Swap: 2096472k total, 200k used, 2096272k free, 2877656k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
13861 apache 16 0 38 0:17.04 0.4 286m 16m 6400 R httpd
15011 mysql 15 0 35 1885:51 1.3 176m 51m 5480 S mysqld
14418 apache 16 0 13 0:06.84 0.5 290m 20m 7736 S httpd
14421 apache 15 0 10 0:00.59 0.5 289m 20m 7992 S httpd
13834 apache 16 0 5 0:00.55 0.6 289m 22m 10m R httpd
12662 apache 16 0 1 0:03.46 0.6 289m 25m 12m S httpd
12656 apache 18 0 1 0:00.91 0.3 284m 11m 4088 S httpd
13754 apache 16 0 1 0:03.52 0.4 285m 15m 7616 S httpd
14292 apache 15 0 1 0:00.26 0.4 285m 14m 6044 S httpd
14492 apache 16 0 1 0:00.04 0.3 285m 13m 5060 S httpd
12886 root 15 0 0 0:00.62 0.0 1960 1048 784 R top
14042 apache 15 0 0 0:00.69 0.4 285m 15m 7424 S httpd
14493 apache 15 0 0 0:00.01 0.2 282m 7444 1564 S httpd
1 root 15 0 0 0:00.64 0.0 1704 552 472 S init
2 root RT 0 0 0:00.02 0.0 0 0 0 S migration/0
3 root 34 19 0 0:00.02 0.0 0 0 0 S ksoftirqd/0
4 root RT 0 0 0:00.00 0.0 0 0 0 S watchdog/0




Server dual 2 core 6600
4GB ram..

2 tane vbulletinli site taşıyor sadece.
Sayfaya girişler oldukça yavaş.
xcache kurulu.



Bir optimizasyon yapabilirmiyiZ?
Alıntı ile Cevapla

  #293 (permalink)   iTrader 
Alt 2008-02-21, 17:10
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
ShanGaL´isimli üyeden Alıntı Mesajı göster
my.cnf:

The MySQL server
[mysqld]
default-character-set=latin5
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M


#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

Top değerleride bunlar:


top - 09:35:45 up 3 days, 10:32, 1 user, load average: 4.22, 3.02, 2.27
Tasks: 151 total, 4 running, 147 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.4% us, 6.4% sy, 0.0% ni, 20.3% id, 26.6% wa, 0.2% hi, 0.2% si
Mem: 4128176k total, 3736976k used, 391200k free, 117300k buffers
Swap: 2096472k total, 200k used, 2096272k free, 2877656k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
13861 apache 16 0 38 0:17.04 0.4 286m 16m 6400 R httpd
15011 mysql 15 0 35 1885:51 1.3 176m 51m 5480 S mysqld
14418 apache 16 0 13 0:06.84 0.5 290m 20m 7736 S httpd
14421 apache 15 0 10 0:00.59 0.5 289m 20m 7992 S httpd
13834 apache 16 0 5 0:00.55 0.6 289m 22m 10m R httpd
12662 apache 16 0 1 0:03.46 0.6 289m 25m 12m S httpd
12656 apache 18 0 1 0:00.91 0.3 284m 11m 4088 S httpd
13754 apache 16 0 1 0:03.52 0.4 285m 15m 7616 S httpd
14292 apache 15 0 1 0:00.26 0.4 285m 14m 6044 S httpd
14492 apache 16 0 1 0:00.04 0.3 285m 13m 5060 S httpd
12886 root 15 0 0 0:00.62 0.0 1960 1048 784 R top
14042 apache 15 0 0 0:00.69 0.4 285m 15m 7424 S httpd
14493 apache 15 0 0 0:00.01 0.2 282m 7444 1564 S httpd
1 root 15 0 0 0:00.64 0.0 1704 552 472 S init
2 root RT 0 0 0:00.02 0.0 0 0 0 S migration/0
3 root 34 19 0 0:00.02 0.0 0 0 0 S ksoftirqd/0
4 root RT 0 0 0:00.00 0.0 0 0 0 S watchdog/0




Server dual 2 core 6600
4GB ram..

2 tane vbulletinli site taşıyor sadece.
Sayfaya girişler oldukça yavaş.
xcache kurulu.



Bir optimizasyon yapabilirmiyiZ?
Buradaki scriptin çıktısını da alabilirmiyim.
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #294 (permalink)   iTrader 
Alt 2008-02-21, 17:11
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Raiden´isimli üyeden Alıntı Mesajı göster
benim ki de bu şekilde: default ayarlı hali

sunucu: p4 3 GHZ 1 GB ram

[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
max_allowed_packet=64M
query_cache_size=256M
query_cache_type=1
max_connections=300

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


bu şekilde gerçi cpu %0.3 gibi kullanıyor bu halde bişey yapmaya gerek var mı ? yoksa şuan böyle kullanmaya devam edeyimmi adminim?

bir de php hızlandırıcı kurulması etki eder mi hız açısından ?

Relication kullanıyormusunuz.
Ek olarak http://forum.iyinet.com/mysql-verita...g-scripti.html çıktısını da verirmisiniz.
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #295 (permalink)   iTrader 
Alt 2008-02-21, 17:15
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Holokost´isimli üyeden Alıntı Mesajı göster
merhaba iyinet yeni sunucumun mysql optimizasyonunda yardımcı olur musunuz

AMD Athlon 64 X2 5200+
4096 DDR2 Ram
Centos 4.x
cPanel


Top
Kod:
top - 08:05:19 up 1 day, 57 min,  1 user,  load average: 12.57, 8.79, 7.26
Tasks: 222 total,  21 running, 197 sleeping,   0 stopped,   4 zombie
Cpu(s): 58.0%us,  7.4%sy,  0.2%ni, 33.7%id,  0.4%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   3500440k total,  3293824k used,   206616k free,   195588k buffers
Swap:  2031608k total,       80k used,  2031528k free,  1850356k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2617 mysql     15   0 53732  27m 2732 S   86  0.8 988:22.30 mysqld
18616 nobody    16   0 23820  14m 2168 R   34  0.4   1:45.20 httpd
28699 nobody    16   0 23820  14m 2168 R   11  0.4   1:18.40 httpd
 1609 nobody    16   0 18332 9492 1844 R   10  0.3   0:01.30 httpd
18747 nobody    15   0 23872  15m 2564 S   10  0.4   2:49.81 httpd
21716 nobody    15   0 23400  14m 2164 S    8  0.4   0:26.61 httpd
  339 nobody    15   0 23156  14m 1852 S    6  0.4   0:01.99 httpd
 1189 nobody    16   0 19752  10m 1932 S    6  0.3   0:00.36 httpd
 2141 nobody    16   0 16916 8036 1784 R    6  0.2   0:00.10 httpd
 8360 nobody    15   0 23912  14m 2164 S    6  0.4   1:19.82 httpd
24567 nobody    17   0 24872  15m 1936 R    6  0.5   0:08.04 httpd
25081 nobody    25   0  6548 2612 1108 R    6  0.1  14:11.80 perl
 2295 root      16   0 19640 9592 1576 S    2  0.3   0:00.01 cpsrvd-ssl
 2298 root      18   0 15656 6328 3220 R    2  0.2   0:00.01 xml-api
19791 root      15   0 19628 8936 1004 S    2  0.3   0:00.04 cpsrvd-ssl
    1 root      15   0  2044  640  552 S    0  0.0   0:01.06 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.15 migration/0
    3 root      34  19     0    0    0 R    0  0.0   0:01.06 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      RT   0     0    0    0 S    0  0.0   0:00.17 migration/1
    6 root      34  19     0    0    0 R    0  0.0   0:00.00 ksoftirqd/1
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S    0  0.0   0:00.01 events/0
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   10 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
   11 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
   15 root      10  -5     0    0    0 S    0  0.0   0:00.28 kblockd/0
   16 root      10  -5     0    0    0 S    0  0.0   0:00.05 kblockd/1
   17 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
  122 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue/0
  123 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue/1
  126 root      10  -5     0    0    0 S    0  0.0   0:00.00 khubd
  128 root      10  -5     0    0    0 S    0  0.0   0:00.00 kseriod
  196 root      19   0     0    0    0 S    0  0.0   0:08.85 pdflush
  197 root      10  -5     0    0    0 S    0  0.0   0:01.47 kswapd0
  198 root      17  -5     0    0    0 S    0  0.0   0:00.00 aio/0
  199 root      17  -5     0    0    0 S    0  0.0   0:00.00 aio/1
my.cnf

Kod:
[mysqld]
safe-show-database
skip-locking
skip-innodb
skip-name-resolve

datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Teşekkürler
http://forum.iyinet.com/mysql-verita...g-scripti.html çıktısını da alabilirmiyim.
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #296 (permalink)   iTrader 
Alt 2008-02-25, 12:37
Member
 
Üyelik tarihi: Jan 2008
Mesajlar: 142
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 1
iTrader: %0/0
ShanGaL is an unknown quantity at this point
Standart

Alıntı:
ShanGaL´isimli üyeden Alıntı Mesajı göster
my.cnf:

The MySQL server
[mysqld]
default-character-set=latin5
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M


#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

Top değerleride bunlar:


top - 09:35:45 up 3 days, 10:32, 1 user, load average: 4.22, 3.02, 2.27
Tasks: 151 total, 4 running, 147 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.4% us, 6.4% sy, 0.0% ni, 20.3% id, 26.6% wa, 0.2% hi, 0.2% si
Mem: 4128176k total, 3736976k used, 391200k free, 117300k buffers
Swap: 2096472k total, 200k used, 2096272k free, 2877656k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
13861 apache 16 0 38 0:17.04 0.4 286m 16m 6400 R httpd
15011 mysql 15 0 35 1885:51 1.3 176m 51m 5480 S mysqld
14418 apache 16 0 13 0:06.84 0.5 290m 20m 7736 S httpd
14421 apache 15 0 10 0:00.59 0.5 289m 20m 7992 S httpd
13834 apache 16 0 5 0:00.55 0.6 289m 22m 10m R httpd
12662 apache 16 0 1 0:03.46 0.6 289m 25m 12m S httpd
12656 apache 18 0 1 0:00.91 0.3 284m 11m 4088 S httpd
13754 apache 16 0 1 0:03.52 0.4 285m 15m 7616 S httpd
14292 apache 15 0 1 0:00.26 0.4 285m 14m 6044 S httpd
14492 apache 16 0 1 0:00.04 0.3 285m 13m 5060 S httpd
12886 root 15 0 0 0:00.62 0.0 1960 1048 784 R top
14042 apache 15 0 0 0:00.69 0.4 285m 15m 7424 S httpd
14493 apache 15 0 0 0:00.01 0.2 282m 7444 1564 S httpd
1 root 15 0 0 0:00.64 0.0 1704 552 472 S init
2 root RT 0 0 0:00.02 0.0 0 0 0 S migration/0
3 root 34 19 0 0:00.02 0.0 0 0 0 S ksoftirqd/0
4 root RT 0 0 0:00.00 0.0 0 0 0 S watchdog/0




Server dual 2 core 6600
4GB ram..

2 tane vbulletinli site taşıyor sadece.
Sayfaya girişler oldukça yavaş.
xcache kurulu.



Bir optimizasyon yapabilirmiyiZ?





Buda istediğiniz çıktı:




[root@server ~]# ./tuning-primer.sh

-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.0.54-log i686

Uptime = 7 days 18 hrs 57 min 34 sec
Avg. qps = 57
Total Questions = 38554678
Threads Connected = 2

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/...variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 293 out of 38554706 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

BINARY UPDATE LOG
The binary update log is enabled
The expire_logs_days is not set.
The mysqld will retain the entire binary log until RESET MASTER or PURGE MASTER LOGS commands are run manually
Setting expire_log_days will allow you to remove old binary logs automatically
See http://dev.mysql.com/doc/refman/5.0/...ster-logs.html

WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 7
Historic threads_per_sec = 7
Threads created per/sec are overrunning threads cached
You should raise thread_cache_size

MAX CONNECTIONS
Current max_connections = 100
Current threads_connected = 3
Historic max_used_connections = 101
The number of used connections is 101% of the configured maximum.
You should raise max_connections

MEMORY USAGE
Max Memory Ever Allocated : 186 M
Configured Max Per-thread Buffers : 158 M
Configured Max Global Buffers : 26 M
Configured Max Memory Limit : 184 M
Physical Memory : 3.93 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 536 M
Current key_buffer_size = 16 M
Key cache miss rate is 1 : 87
Key buffer fill ratio = 63.00 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is supported but not enabled
Perhaps you should set the query_cache_size

SORT OPERATIONS
Current sort_buffer_size = 512 K
Current read_rnd_buffer_size = 508 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 2426 queries where a join could not use an index properly
You have had 8 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 1024 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 64 tables
You have a total of 1075 tables
You have 64 open tables.
Current table_cache hit rate is 0%, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 32 M
Of 1790199 temp tables, 0% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 252 K
Current table scan ratio = 47 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 491
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
Alıntı ile Cevapla

  #297 (permalink)   iTrader 
Alt 2008-02-26, 09:25
Raiden - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Jan 2005
Mesajlar: 227
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 3
iTrader: %0/0
Raiden is on a distinguished road
Standart

Alıntı:
Raiden´isimli üyeden Alıntı Mesajı göster
benim ki de bu şekilde: default ayarlı hali

sunucu: p4 3 GHZ 1 GB ram

[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
max_allowed_packet=64M
query_cache_size=256M
query_cache_type=1
max_connections=300

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


bu şekilde gerçi cpu %0.3 gibi kullanıyor bu halde bişey yapmaya gerek var mı ? yoksa şuan böyle kullanmaya devam edeyimmi adminim?

bir de php hızlandırıcı kurulması etki eder mi hız açısından ?


Kod:
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -

MySQL Version 4.1.20 i686

Uptime = 3 days 19 hrs 11 min 31 sec
Avg. qps = 19
Total Questions = 6314660
Threads Connected = 1

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 6 out of 6314674 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/4.1/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 1
Historic threads_per_sec = 1
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 300
Current threads_connected = 1
Historic max_used_connections = 92
The number of used connections is 30% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
Max Memory Ever Allocated : 521 M
Configured Max Per-thread Buffers : 806 M
Configured Max Global Buffers : 273 M
Configured Max Memory Limit : 1 G
Physical Memory : 1007.61 M

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 105 M
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 67
Key buffer fill ratio = 49.00 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 39 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 15.55 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 4343 queries where a join could not use an index properly
You have had 11 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 1510 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 64 tables
You have a total of 2522 tables
You have 64 open tables.
Current table_cache hit rate is 0%, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 32 M
Of 14475 temp tables, 26% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 2636 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 32270
Your table locking seems to be fine
bu da benim ki adminim
__________________
Conquer Online Yusuf KOÇ Ayva inegöl
Alıntı ile Cevapla

  #298 (permalink)   iTrader 
Alt 2008-02-26, 19:46
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Raiden´isimli üyeden Alıntı Mesajı göster
Kod:
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -

MySQL Version 4.1.20 i686

Uptime = 3 days 19 hrs 11 min 31 sec
Avg. qps = 19
Total Questions = 6314660
Threads Connected = 1

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 6 out of 6314674 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/4.1/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 1
Historic threads_per_sec = 1
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 300
Current threads_connected = 1
Historic max_used_connections = 92
The number of used connections is 30% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
Max Memory Ever Allocated : 521 M
Configured Max Per-thread Buffers : 806 M
Configured Max Global Buffers : 273 M
Configured Max Memory Limit : 1 G
Physical Memory : 1007.61 M

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 105 M
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 67
Key buffer fill ratio = 49.00 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 39 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 15.55 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 4343 queries where a join could not use an index properly
You have had 11 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 1510 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 64 tables
You have a total of 2522 tables
You have 64 open tables.
Current table_cache hit rate is 0%, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 32 M
Of 14475 temp tables, 26% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 2636 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 32270
Your table locking seems to be fine
bu da benim ki adminim
[mysqld] altini asagidaki sekilde degistir, diger bolumler ayni kalsin.
innodb kullaniyorsan, ek ayarlar onerebilirim.

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
max_allowed_packet=64M
query_cache_size=50M
query_cache_type=1
query_cache_limit = 4M
max_connections=300
skip-locking
skip-name-resolve
key_buffer = 32M
table_cache = 5000
thread_cache_size = 128
low_priority_updates = 1
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #299 (permalink)   iTrader 
Alt 2008-02-26, 19:55
Raiden - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Jan 2005
Mesajlar: 227
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 3
iTrader: %0/0
Raiden is on a distinguished road
Standart

smf ve hazır portallar mevcut onlarda sanırım mutlaka vardır innodb seçeneği ona göre yazabilirseniz sevinirim. teşekkür ederim
__________________
Conquer Online Yusuf KOÇ Ayva inegöl
Alıntı ile Cevapla

  #300 (permalink)   iTrader 
Alt 2008-02-26, 19:56
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
ShanGaL´isimli üyeden Alıntı Mesajı göster
Buda istediğiniz çıktı:




[root@server ~]# ./tuning-primer.sh

-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.0.54-log i686

Uptime = 7 days 18 hrs 57 min 34 sec
Avg. qps = 57
Total Questions = 38554678
Threads Connected = 2

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/...variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 293 out of 38554706 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

BINARY UPDATE LOG
The binary update log is enabled
The expire_logs_days is not set.
The mysqld will retain the entire binary log until RESET MASTER or PURGE MASTER LOGS commands are run manually
Setting expire_log_days will allow you to remove old binary logs automatically
See http://dev.mysql.com/doc/refman/5.0/...ster-logs.html

WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 7
Historic threads_per_sec = 7
Threads created per/sec are overrunning threads cached
You should raise thread_cache_size

MAX CONNECTIONS
Current max_connections = 100
Current threads_connected = 3
Historic max_used_connections = 101
The number of used connections is 101% of the configured maximum.
You should raise max_connections

MEMORY USAGE
Max Memory Ever Allocated : 186 M
Configured Max Per-thread Buffers : 158 M
Configured Max Global Buffers : 26 M
Configured Max Memory Limit : 184 M
Physical Memory : 3.93 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 536 M
Current key_buffer_size = 16 M
Key cache miss rate is 1 : 87
Key buffer fill ratio = 63.00 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is supported but not enabled
Perhaps you should set the query_cache_size

SORT OPERATIONS
Current sort_buffer_size = 512 K
Current read_rnd_buffer_size = 508 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 2426 queries where a join could not use an index properly
You have had 8 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 1024 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 64 tables
You have a total of 1075 tables
You have 64 open tables.
Current table_cache hit rate is 0%, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 32 M
Of 1790199 temp tables, 0% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 252 K
Current table scan ratio = 47 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 491
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
[mysqld] altini asagidaki sekilde degistir, diger bolumler ayni kalsin.

[mysqld]
default-character-set=latin5
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
skip-name-resolve
query_cache_size=50M
query_cache_type=1
query_cache_limit = 4M
key_buffer = 32M
max_allowed_packet = 64M
max_connections=300
table_cache = 5000
thread_cache_size = 128
low_priority_updates = 1
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

Cevapla

LinkBacks (?)
LinkBack to this Thread: http://forum.iyinet.com/mysql-veritabani-sql/29477-mysql-cpu-kullan-m-my-cnf-optimizasyonu.html
Konuyu Başlatan For Type Tarih
Load sorunu yaşayanlar için genel tartışma konusu - vBulletin SEO Forums This thread Pingback 2007-12-05 17:27
Vbseo işlemciyi çok kasıyor - Page 2 - vBulletin SEO Forums This thread Pingback 2007-06-14 21:38
Vbseo işlemciyi çok kasıyor - vBulletin SEO Forums This thread Pingback 2007-04-13 23:00

Seçenekler
Stil

Yetkileriniz
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 Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
mysql in visual basic ile kullanılması Anonymous MySQL Veritabanı SQL 5 2007-08-29 23:00
2 Ay Öde 3 Ay Kullan Kampanyaları Uzak444 Dedicated CoLocation 0 2007-01-17 16:33
$50 lık adwords hesapları 13 ytl kullanıma hazır.. firar Google Adwords 4 2006-10-31 07:59
2 Ay Öde 3 Ay Kullan Kampanyası Uzak444 Dedicated CoLocation 0 2006-10-20 00:00
3 Ay Peşin Öde, 1 ay ücretsiz kullan! Dedicated ve VPS LNWServers Dedicated CoLocation 17 2006-06-09 20:14


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 14:22 .


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

Firefox