Operating System - HP-UX
1831580 Members
3678 Online
110025 Solutions
New Discussion

Performance of mv on an NFS mounted partition

 
Darrell Robins
New Member

Performance of mv on an NFS mounted partition

I think that we are suffering from a performance problem when renaming a file on an NFS mounted partition. The synopsis of the processing is to make a file available to a remote process only once it has been successfully copied with the commands:

cp file /nfs/tmp.file
mv /nfs/tmp.file /nfs/file

this appears to be taking longer to perform the mv command than the cp command and I suspect that what is really happening is that the file is being sucked back across into a local area (perhaps /var/tmp) then being pushed to /nfs again. Has anyone got any similar experiences ?
2 REPLIES 2
Rainer_1
Honored Contributor

Re: Performance of mv on an NFS mounted partition

i have no explanation for this behavior but you can try this alternative method

cp file /nfs/tmp.file
ln /nfs/tmp.file /nfs/file
rm /nfs/tmp.file
Dan Hetzel
Honored Contributor

Re: Performance of mv on an NFS mounted partition

Hi Darrell,

There is a patch related to performance issues under NFS. (PHNE_22125)
http://europe-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=f15d652808f76b8c50

Not sure your 'mv' issue is solved but this patch is worth to be applied for a lot of good reasons ;-)

Best regards,

Dan

PS: The link is for HP-UX 11.0
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com