Lvm-cache-stats » История » Версия 3
Константин Пильник, 2017-12-22 23:08
1 | 1 | Константин Пильник | h1. Lvm-cache-stats |
---|---|---|---|
2 | |||
3 | 3 | Константин Пильник | В debian 8 jessie |
4 | <pre> |
||
5 | LVM version: 2.02.111(2) (2014-09-01) |
||
6 | Library version: 1.02.90 (2014-09-01) |
||
7 | Driver version: 4.27.0 |
||
8 | </pre> |
||
9 | lvs не умеет показывать |
||
10 | <pre> |
||
11 | cache_total_blocks - Total cache blocks. |
||
12 | cache_used_blocks - Used cache blocks. |
||
13 | cache_dirty_blocks - Dirty cache blocks. |
||
14 | cache_read_hits - Cache read hits. |
||
15 | cache_read_misses - Cache read misses. |
||
16 | cache_write_hits - Cache write hits. |
||
17 | cache_write_misses - Cache write misses. |
||
18 | </pre> |
||
19 | |||
20 | Получить эти данные можем через dmsetup |
||
21 | |||
22 | 1 | Константин Пильник | <pre> |
23 | 2 | Константин Пильник | NAME="my_logical_volume_name"; read -a ARR <<<$(dmsetup status $NAME); C=0;for N in start end segment_type md_block_size md_utilization cache_block_size cache_utilization read_hits read_misses write_hits write_misses demotions promotions dirty features; do echo "${N}: ${ARR[$C]}";((C++)); done |
24 | 1 | Константин Пильник | </pre> |