2 ms·
On linux there are a bunch of "laptop mode" configurations that can minimize the time the disk will be woken up to actually write out data. The price is that yo
by the8472 6y ago
On linux there are a bunch of "laptop mode" configurations that can minimize the time the disk will be woken up to actually write out data. The price is that you'll lose the last N minutes of work on a hard crash. And it only works when you have enough RAM to avoid swapping and keep dirty pages in memory. And your workloads don't explicitly call fsync. But if setup correctly your drive will spend most of its time sleeping.
- Filligree 6y ago> And your workloads don't explicitly call fsync. If you run ZFS, you can set sync=disabled for your filesystems. This will disable fsync. Unlike most (all?) other filesystems, that's actually safe. ZFS doesn't reorder writes between transaction groups, so after a crash you'll get a consistent state from however many minutes ago. (However, txgs have a time limit of 5 seconds by default. You also need to increase that.)