Re: [RFC] bcache-status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

bcache-status renders some weird output:

- "Total Cache Used" and "Total Cache Unused" don't always add up to "Total Cache Size"
- "Dirty Data" is -6 MB?

Seems like bugs to me. Details below.

Rolf

[root@localhost bcache]# bcache-status -s
--- bcache ---
UUID c318c0b2-0b69-4f66-a729-23b82a9d0e91
Block Size                  0.00KiB
Bucket Size                 512.00KiB
Congested?                  False
Read Congestion             2.0ms
Write Congestion            20.0ms
Total Cache Size            1.00GiB
Total Cache Used            20.00MiB    (1%)
Total Cache Unused          1.00GiB    (99%)
Dirty Data                  0B    (0%)
Evictable Cache             1.00GiB    (100%)
Replacement Policy          [lru] fifo random
Cache Mode                  [writethrough] writeback writearound none
Total Hits                  122    (100%)
Total Misses                0
Total Bypass Hits           0
Total Bypass Misses         0
Total Bypassed              0B
--- Backing Device ---
  Device File               /dev/sda3 (8:3)
  bcache Device File        /dev/bcache1 (252:1)
  Size                      7.00GiB
  Cache Mode                [writethrough] writeback writearound none
  Readahead                 0
  Sequential Cutoff         4.00MiB
  Merge sequential?         True
  State                     clean
  Writeback?                True
  Dirty Data                0B
  Total Hits                122    (100%)
  Total Misses              0
  Total Bypass Hits         0
  Total Bypass Misses       0
  Total Bypassed            0B
--- Cache Device ---
  Device File               /dev/sdb1 (8:17)
  Size                      1.00GiB
  Block Size                0.00KiB
  Bucket Size               512.00KiB
  Replacement Policy        [lru] fifo random
  Discard?                  False
  I/O Errors                0
  Metadata Written          1.00KiB
  Data Written              0B
  Buckets                   4094
  Cache Used                20.00MiB    (1%)
  Cache Unused              1.00GiB    (99%)
--- bcache ---
UUID d07cd9a1-6211-4bba-bc37-a8ba8858ef4d
Block Size                  0.00KiB
Bucket Size                 512.00KiB
Congested?                  False
Read Congestion             2.0ms
Write Congestion            20.0ms
Total Cache Size            1.00GiB
Total Cache Used            204.00MiB    (10%)
Total Cache Unused          1.00GiB    (90%)
Dirty Data                  0B    (0%)
Evictable Cache             1.00GiB    (100%)
Replacement Policy          [lru] fifo random
Cache Mode                  writethrough [writeback] writearound none
Total Hits                  1365    (81%)
Total Misses                318
Total Bypass Hits           3191    (100%)
Total Bypass Misses         0
Total Bypassed              46.00MiB
--- Backing Device ---
  Device File               /dev/sdc1 (8:33)
  bcache Device File        /dev/bcache0 (252:0)
  Size                      19.00GiB
  Cache Mode                writethrough [writeback] writearound none
  Readahead                 0
  Sequential Cutoff         0B
  Merge sequential?         True
  State                     dirty
  Writeback?                True
  Dirty Data                -6.00MiB
  Total Hits                1365    (81%)
  Total Misses              318
  Total Bypass Hits         3191    (100%)
  Total Bypass Misses       0
  Total Bypassed            46.00MiB
--- Cache Device ---
  Device File               /dev/sdd1 (8:49)
  Size                      1.00GiB
  Block Size                0.00KiB
  Bucket Size               512.00KiB
  Replacement Policy        [lru] fifo random
  Discard?                  False
  I/O Errors                0
  Metadata Written          281.00KiB
  Data Written              18.00MiB
  Buckets                   4094
  Cache Used                204.00MiB    (10%)
  Cache Unused              1.00GiB    (90%)
[root@localhost bcache]#

--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux