diff --git a/pages/basic_concepts/cleaning.md b/pages/basic_concepts/cleaning.md index ac98031..77e5220 100644 --- a/pages/basic_concepts/cleaning.md +++ b/pages/basic_concepts/cleaning.md @@ -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 diff --git a/pages/open_cas_linux/guide_tool_details.md b/pages/open_cas_linux/guide_tool_details.md index 8d40c09..d028286 100644 --- a/pages/open_cas_linux/guide_tool_details.md +++ b/pages/open_cas_linux/guide_tool_details.md @@ -531,7 +531,7 @@ specified cache instance. \-F \| -\-flush-cache -------------------- -**Usage:** casadm -\-flush-cache -\-cache-id \ +**Usage:** casadm -\-flush-cache -\-cache-id \ [-\-core-id \] **Example:** @@ -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 \]:** 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 \]:** Unique identifier for cache \<1 to 16384\>. -**Usage:** casadm -\-flush-core -\-cache-id \ -\-core-id \ +**Optional Parameters** -**Example:** +**[-j, -\-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 \]:** Unique identifier for cache \<1 to 16384\>. - -**[-j, -\-core-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