tech:disque_cache_flush_sync_io_purge
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:disque_cache_flush_sync_io_purge [2025/06/01 15:57] – Jean-Baptiste | tech:disque_cache_flush_sync_io_purge [2026/07/17 10:35] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Disque cache flush sync io purge | ||
| + | |||
| + | Source : | ||
| + | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | `drop_caches.sh` | ||
| + | ~~~bash | ||
| + | echo 3 | sudo tee / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | #!/bin/bash | ||
| + | sync | ||
| + | echo 3 >/ | ||
| + | swapoff -a && swapon -a | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | # (move data, modified through FS -> HDD cache) + flush HDD cache | ||
| + | sync | ||
| + | |||
| + | # (slab + pagecache) -> HDD (https:// | ||
| + | echo 3 > / | ||
| + | |||
| + | blockdev --flushbufs /dev/sda | ||
| + | hdparm -F /dev/sda | ||
| + | |||
| + | # Command that should be run before unplug, flushes everything guaranteed | ||
| + | echo 1 > / | ||
| + | ~~~ | ||
| + | |||
| + | watch the progress of a `sync` operation | ||
| + | Source : http:// | ||
| + | ~~~bash | ||
| + | watch grep -e Dirty: -e Writeback: / | ||
| + | awk ' | ||
| + | ~~~ | ||
| + | |||
