Basic situation:
I am copying some NTFS disks in openSuSE. Each one is 2TB. When I do this, the system runs slow.
My guesses:
It's not possible if you're using plain old cp
, but if you're willing to re-implement or patch it yourself setting posix_fadvise(fd, 0, 0, POSIX_FADV_NOREUSE)
on both input and output file will probably help.
posix_fadvise()
tells the kernel about your intended access pattern. In this case, you'd only use the data once so there's no point in caching it.
The Linux kernel honours these flags, so shouldn't be caching the data any more.