mariadb/ut
marko 0f7895d477 branches/zip: Replace the constant 3/8 ratio that controls the LRU_old
size with the settable global variable innodb_old_blocks_pct. The
minimum and maximum values are 5 and 95 per cent, respectively. The
default is 100*3/8, in line with the old behavior.

ut_time_ms(): New utility function, to return the current time in
milliseconds. TODO: Is there a more efficient timestamp function, such
as rdtsc divided by a power of two?

buf_LRU_old_threshold_ms: New variable, corresponding to
innodb_old_blocks_time. The value 0 is the default behaviour: no
timeout before making blocks 'new'.

bpage->accessed, bpage->LRU_position, buf_pool->ulint_clock: Remove.

bpage->access_time: New field, replacing bpage->accessed. Protected by
buf_pool_mutex instead of bpage->mutex. Updated when a page is created
or accessed the first time in the buffer pool.

buf_LRU_old_ratio, innobase_old_blocks_pct: New variables,
corresponding to innodb_old_blocks_pct

buf_LRU_old_ratio_update(), innobase_old_blocks_pct_update(): Update
functions for buf_LRU_old_ratio, innobase_old_blocks_pct.

buf_page_peek_if_too_old(): Compare ut_time_ms() to bpage->access_time
if buf_LRU_old_threshold_ms && bpage->old.  Else observe
buf_LRU_old_ratio and bpage->freed_page_clock.

buf_pool_t: Add n_pages_made_young, n_pages_not_made_young,
n_pages_made_young_old, n_pages_not_made_young, for statistics.

buf_print(): Display buf_pool->n_pages_made_young,
buf_pool->n_pages_not_made_young.  This function is only for crash
diagnostics.

buf_print_io(): Display buf_pool->LRU_old_len and quantities derived
from buf_pool->n_pages_made_young, buf_pool->n_pages_not_made_young.
This function is invoked by SHOW ENGINE INNODB STATUS.

rb://129 approved by Heikki Tuuri.  This addresses Bug #45015.
2009-08-27 06:25:00 +00:00
..
ut0auxconf_atomic_pthread_t_gcc.c branches/zip: Revert ut0auxconf_* to r5102, 2009-05-25 10:39:07 +00:00
ut0auxconf_atomic_pthread_t_solaris.c branches/zip: Revert ut0auxconf_* to r5102, 2009-05-25 10:39:07 +00:00
ut0auxconf_have_solaris_atomics.c branches/zip: Revert ut0auxconf_* to r5102, 2009-05-25 10:39:07 +00:00
ut0auxconf_pause.c branches/zip: 2009-07-21 09:28:27 +00:00
ut0auxconf_sizeof_pthread_t.c branches/zip: Revert ut0auxconf_* to r5102, 2009-05-25 10:39:07 +00:00
ut0byte.c branches/zip: Add some Doxygen comments, mainly to structs, typedefs, 2009-05-25 12:09:24 +00:00
ut0dbg.c branches/zip: Add some Doxygen comments, mainly to structs, typedefs, 2009-05-25 12:09:24 +00:00
ut0list.c branches/zip: Add @file comments, and convert decorative 2009-05-25 09:52:29 +00:00
ut0mem.c branches/zip: Replace a non-ASCII character 2009-06-30 11:42:52 +00:00
ut0rnd.c branches/zip: Add some Doxygen comments, mainly to structs, typedefs, 2009-05-25 12:09:24 +00:00
ut0ut.c branches/zip: Replace the constant 3/8 ratio that controls the LRU_old 2009-08-27 06:25:00 +00:00
ut0vec.c branches/zip: Add @file comments, and convert decorative 2009-05-25 09:52:29 +00:00
ut0wqueue.c branches/zip: Add @file comments, and convert decorative 2009-05-25 09:52:29 +00:00