Skip to content

Commit f7bf8c9

Browse files
0xack13SuperQ
authored andcommitted
Update test cases for cachereadahead greater than zero
Signed-off-by: Saleh Sal <0xack13@gmail.com>
1 parent ee13b24 commit f7bf8c9

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

collector/fixtures/e2e-64k-page-output.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ node_bcache_cache_misses_total{backing_device="bdev0",uuid="deaddd54-c735-46d5-8
9595
# HELP node_bcache_cache_read_races_total Counts instances where while data was being read from the cache, the bucket was reused and invalidated - i.e. where the pointer was stale after the read completed.
9696
# TYPE node_bcache_cache_read_races_total counter
9797
node_bcache_cache_read_races_total{uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0
98+
# HELP node_bcache_cache_readaheads_total Count of times readahead occurred.
99+
# TYPE node_bcache_cache_readaheads_total counter
100+
node_bcache_cache_readaheads_total{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 13
98101
# HELP node_bcache_congested Congestion.
99102
# TYPE node_bcache_congested gauge
100103
node_bcache_congested{uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0

collector/fixtures/e2e-output.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ node_bcache_cache_misses_total{backing_device="bdev0",uuid="deaddd54-c735-46d5-8
9595
# HELP node_bcache_cache_read_races_total Counts instances where while data was being read from the cache, the bucket was reused and invalidated - i.e. where the pointer was stale after the read completed.
9696
# TYPE node_bcache_cache_read_races_total counter
9797
node_bcache_cache_read_races_total{uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0
98+
# HELP node_bcache_cache_readaheads_total Count of times readahead occurred.
99+
# TYPE node_bcache_cache_readaheads_total counter
100+
node_bcache_cache_readaheads_total{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 13
98101
# HELP node_bcache_congested Congestion.
99102
# TYPE node_bcache_congested gauge
100103
node_bcache_congested{uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0

collector/fixtures/sys.ttar

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,6 +2394,11 @@ Lines: 1
23942394
0
23952395
Mode: 644
23962396
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2397+
Path: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_readaheads
2398+
Lines: 1
2399+
13
2400+
Mode: 644
2401+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23972402
Directory: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute
23982403
Mode: 755
23992404
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -2432,6 +2437,11 @@ Lines: 1
24322437
0
24332438
Mode: 644
24342439
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2440+
Path: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_readaheads
2441+
Lines: 1
2442+
13
2443+
Mode: 644
2444+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24352445
Directory: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour
24362446
Mode: 755
24372447
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -2470,6 +2480,11 @@ Lines: 1
24702480
0
24712481
Mode: 644
24722482
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2483+
Path: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_readaheads
2484+
Lines: 1
2485+
13
2486+
Mode: 644
2487+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24732488
Directory: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total
24742489
Mode: 755
24752490
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -2508,6 +2523,11 @@ Lines: 1
25082523
0
25092524
Mode: 644
25102525
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2526+
Path: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_readaheads
2527+
Lines: 1
2528+
13
2529+
Mode: 644
2530+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
25112531
Path: sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/writeback_rate_debug
25122532
Lines: 7
25132533
rate: 1.1M/sec
@@ -3878,6 +3898,11 @@ Lines: 1
38783898
0
38793899
Mode: 644
38803900
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3901+
Path: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_readaheads
3902+
Lines: 1
3903+
13
3904+
Mode: 644
3905+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
38813906
Directory: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute
38823907
Mode: 755
38833908
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -3916,6 +3941,11 @@ Lines: 1
39163941
0
39173942
Mode: 644
39183943
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3944+
Path: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_readaheads
3945+
Lines: 1
3946+
13
3947+
Mode: 644
3948+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39193949
Directory: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour
39203950
Mode: 755
39213951
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -3954,6 +3984,11 @@ Lines: 1
39543984
0
39553985
Mode: 644
39563986
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3987+
Path: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_readaheads
3988+
Lines: 1
3989+
13
3990+
Mode: 644
3991+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39573992
Directory: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total
39583993
Mode: 755
39593994
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -3992,6 +4027,11 @@ Lines: 1
39924027
0
39934028
Mode: 644
39944029
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4030+
Path: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_readaheads
4031+
Lines: 1
4032+
13
4033+
Mode: 644
4034+
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39954035
Path: sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/tree_depth
39964036
Lines: 1
39974037
0

0 commit comments

Comments
 (0)