<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;mv&amp;quot; commands runs too slow in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528365#M867752</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I feel that mv is always faster than copy.&lt;BR /&gt;Only reason, mv would be slow if you are &lt;BR /&gt;moving files across filesystem.&lt;BR /&gt;&lt;BR /&gt;Just an additional info, the inode number &lt;BR /&gt;changes only when a file is moved across file&lt;BR /&gt;system. &lt;BR /&gt;It remains unchanged, if it is within the same&lt;BR /&gt;filesystem.&lt;BR /&gt;One can verify by using ls -il command on that file.&lt;BR /&gt;&lt;BR /&gt;mv uses rename() system call, if it fails, uses&lt;BR /&gt;copy routine(basicailly reads from a file and writes in another file).&lt;BR /&gt;&lt;BR /&gt;This is what I feel, hope it helps.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Deepak&lt;BR /&gt;</description>
    <pubDate>Tue, 15 May 2001 11:04:47 GMT</pubDate>
    <dc:creator>Deepak_5</dc:creator>
    <dc:date>2001-05-15T11:04:47Z</dc:date>
    <item>
      <title>"mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528356#M867743</link>
      <description>I am running an application, which needs to move massive files from one directory to another. But the speed was too slow, about 2,000files/hour. These files are very small like some kilobytes. Any idea?</description>
      <pubDate>Tue, 15 May 2001 03:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528356#M867743</guid>
      <dc:creator>Yu Zhen</dc:creator>
      <dc:date>2001-05-15T03:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528357#M867744</link>
      <description>what's the u r RAM and swap size, if less try increasing both.</description>
      <pubDate>Tue, 15 May 2001 04:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528357#M867744</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-05-15T04:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528358#M867745</link>
      <description>ravi, I have got 6G memory and 10G swap space on a V2250 box, the storage is FC60.&lt;BR /&gt;I think the HW is sufficient for such a simple action,but the performance is really unbearable.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2001 05:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528358#M867745</guid>
      <dc:creator>Yu Zhen</dc:creator>
      <dc:date>2001-05-15T05:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528359#M867746</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;are you really MOVING the files i.e. to another disk?&lt;BR /&gt;if you 'move' the files on the same disk they are simply renamed which is done a lot faster.&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 15 May 2001 05:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528359#M867746</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-05-15T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528360#M867747</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;How are you doing the move with "mv", if so try a copy then remove.&lt;BR /&gt;&lt;BR /&gt;Also run sar and look at CPU / Disk and Swap whilst it is going on.&lt;BR /&gt;&lt;BR /&gt;Paula &lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2001 06:35:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528360#M867747</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-05-15T06:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528361#M867748</link>
      <description>Hi, Paula&lt;BR /&gt;I can't quite catch your idea. The CPU and swap usage are low, and why shall i make a copy and then remove them?</description>
      <pubDate>Tue, 15 May 2001 07:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528361#M867748</guid>
      <dc:creator>Yu Zhen</dc:creator>
      <dc:date>2001-05-15T07:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528362#M867749</link>
      <description>Check inodes frees with&lt;BR /&gt;#sar -v 5 5&lt;BR /&gt;and your maxusers kernel parameter.</description>
      <pubDate>Tue, 15 May 2001 08:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528362#M867749</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-15T08:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528363#M867750</link>
      <description>I observed similar performance degradations, when there were simply too many files (~20000) in source of traget directory.</description>
      <pubDate>Tue, 15 May 2001 09:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528363#M867750</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-05-15T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528364#M867751</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;A move command copies the file and removes the old so if doing a mv on many files :-&lt;BR /&gt;cp&lt;BR /&gt;rm&lt;BR /&gt;cp&lt;BR /&gt;rm  etc for x times&lt;BR /&gt;&lt;BR /&gt;whereas a copy of all first and go back and remove all=&lt;BR /&gt;&lt;BR /&gt;cp all&lt;BR /&gt;rm all&lt;BR /&gt;&lt;BR /&gt;far less jumping from dir to dir so therefire quicker.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2001 10:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528364#M867751</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-05-15T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528365#M867752</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I feel that mv is always faster than copy.&lt;BR /&gt;Only reason, mv would be slow if you are &lt;BR /&gt;moving files across filesystem.&lt;BR /&gt;&lt;BR /&gt;Just an additional info, the inode number &lt;BR /&gt;changes only when a file is moved across file&lt;BR /&gt;system. &lt;BR /&gt;It remains unchanged, if it is within the same&lt;BR /&gt;filesystem.&lt;BR /&gt;One can verify by using ls -il command on that file.&lt;BR /&gt;&lt;BR /&gt;mv uses rename() system call, if it fails, uses&lt;BR /&gt;copy routine(basicailly reads from a file and writes in another file).&lt;BR /&gt;&lt;BR /&gt;This is what I feel, hope it helps.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Deepak&lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2001 11:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528365#M867752</guid>
      <dc:creator>Deepak_5</dc:creator>
      <dc:date>2001-05-15T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528366#M867753</link>
      <description>May not apply here but a relatively quick method for copying files from one filesystem to another is:&lt;BR /&gt;&lt;BR /&gt;cd /old_dir&lt;BR /&gt;tar cvf - . | (cd /new_dir; tar xvf -)&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 15 May 2001 13:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528366#M867753</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-05-15T13:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528367#M867754</link>
      <description>The fastest way is to use the puddlemove options in cpio as in:&lt;BR /&gt;&lt;BR /&gt;$ cd /source_dir&lt;BR /&gt;$ find . | cpio -pudlmv /destination_dir&lt;BR /&gt;&lt;BR /&gt;cpio -p is optimized for disk-to-disk file transfers.  Leave off the v option if you don't need the verbose (file by file) listing.</description>
      <pubDate>Wed, 16 May 2001 00:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528367#M867754</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-05-16T00:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: "mv" commands runs too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528368#M867755</link>
      <description>Thanks Bill.  The cpio copy of a directory was considerably faster than my tar.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 16 May 2001 13:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-mv-quot-commands-runs-too-slow/m-p/2528368#M867755</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-05-16T13:34:45Z</dc:date>
    </item>
  </channel>
</rss>

