Bug #21113 Duplicate printout in SHOW INNODB STATUS
Submitted: 18 Jul 2006 12:48 Modified: 20 Jun 2010 1:12
Reporter: Heikki Tuuri Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:5.0.19 OS:Any (All)
Assigned to: CPU Architecture:Any

[18 Jul 2006 12:48] Heikki Tuuri
Description:
Reported by Peter Zaitsev.

There is redundant printout below:

Ibuf for space 0: size 1, free list len 42, seg size 44, is empty
Ibuf for space 0: size 1, free list len 42, seg size 44,
0 inserts, 0 merged recs, 0 merges

Full printout:

mysql> show innodb status\G
*************************** 1. row ***************************
Status:
=====================================
060718 15:33:01 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 2 seconds
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 14, signal count 14
Mutex spin waits 18, rounds 240, OS waits 6
RW-shared spins 12, OS waits 6; RW-excl spins 2, OS waits 2
------------
TRANSACTIONS
------------
Trx id counter 0 260570
Purge done for trx's n:o < 0 242314 undo n:o < 0 0
History list length 4169
Total number of lock structs in row lock hash table 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0 0, not started, process no 31929, OS thread id 1201638320
MySQL thread id 7, query id 291427 localhost heikki
show innodb status
---TRANSACTION 0 260568, not started, process no 31929, OS thread id 1201834928
MySQL thread id 6, query id 291426 localhost heikki
select * from ibtest10c, ibtest10d where ibtest10c.a = ibtest10d.a
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (write thread)
Pending normal aio reads: 0, aio writes: 0,
 ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
69 OS file reads, 27009 OS file writes, 27004 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 912.54 writes/s, 912.54 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf for space 0: size 1, free list len 42, seg size 44, is empty
Ibuf for space 0: size 1, free list len 42, seg size 44,
0 inserts, 0 merged recs, 0 merges
Hash table size 34679, used cells 2, node heap has 1 buffer(s)
1093.95 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 0 504811116
Log flushed up to   0 504811116
Last checkpoint at  0 498878760
0 pending log writes, 0 pending chkp writes
26997 log i/o's done, 912.54 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 18324931; in additional pool allocated 1048448
Buffer pool size   512
Free buffers       260
Database pages     251
Modified db pages  174
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages read 62, created 189, written 35
0.00 reads/s, 8.50 creates/s, 0.00 writes/s
Buffer pool hit rate 1000 / 1000
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 31929, id 1192852400, state: sleeping
Number of rows inserted 10792, updated 0, deleted 10791, read 43203
364.82 inserts/s, 0.00 updates/s, 364.32 deletes/s, 1458.77 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================

How to repeat:
Run SHOW INNODB STATUS

Suggested fix:
Remove renundant prints. The insert/delete buffer is only contained in tablespace 0.
[18 Jul 2006 12:56] Heikki Tuuri
Osku is adding delete-mark and remove buffering. The printout must also be made more detailed so that we can monitor them.
[21 Jul 2006 6:22] Osku Salerma
Fixed in Innobase's 5.0 and 5.1 trees.
[1 Aug 2006 19:59] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/9916

ChangeSet@1.2227, 2006-08-01 21:59:58+02:00, tsmith@maint1.mysql.com +3 -0
  Applied innodb-5.0-ss677 snapshot.
  
  Fixes:
  - bug #19834: Using cursors when running in READ-COMMITTED can cause InnoDB to crash
  - bug #21112: InnoDB slow with > 100,000 .ibd files
  - bug #21113: Duplicate printout in SHOW INNODB STATUS
[22 Aug 2006 10:20] Tatiana Azundris Nuernberg
fixed by inno patchset merged into 5.1.12-beta (5.1-new-maint)
[13 Sep 2006 8:45] Timothy Smith
Pushed to 5.1.12
[13 Sep 2006 17:16] Timothy Smith
Also was previously pushed to 5.0.25
[13 Sep 2006 17:53] Paul DuBois
Noted in 5.0.25, 5.1.12 changelogs.

SHOW INNODB STATUS contained some duplicate output.
[5 May 2010 15:19] Bugs System
Pushed into 5.1.47 (revid:joro@sun.com-20100505145753-ivlt4hclbrjy8eye) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[6 May 2010 2:18] Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[28 May 2010 5:55] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (pib:16)
[28 May 2010 6:24] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[28 May 2010 6:52] Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100524185725-c8k5q7v60i5nix3t) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[29 May 2010 23:15] Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug.
Re-closing.
[17 Jun 2010 11:56] Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:35] Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 13:22] Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)