| 1 |
Persistent Memory Development Kit |
| 2 |
|
| 3 |
This is src/test/tools/gran_detecto/README. |
| 4 |
|
| 5 |
Long-time ago in the Wild West, cowboys solved their problems using revolvers. |
| 6 |
So far, pmemdetect efficiently defended PMDK users from persistency robbers, |
| 7 |
but newcomers: ADR and eADR beat him. Luckily, gran_detecto enters the game. |
| 8 |
This 'grande' tool detects supported granularity by given 'path' argument. |
| 9 |
For example, if we want to check if cache line granularity is available we |
| 10 |
should use gran_detecto as follow: gran_detecto -p /mnt/pmem. |
| 11 |
|
| 12 |
It's used as a 'smoke test' before running the tests. |
| 13 |
|
| 14 |
Usage: |
| 15 |
$ gran_detecto -h |
| 16 |
$ gran_detecto <-b|-c|-d|-p> <path> |
| 17 |
|
| 18 |
Available options: |
| 19 |
-b, --byte - check if <path> has byte granularity |
| 20 |
-c, --cache-line - check if <path> has cache line granularity |
| 21 |
-d, --detect - detect the smallest available granularity for <path> |
| 22 |
-p, --page - check if <path> has page granularity |
| 23 |
-h, --help - print this usage info |