Bug #21113 Duplicate printout in SHOW INNODB STATUS
Submitted: 18 Jul 2006 14:48 Modified: 13 Sep 2006 19:53
Reporter: Heikki Tuuri
Status: Closed
Category:Server: InnoDB Severity:S3 (Non-critical)
Version:5.0.19 OS:Any (All)
Assigned to: Bugs System Target Version:

[18 Jul 2006 14: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 14: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 8:22] Osku Salerma
Fixed in Innobase's 5.0 and 5.1 trees.
[1 Aug 2006 21: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 12:20] Tatjana A. Nuernberg
fixed by inno patchset merged into 5.1.12-beta (5.1-new-maint)
[13 Sep 2006 10:45] Tim Smith
Pushed to 5.1.12
[13 Sep 2006 19:16] Tim Smith
Also was previously pushed to 5.0.25
[13 Sep 2006 19:53] Paul DuBois
Noted in 5.0.25, 5.1.12 changelogs.

SHOW INNODB STATUS contained some duplicate output.