in reply to Curious Observation with File::Copy;

Was your timing fair? Did you start all the programs with clear buffers on both sides? The best way to make sure there are no favourful buffers is to reboot both machines before doing each test. Furthermore, the network could have been the bottleneck - have to make sure you performed the test on a quiet network?

I find it hard to believe cp would be 2.5 times slower than File::Copy.

Abigail

  • Comment on Re: Curious Observation with File::Copy;

Replies are listed 'Best First'.
Re: Re: Curious Observation with File::Copy;
by nimdokk (Vicar) on Jun 27, 2003 at 13:27 UTC
    That's a good point. However, since this is a production server, I cannot reboot it. Although it was rebooted yesterday. I don't think the network is going to be much of an issue because the directories I'm copying between are local to the server on which I'm testing. I'm making a rough guess on the times, because I had the program that transferred the files record the start and stop times into a file. I think that there might be a +/- of 1-2 minutes in the times but we also sat and marked time with a stopwatch as well because we didn't believe that there could be that much discrepency in the times. I just ran the tests again this morning while the system was relatively quiet and there is not a lot going on on that server anyway.


    "Ex libris un peut de tout"
      You are doing performance testing on a production server? I find that mind boggling. Anyway, why don't you perform the tests in a test environment, or even your development environment? I'm not quite sure what you mean by the directories being local to the server - you were copying stuff from one machine to another using NFS, weren't you?

      Abigail

        It is a bit mind-boggling I admit but we don't have a good test environment at the moment with which to run this particular test. What I mean by the NFS is simply this: we have a directory say /path/to/test and a second directory /path/to/another/test. Both these directories are on ServerA. NFS comes in because another/test is being exported to ServerB with NFS.
        "Ex libris un peut de tout"