Verifying the VxVM cache area and monitoring the caching

After the SmartIO feature is configured, you can verify that the cache area is present and that caching is occurring.

To verify and monitor the cache area

  1. Use the following command to display information about the cache areas on the system.
    # sfcache list -l
    Cachearea: sfcachearea_1
    Assoc Type: AUTO
    Type: VxVM
    Size: 30.00g
    Cacheline Size: 64.00k
    Memory Size: 16.00m
    State: ONLINE
    Layout: CONCAT
    Number of Columns: 0
    
    ASSOCIATED DATA OBJECTS:
    
    Volume: testdg/testvol1
    Size: 500.00g
    State: ENABLED
    Kstate: ENABLED
    Caching Mode: read
    
    Volume: testdg/testvol2
    Size: 500.00g
    State: ENABLED
    Kstate: ENABLED
    Caching Mode: read

    See Displaying information about a cache area.

  2. Use the following command to display information about a specific cache area.
    # sfcache list sfcachearea_1 
    Cachearea: sfcachearea_1
    Assoc Type: AUTO
    Type: VxVM
    Size: 30.00g
    Cacheline Size: 64.00k
    Memory Size: 16.00m
    State: ONLINE
    Layout: CONCAT
    Number of Columns: 0
    
    ASSOCIATED DATA OBJECTS:
    
    ASSOC DATAOBJECT NAME   CACHING-MODE  STATE    KSTATE
    testdg/testvol1         read          ENABLED  ENABLED
    testdg/testvol2         read          ENABLED  ENABLED

    See Viewing the SmartIO cache statistics .

  3. To see statistics on the cache usage, use the following command:
    # sfcache stat sfcachearea_1
                                    HIT RATIO    ART(Hit)ms   ART(Miss)ms   BYTES
    NAME                     %CACHE RD    WR     RD    WR     RD     WR     RD     WR
    TYPE: VxVM
    sfcachearea_1            13.43  91.24 94.20  0.142 0.819  0.414  0.798  15.31g 4.21g
    
    ASSOCIATED DATA OBJECTS:
    testdg/testvol1          6.10   90.00 96.00  0.141 0.459  0.348  0.448  6.77g  1.89g
    testdg/testvol2          7.32   91.00 92.00  0.143 1.179  0.480  1.149  8.54g  2.31g