INTL 3:770/1 3:770/3   
   REPLYADDR invalid@invalid.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: e44c4109   
   REPLY: 543279e4   
   PID: SoupGate-Win32 v1.05   
   The Natural Philosopher writes:   
   > On 02/08/2024 15:03, Björn Lundin wrote:   
   >> dd'ing 500 Gb to an ssd disk, I've seen sync taking 30 s or more   
   >> and sync is of course started AFTER dd is done   
   >> So - how do you know it is done its internal business?   
   >> Not all drives have blinking LEDs   
   >> sync makes it easy to know   
   >   
   > Even sync may not be enough.   
   > SSDS/NVM have their own internal caching.   
      
   The sync syscall (and command) will flush those too.   
      
   Unless you’ve paid extra for a drive with a huge cache I would expect   
   the extra delay while the on-drive cache is flushed to be absolutely   
   tiny in human terms, and certainly tiny compared to flushing the OS’s   
   cache, which can be multiple gigabytes.   
      
   References:   
   * https://www.kernel.org/doc/Documentation/block/writeback_cache_control.txt   
   * https://linux.die.net/man/2/sync   
   * https://github.com/torvalds/linux/blob/master/fs/sync.c#L87   
      
   --   
   https://www.greenend.org.uk/rjk/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/19 16/0 19/37 80/1 90/1 105/81 106/201 123/130 129/305   
   SEEN-BY: 142/104 153/757 7715 203/0 218/700 840 220/70 221/1 6 242   
   SEEN-BY: 221/360 226/17 30 100 227/114 229/110 111 200 206 300 317   
   SEEN-BY: 229/400 426 428 470 550 616 664 700 230/0 240/5832 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 301/1 310/31 320/119   
   SEEN-BY: 320/219 319 2119 322/757 762 325/304 335/364 341/66 342/200   
   SEEN-BY: 396/45 423/81 460/58 633/280 712/848 770/1 3 100 330 340   
   SEEN-BY: 772/210 220 230 5020/400 5053/58 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 320/219 229/426   
      
|