Networking

Re: Which is faster on a lan -- rcp or nfs?

 
RobertCarback
Frequent Advisor

Which is faster on a lan -- rcp or nfs?

Which is faster on a lan -- 2 servers in the same room -- rcp from one server to the other or cp to an nfs mount?
5 REPLIES 5
Sandman!
Honored Contributor

Re: Which is faster on a lan -- rcp or nfs?

Imho how about timing the two scenarios using timex(1).
Court Campbell
Honored Contributor

Re: Which is faster on a lan -- rcp or nfs?

I agree with Sandman!, but ostensibly I would think rcp would win.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Tony Berry
Valued Contributor

Re: Which is faster on a lan -- rcp or nfs?

Depends on whether it is a bunch of small files or a few large files.

But I would like to offer an alternate choice: if you're into the r-shell stuff, try...

remsh {dest_server} "tar cvf - /home/{directory_to_send}" | tar xvf -

If you have the GNU TAR on your HP-UX system, stick a czvf and xzvf and REALLY watch it fly.

Personally I would use scp.
Unix is boss.
RobertCarback
Frequent Advisor

Re: Which is faster on a lan -- rcp or nfs?

scp, rcp amd cp all took the same amount of time -- 1 min, 25 secs for 1 GB file. tar took longer at 2 min, 3 secs. tar and cp to an nfs drive preserve ownership so I'll use cp to nfs. thanks
RobertCarback
Frequent Advisor

Re: Which is faster on a lan -- rcp or nfs?

scp, rcp amd cp all took the same amount of time -- 1 min, 25 secs for 1 GB file. tar took longer at 2 min, 3 secs. tar and cp to an nfs drive preserve ownership so I'll use cp to nfs. thanks