aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2015-02-20 13:49:45 +0000
committerMike Snitzer <snitzer@redhat.com>2015-03-31 12:03:48 -0400
commit3e45c91e5cdd0cfd3cc1228628602c8e7e587157 (patch)
treed276979206c17fe5725a4f0dcf18eba27076831c /tools/perf/scripts/python/export-to-postgresql.py
parentc74ffc5c63b0b2753bedd49bdc1196d570f66803 (diff)
dm cache policy mq: track entries hit this 'tick' via sentinel objects
A sentinel object is placed on each level of the multiqueues. When an object is hit it is requeued behind the sentinel. When the tick is incremented we iterate through all objects behind the sentinel and update the hit_count, then reposition the sentinel at the very back. This saves memory by avoiding tracking the tick explicitly for every struct entry object in the multiqueues. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions