|
|||||||||||
|
Re: Trying to correlate SHOW STATUS and SHOW INNODB STATUS
From: Vladimir Shebordaev <vladimir.shebordaev(at)gmail.com>
Date: Fri Sep 14 2007 - 18:34:50 EDT
As I can see from grep output, os_n_pending_reads is defined and changed in /storage/innobase/os/os0file.c around and below line 1958 for mysql-5.1.23 and line 1944 for mysql-5.0.48 that I have handy. In either case that file is the only place where the variable is accessed for write. As far as I could infer from the sources, it is some kind of completed synchronous filesystem read access counter in os_file_{p,}read*() portability wrappers. It is increased before every actual read()/pread() call (or whatever windoze has for read()/lseek() operations) under dedicated mutex held down and decreased upon the call is complete regardless of the results under the same mutex to ensure atomicity. Btw, that mutex is not acquired when the value is copied out to export_vars. I'm not that familiar to Innobase code to judge whether it makes any sense :) I can just guess this value must be around the number of threads sleeping in synchronous read operations at the moment. In the hope it helps.
Regards,
Baron Schwartz пиÑеÑ:
-- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=lists@pantek.comReceived on Fri Sep 14 18:42:27 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:59:28 EDT |
||||||||||
|
|||||||||||