Skip to content

Commit

Permalink
Merge pull request #84 from DocentSzachista/merge_flush_core_cache
Browse files Browse the repository at this point in the history
Update admin guide on CAS api changes
  • Loading branch information
Robert Baldyga authored Oct 25, 2022
2 parents 952d1e4 + ec394ce commit 4bcb2ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion pages/basic_concepts/cleaning.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ would flush the dirty sectors so an up-to-date version of data can be read
from the core in a subsequent step.
* ad-hoc cleaning in case of eviction failure, where cache is 100% dirty and
cache lines cannot be evicted or replaced
* user requested flush (casadm -F/-E commands)
* user requested flush (casadm -F command)
* other management operations, e.g. cache stop, core removal

37 changes: 9 additions & 28 deletions pages/open_cas_linux/guide_tool_details.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ specified cache instance.
\-F \| -\-flush-cache
--------------------
**Usage:** casadm -\-flush-cache -\-cache-id \<ID\>
**Usage:** casadm -\-flush-cache -\-cache-id \<CACHE_ID\> [-\-core-id \<CORE_ID\>]
**Example:**
Expand All @@ -540,41 +540,22 @@ specified cache instance.
or
> \# casadm -F -i 1
or
> \# casadm -F -i 1 -j 1
**Description:** Flushes all dirty data from the cache device to all the
associated core devices.
**Required Parameters:**
**[-i, -\-cache-id \<ID\>]:** Unique identifier for cache \<1 to 16384\>.
- You can interrupt the blocking -\-flush-cache operation by pressing CTRL-C.
When dirty data exists, interrupting the operation prior to the cache being
fully flushed will result in some dirty data remaining in the cache. The
dirty data will be flushed opportunistically as normal. IO to the device
will continue with reduced performance during cache flushing.
\-E \| -\-flush-core
-------------------
**[-i, -\-cache-id \<CACHE_ID\>]:** Unique identifier for cache \<1 to 16384\>.
**Usage:** casadm -\-flush-core -\-cache-id \<ID\> -\-core-id \<ID\>
**Optional Parameters**
**Example:**
**[-j, -\-core-id \<CORE_ID\>]:** Unique identifier for core \<0 to 4095\>. If is provided,
flushes all dirty data from specified cache device to the specified associated core device.
> \# casadm -\-flush-core -\-cache-id 1 -\-core-id 2
or
> \# casadm -E -i 1 -j 2
**Description:** Flushes all dirty data from the specified cache device to the
specified associated core device.
**Required parameters:**
**[-i, -\-cache-id \<ID\>]:** Unique identifier for cache \<1 to 16384\>.
**[-j, -\-core-id \<ID\>]:** Unique identifier for core \<0 to 4095\>.
- You can interrupt the blocking -\-flush-core operation by pressing CTRL-C.
- You can interrupt the blocking -\-flush-cache operation by pressing CTRL-C.
When dirty data exists, interrupting the operation prior to the cache being
fully flushed will result in some dirty data remaining in the cache. The
dirty data will be flushed opportunistically as normal. IO to the device
Expand Down

0 comments on commit 4bcb2ad

Please sign in to comment.