Re: Slow performance using 3.23 on RH 8.0

2002-12-05 Thread Mirek Novak
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ledet, Mike wrote:
| I'm running Mysql 3.23.52 on a Redhat 8.0 installation booting to Gnome.
| The machine is a dual AMD 1800, 1 gig of ram, one Ultra ATA IDE drive, and 2
| 18 gig scsi 10,000 RPM drives on a RAID controller running Raid 0.
|
| I've got everything except /db on the IDE drive, /db is the only thing on
| the raid array.
|
| I've got a couple of smallish tables and one larger table with about 7 gigs
| of data.  The larger table is a fixed row format table with each row being
| 462 bytes wide.  I have a primary auto increment int column and a unique
| index on a varchar 60.  Pack keys is off, delayed key writes on.
|

I'm afraid, you table row  isn't fixed-length row, as far as you'll be using varchar your rows will not be considered to be a
fixed length rows. try to change it to char(60) (BINARY if you don't care for U/L case) this may help. it will be more helpful if
you provide table structure for us...

I have table with approx 6M rows with fixed length, used for site statistics with approx. ++250k rows/day. There are extensive
writes (UPDATE DELAYED) and minor reads and I'm not having problems... As for my config its 2x 1GHz PIII + 1GB RAM + 2 channel
onboard SCSI on 64-bit PCI WITHOUT RAID, 2x 16GB 10,000 RPM SCSI-HDD one disc is used for db data only. As for RAID 0 it is not
very good idea to have databases stored in that manner (safety - if one disk fails, you will lost everything ...).

| With this kind of hardware I was expecting pretty good performance, but I
| haven't seen it yet.  I finally decided something was wrong when I had to
| run an alter table on the 7 gig table, adding 3 columns, a varchar 12, a
| varchar 50, and a datetime columm and it took over 10 HOURS to complete.
|

As I wrote, to keep table fixed-length you must not use varchar. As for datetime I'm using UNSIGNED int(11) and unix_timestamp to
store date and time.

| That seems way too slow to me...
|
| I've included relevant portions (the uncommented portions) from my.cnf, the
| OS installation was fairly vanilla, using defaults for just about
| everything.  The file system is ext3.

ext-3 is so-called journaling file system. it has small performance slow-down (no flame, please ;-))

|
| Any suggestions or things I haven't included that you need?  Sorry if I'm
| doing something really stupid here... relatively new to Linux after a lot of
| years of windoze.

everyone had been newbie. Keep trying :)

TIPS:
	- check settings for your RAID controller -
		are you using native driver for SCSI/RAID controller ?
		# of TCQ (tagged commands queuing)
		elevator sorting - should be ON
	- do you really need ext3?
	- rethink structure of your table (R. M. Ryordan Designing relational database,  ISBN:073560634X  - it is MS oriented, but
theoretical parts are very good and helpful for any platform)

|
| Thanks in advance
|
| Mike

- --
Mirek Novak
Anima Publishers, s.r.o.
Prilucka 360, Zlin 760 01
Czech Republic
tel/fax: 067/721 91 32
jabber:[EMAIL PROTECTED]
ICQ:119499448
GSM:+420603807837

AUTO.CZ
http://www.auto.cz

NEWS.AUTO.CZ
http://news.auto.cz

FORMULE1.CZ
http://www.formule1.cz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj3vJNoACgkQz+tW1WzgrpSjSACcD1R30nPOyUUgjmg//61aQaBX
ltsAmwTEHf+A3eZo5kNKnF6F+qJs8Keb
=53Lx
-END PGP SIGNATURE-


-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Sever hangs after ...

2001-06-26 Thread Mirek Novak

Hi,

what does mean following ...

mysql show processlist;
++--+---+--++---+-+--+

| Id | User | Host  | db   | Command| Time  |
State   | Info |
++--+---+--++---+-+--+

|  5 |  |   | autocz   | Delayed_insert | 1 |
Waiting on cond | dt   |
| 12 |  |   | abanners | Delayed_insert | 1 |
Waiting on cond | statistics   |
| 18 |  |   | formule1 | Delayed_insert | 3 |
Waiting on cond | pristup  |
|   9405 |  |   | carnext  | Delayed_insert | 6863  |
Waiting on cond | dailytraffic |
|  10782 |  |   | auto_cz  | Delayed_insert | 18453 |
Waiting on cond | obrazky_stat |
| 277825 |  |   | autonews | Delayed_insert | 67010 |
Waiting on cond | pristup  |
| 277826 |  |   | autonews | Delayed_insert | 68166 |
Waiting on cond | obrazky_stat |
| 314346 |  |   | formule1 | Delayed_insert | 56880 |
Waiting on cond | obrazky_stat |
| 350836 | root | localhost | auto_cz  | Sleep  | 189   |
NULL| NULL |
| 361247 | root | localhost | auto_cz  | Sleep  | 1910  |
NULL| NULL |
| 361471 | root | localhost | auto_cz  | Sleep  | 1919  |
NULL| NULL |
| 364842 | root | localhost | auto_cz  | Sleep  | 291   |
NULL| NULL |
| 365388 | root | localhost | auto_cz  | Sleep  | 184   |
NULL| NULL |
| 365940 | root | localhost | auto_cz  | Sleep  | 151   |
NULL| NULL |
| 365950 | root | localhost | auto_cz  | Sleep  | 67|
NULL| NULL |
| 367387 | root | localhost | auto_cz  | Sleep  | 1126  |
NULL| NULL |
| 367567 | root | localhost | auto_cz  | Sleep  | 1248  |
NULL| NULL |
| 367903 | root | localhost | auto_cz  | Sleep  | 474   |
NULL| NULL |
| 368390 | root | localhost | auto_cz  | Sleep  | 869   |
NULL| NULL |
| 368810 | root | localhost | auto_cz  | Sleep  | 2010  |
NULL| NULL |
| 368924 | root | localhost | auto_cz  | Sleep  | 736   |
NULL| NULL |
| 368995 | root | localhost | auto_cz  | Sleep  | 119   |
NULL| NULL |
| 370074 | root | localhost | auto_cz  | Sleep  | 301   |
NULL| NULL |
| 370141 | root | localhost | auto_cz  | Sleep  | 805   |
NULL| NULL |
| 370532 | root | localhost | auto_cz  | Sleep  | 796   |
NULL| NULL |
| 370613 | root | localhost | auto_cz  | Sleep  | 464   |
NULL| NULL |
| 370677 | root | localhost | auto_cz  | Sleep  | 452   |
NULL| NULL |
| 371171 | root | localhost | auto_cz  | Sleep  | 92|
NULL| NULL |
| 371216 | root | localhost | auto_cz  | Sleep  | 1557  |
NULL| NULL |
cut

and after while server goues to hell ...

Server status is 
mysql status
--
mysql  Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686)

Connection id:  456292
Current database:
Current user:   root@localhost
Server version  3.22.32
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 1 day 17 hours 5 min 22 sec

Threads: 102  Questions: 9955492  Slow queries: 4  Opens: 39241  Flush
tables: 1  Open tables: 63
--


TIA, Mirek Novak




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php