May 26, 2012

Post: How to Monitor MySQL with Percona's Nagios Plugins

mysql-deadlocks plugin can help you detect such problems, in conjunction with Percona Toolkit’s pt-deadlockis too small. The server is approaching max_connections. Overflowing the max_connections setting is a bit like a lack of disk space: it is

Post: Helgrinding MySQL with InnoDB for Synchronisation Errors, Fun and Profit

mysql-test-run.pl to accept a new option: –helgrind.  The patch is a copy-paste-modify of the already existing Callgrind support and isa potential deadlock. The locks in question are LOCK_global_system_variables and LOCK_system_variables_hash. Deadlock isis remains a lot of the last kind). What

Post: A quest for the full InnoDB status

is that its output is limited to 64000 bytes, so a long list of transactions or a large deadlock dump may easily exhaust the limit. MySQL… output into innodb_status. file located in MySQL data directory. Unfortunately this is a startup time parameter, so unless you set it… see what MySQL process ID is: garfield ~ # ps ax | grep [m]ysqld 11886 ? Ssl 0:01 /usr/sbin/mysqld –defaults-file=/etc/mysql/my…

Post: Test Drive of Solid

…it is hard to tell what is really happening. Test 3: Phantom rows: Table before test: select * from test2; +—-+——–+ | id | names | +—-+——–+ | 1 | Mysql | | 2…lock wait not a deadlock. Test 2: SELECT FOR UPDATE: mysql> begin; Query OK, 0 rows affected (0.00 sec) mysql> select * from …

Post: SHOW INNODB STATUS walk through

a ;; *** WE ROLL BACK TRANSACTION (2) For last deadlock Innodb shows transactions which caused deadlocks, their state during deadlock, what locks they were holding and whatis done by adjusting innodb_thread_sleep_delay variable. Value is specified in microseconds. mysql tables in use 1, locked 0 is

Post: SELECT LOCK IN SHARE MODE and FOR UPDATE

…affects your application and perform changes required. What is missing in Innodb locking.? In my …before MySQL performs like matching, and row is not unlocked if it does not match. Smarter deadlock…FROM INNODBTable; – A lot of shared locks on Innodb table but no updates. Supporting MySQL hints “HIGH_…

Post: READ-COMMITED vs REPETABLE-READ in tpcc-like load

what is better isolation level is poping up again and again. Recently it was …is interesting as I expect a lot of contention on row level having small dataset. I used as usually tpcc-mysql… However, however. For 10w run I got 60 Deadlock errors “1213, Deadlock found when trying to get lock; try …

Comment: How Percona diagnoses MySQL server stalls

a very interesting story about MySQL deadlocks. I will share here only the results of a long long investigation. The …than with all 16 cores. IMPORTANT: note that what resulted the best combination for cores was to…. if you use cores on different cpus it is BAD, context swiches are much higher. Also …

Comment: Beware of MyISAM Key Cache mutex contention

…looked a classic old style deadlock. Actually reserches revealed that FreeBSD isis used for fulltext search, so no InnoDB possible for now. My question is, is it possible that it is only related to a MySQLa software to put on its knees a monster 16 Xeon cores 16gb box. What is your opinion? What

Post: MySQL Limitations Part 1: Single-Threaded Replication

…-to-write ratio is. What are some workarounds? Here are a few I’ve seen: Use DRBD replication instead of MySQL replication. Problem: you… in the same order. If any error occurred, such as a deadlock or lock wait timeout, then the coordinator would instruct the… work well in some cases, such as when deadlocks are common; but it is overall the least disruptive or different from the…