Commit Graph

273 Commits

Author SHA1 Message Date
sueloverso
850bfde293 WT-2610 Reduce hazard pointer array size. (#2731)
* WT-2610 Reduce hazard pointer array size.

* Add session_count_idle and workload to wtperf.

* Allocate session array outside the loop.

* KNF

* Remove diagnostic call to check hazard pointers.

* Add a few hazard related statistics.

* Revert change.  Reinstate diagnostic hazard page check.
2016-05-17 17:08:51 -04:00
sueloverso
dbaaa69606 WT-2446 Add stat for number of calls to get a page. (#2697) 2016-04-28 11:40:49 -04:00
Sasha Fedorova
261957233b A new heuristic for deciding if the server should help evict based on how much work is being done by application threads. 2016-04-13 17:32:08 -07:00
Susan LoVerso
890d6afcec WT-2546 Restore original text for cache_eviction_server_not_eviction
stat.

It was removed in wt-2453, but is added back in for this work.
2016-04-13 09:43:54 -04:00
Sasha Fedorova
3cd2f3f364 WT-2546 The evict server probabilistically decides whether or not to evict based on evict queue empty/not empty statistics. 2016-04-13 14:48:47 +10:00
Susan LoVerso
f79eacadad WT-2453 Add some stats about the eviction queue being empty. 2016-04-12 12:35:31 -04:00
Susan LoVerso
b765fe571b WT-2453 If eviction server is helping evict, have it skip large pages. 2016-04-04 15:56:37 -04:00
Susan LoVerso
5ef624dcd5 WT-2453 Remove stat that is now unused. 2016-04-04 11:46:48 -04:00
Susan LoVerso
2d22b03720 Merge branch 'develop' into wt-2318-auto-cond-var 2016-03-10 08:39:19 -05:00
Alex Gorrod
a012fca0b0 WT-2448 Add no_scale flag into a couple of statistics. 2016-03-07 10:04:12 +11:00
Susan LoVerso
91055b7d5e WT-2318 Add use of auto adjusting condition for some log threads. 2016-03-04 17:13:31 -05:00
Alex Gorrod
7e18c2380e whitespace 2016-03-02 04:04:43 +00:00
Alex Gorrod
89b39adc1e WT-2438 Add size identifier to other statistics as required. 2016-03-01 06:38:02 +00:00
Alex Gorrod
e750ee98f2 WT-2438 Add size identifier to statistics based on timeseries classification. 2016-03-01 06:34:53 +00:00
Alex Gorrod
1721795753 Merge branch 'develop' into wt-2429
Resolved conflicts in autogenerated files.

Conflicts:
	src/include/stat.h
	src/include/wiredtiger.in
	src/support/stat.c
2016-02-25 05:19:34 +00:00
Alex Gorrod
2e708d9410 WT-2429 Add a statistic to track eviction aggressive mode. 2016-02-25 03:53:48 +00:00
Michael Cahill
93afecc49c WT-2428 Add a "json" mode to statistics logging.
This generates statistics in a format that is compatible with MongoDB
so that we can share tools for analysis.
2016-02-25 11:50:55 +11:00
Keith Bostic
bd0f24b3d6 WT-2060: Replace remaining uses of no_aggregate with max_aggregate and
remove support for no_aggregate; in the remaining no_aggregate fields
(btree_fixed_len, allocation_size, block_magic, block_major, and
block_minor), the maximum value is at least as good as the last one we
find (and in some cases, such as the file allocation size, arguably
better). The reason is because no_aggregate simply read from slot 0, and
that assumes there's a WT_STAT_XXX_SET call in the code that updates
this sp ecific statistic, and we have no way to enforce that, so don't
try. This will be marginally slower because we're checking more fields
on statistics calls, but I can't imagine it will matter.
2015-11-30 11:04:05 -05:00
Keith Bostic
33e0955a2d The no_clear flag doesn't imply no_scale (at least, it doesn't imply
it at this level, no_clear doesn't cause an entry to be output in the
no_scale list), and all entries with no_clear also list no_scale.
2015-11-29 15:10:57 -05:00
Keith Bostic
dceb806a06 Fix a comment typo. 2015-11-29 09:25:28 -05:00
Keith Bostic
65df4aa86b Quit trying to make stat_data.py fit into 80 columns, now requires a
wide window to edit (join broken lines, sort all entries).
2015-11-29 09:17:21 -05:00
Alex Gorrod
e45e07383d WT-2222 Fixup snapshot statistics re: review comments. 2015-11-19 01:02:59 +00:00
Alex Gorrod
76d4b2f41e Merge branch 'develop' into wt-2222-snapshot-stats 2015-11-19 00:56:54 +00:00
Michael Cahill
2bf052b616 Merge branch 'develop' into wt-1315-join-cursor 2015-11-19 11:37:36 +11:00
Susan LoVerso
a5d6d8e1b6 WT-2218 Add fast-path delete stat. 2015-11-18 15:17:13 -05:00
Susan LoVerso
6caf4c5674 Merge branch 'develop' into trunc-stats
Conflicts:
	src/include/wiredtiger.in
2015-11-18 14:52:02 -05:00
Alex Gorrod
b78e5b6d35 WT-2222 Add statistics for named snapshots.
New statistics are:
* pinned by named snapshots
* number of named snapshots created
* number of named snapshots dropped
2015-11-18 16:38:33 +11:00
Michael Cahill
9bd711a372 Merge branch 'develop' into wt-1315-join-cursor
Also fix some type conversion warnings.
2015-11-18 11:28:45 +11:00
Susan LoVerso
e95bff1310 WT-2218 Add connection level stat for number of deleted pages. 2015-11-17 14:21:40 -05:00
Don Anderson
a22cde620d WT-1315. Support statistics on join cursors.
Statistics for these are a bit different than for a data source or a
connection:

1) The statistics are simple (currently only 3), but range over sets of
indices, so traversing the stats is a two level operation.  Added a private
callback API to advance to the next index when the stats have been
exhausted.

2) cursors are used as single threaded operations, so arrays of stats is to
avoid thread conflicts is not needed.

Minor change: the stats_desc callback changed to return an int, and added
an arg to provide some context.  In the join cursor case, the returned desc
is not a static string, it needs to be created and managed.
2015-11-17 10:34:11 -05:00
Susan LoVerso
67f6acb522 WT-2218 Add truncate stats 2015-11-16 13:12:25 -05:00
Keith Bostic
d68e0786bb WT-2182: when internal pages grow large enough, split them into their parents
instead of deepening the tree at that point. Includes:

Move the internal page split check out of __split_parent(), instead have
__split_parent's callers call a new function __split_parent_climb(),
that starts at the first page and walks up the tree splitting internal
pages until it reaches the root. It's using lock-coupling, as we should
be able to discard each level's lock as we go.

Add a new function __split_internal() that splits an internal page into
its parent, called to split any internal page other than the root. It
looks a lot like __split_deepen() (the root split function), but does a
split-right of the internal page: split the contents of the internal
page into a bunch of newly allocated internal pages, then insert that
new set of pages into the original page's parent, replacing the original
page's WT_REF at that level.

Add a new statistic so we can distinguish between splitting leaf pages,
splitting internal pages, and splitting the root (deepening the tree).
I changed a statistic's message, so this change needs approval, it may
not be backward compatible.
2015-10-29 12:17:33 -04:00
Susan LoVerso
0db386b0ae WT-2151 Add zero-fill stat. Check correct flags field. 2015-09-29 13:51:43 -04:00
Susan LoVerso
ad1e29ff57 WT-2088 Add a prealloc_missed stat. Fix review comments. 2015-09-24 10:54:50 -04:00
Susan LoVerso
b5f4c1a9b0 WT-2104 Use 'operations' instead of 'calls' for consistency. 2015-09-15 14:06:24 -04:00
Susan LoVerso
366fc17e0b WT-2104 New log_flush API to control the flushing or syncing of the log. 2015-09-15 13:35:11 -04:00
Susan LoVerso
c8bb9bd6ab WT-2075 Add stat and a busy retry so that a blocked thread can progress. 2015-09-10 17:21:32 -04:00
Susan LoVerso
2d58c0a76b WT-2094 Add unbuffered statistic. 2015-09-09 12:45:43 -04:00
Susan LoVerso
df4f69c91f WT-2094 Remove unused stats. 2015-09-09 11:24:51 -04:00
Alex Gorrod
4b7139cdb8 Merge branch 'develop' into stat-splittable-pages 2015-09-07 11:20:01 +10:00
Keith Bostic
aa8e4360b5 Add a statistics value to track column-store RLE encoded values, so it's
possible to tell how many values are being compressed by RLE encoding.
2015-09-06 15:17:58 +00:00
Alex Gorrod
87078eb00a WT-2086 Add a statistic to track when can_evict sees splittable pages. 2015-09-04 16:28:19 +10:00
Keith Bostic
5e8dbcb308 Rework reconciliation statistics, moving the lookaside table and
update/restore counts into the cache statistics, and doing them
on a page basis rather than a block basis.

Remove the lookaside table insert-bytes statistic for now, there's
no remove-byte statistic, so it's not really useful.
2015-08-27 10:44:10 -04:00
Keith Bostic
876159d97d Merge branch 'develop' into wt-1967-evict-any 2015-08-27 07:32:47 -04:00
Keith Bostic
8722af11b5 Whitespace. 2015-08-26 12:05:20 -04:00
Keith Bostic
db1538e462 Remove "cursor" from the lookaside table statistics' names. 2015-08-26 12:03:17 -04:00
Keith Bostic
636fffed23 Don't make the lookaside table statistics their own category, incorporate
them into the cache statistics.
2015-08-26 12:00:16 -04:00
Susan LoVerso
dd9f40ddc1 Merge branch 'develop' into log-slot-revamp
Conflicts:
	dist/s_define.list
	src/include/log.h
	src/include/stat.h
	src/include/wiredtiger.in
	src/log/log_slot.c
	src/support/stat.c
2015-08-24 16:25:09 -04:00
Keith Bostic
0900894094 Merge branch 'develop' into wt-1967-evict-any 2015-08-20 10:19:13 -04:00
David Hows
7ef65f4fcc WT-2046 - Change wording of counter 2015-08-19 14:06:30 +10:00