It may be that the file-system on Windows is not syncing to disk when asked to, whereas Linux is. Grouping your write operations into a transaction or transactions should help.
It may be that the file-system on Windows is not syncing to disk when asked to, whereas Linux is. Grouping your write operations into a transaction or transactions should help.