How do I prevent a tar pipe from causing swapping?
- by Jeff Shattock
I have a rather large filesystem that I need to transfer from one Linux server to another. I figured the best way to do this was via a tar/netcat pipe arrangment, something like
tar c . | pv | nc blah blah blah
And it works great, the network stays fairly saturated, life is good. Until the source machine starts swapping.
The files are on a…