diff options
author | heikki@hundin.mysql.fi <> | 2003-05-05 10:54:56 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-05-05 10:54:56 +0300 |
commit | fa08fdfaef03aca2be4f84cfe8ba3657a4f40577 (patch) | |
tree | 3f84b92924e027dfbc255787af473b900f57c0f8 /innobase/buf | |
parent | 431639a7850513cce17e32742c56111ff84ea2ce (diff) | |
download | mariadb-git-fa08fdfaef03aca2be4f84cfe8ba3657a4f40577.tar.gz |
buf0lru.c, buf0flu.c:
Better warning message if more than 4 / 5 of the buffer pool is consumed by locks of adaptive hash index
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0flu.c | 3 | ||||
-rw-r--r-- | innobase/buf/buf0lru.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/innobase/buf/buf0flu.c b/innobase/buf/buf0flu.c index 4d998f8306f..d732bf40b57 100644 --- a/innobase/buf/buf0flu.c +++ b/innobase/buf/buf0flu.c @@ -531,7 +531,8 @@ buf_flush_try_page( rw_lock_s_lock_gen(&(block->lock), BUF_IO_WRITE); if (buf_debug_prints) { - printf("Flushing single page space %lu, page no %lu \n", + printf( + "Flushing single page space %lu, page no %lu \n", block->space, block->offset); } diff --git a/innobase/buf/buf0lru.c b/innobase/buf/buf0lru.c index 2ec1506c522..735a32cf067 100644 --- a/innobase/buf/buf0lru.c +++ b/innobase/buf/buf0lru.c @@ -228,9 +228,12 @@ loop: fprintf(stderr, " InnoDB: WARNING: over 4 / 5 of the buffer pool is occupied by\n" "InnoDB: lock heaps or the adaptive hash index! Check that your\n" -"InnoDB: transactions do not set too many row locks. Starting InnoDB\n" -"InnoDB: Monitor to print diagnostics, including lock heap and hash index\n" -"InnoDB: sizes.\n"); +"InnoDB: transactions do not set too many row locks.\n" +"InnoDB: Your buffer pool size is %lu MB. Maybe you should make\n" +"InnoDB: the buffer pool bigger?\n" +"InnoDB: Starting the InnoDB Monitor to print diagnostics, including\n" +"InnoDB: lock heap and hash index sizes.\n", + buf_pool->curr_size / (1024 * 1024 / UNIV_PAGE_SIZE)); srv_print_innodb_monitor = TRUE; |