<?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: NFS problem sharing many files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905149#M559767</link>
    <description>This is a common problem amongst all Filesystems - UFS, VxFS, NFS. The fix is to reorg your storage so you do not have that great a number of files contained in one directory.&lt;BR /&gt;&lt;BR /&gt;If it cannot be avoided, then application routines (and users) should simply avoid doing a directory listing in such filesystems. One possible appllication fix that we've tried in the past is to simply catalog and index the entries if such filesystems in a database. A web front-end (queriable) then takes place of the "ls" / listing front end.&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Jun 2005 07:35:31 GMT</pubDate>
    <dc:creator>Zinky</dc:creator>
    <dc:date>2005-06-03T07:35:31Z</dc:date>
    <item>
      <title>NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905145#M559763</link>
      <description>Szenario: HP-UX 11.11 Server exporting a directory holding 20000 files (or even more).&lt;BR /&gt;NFS-Client is Linux mounting this directory and doing an "ls". This takes about 30 minutes to complete (we have seen up to 90 minutes for more files). This is a mess.&lt;BR /&gt;HP told us to increase the number of nfsd processes on the NFS-server from 4 to 16 (it is a 4 processor system), this does not help. We see all the nfsd processes as top-cpu processes consuming almost all of the cpu time.&lt;BR /&gt;HP told us, that this is how NFS works and closed the case.&lt;BR /&gt;We tried the same using a HP-UX 11.11 client as well, the result is similar.&lt;BR /&gt;Any idea?&lt;BR /&gt;Does it make sense to try an smbmount?&lt;BR /&gt;Thank you, Jens</description>
      <pubDate>Thu, 02 Jun 2005 03:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905145#M559763</guid>
      <dc:creator>Jens Ebert</dc:creator>
      <dc:date>2005-06-02T03:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905146#M559764</link>
      <description>&lt;BR /&gt;Any network mounted filesystem containing that many huge number of files will have this problem. so i believe you will be facing the same issue with smbmount also.&lt;BR /&gt;&lt;BR /&gt;you can try for some file grouping (grouping files in to a particular directory structure) so that at a time a directory can contain maximum of 1000 to 2000 files.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 02 Jun 2005 04:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905146#M559764</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-02T04:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905147#M559765</link>
      <description>Is it is only `ls` that takes that long or is it an `ls -l` which takes that long?&lt;BR /&gt;&lt;BR /&gt;As far as I understand `ls` and filesystems, the `ls` 'only' reads the directory, sorts the names and spits that out This should be relatively quick. An `ls -l` does not only read the directory, but also each inode that come with each file for the info stored in there (all but the filename). Specially the latter wil be a lot. For 20000 files, it will be 20000 requests, which each have to be answered. On local storage, this info is cached info and hence relatively quick. With nfs, it has to be asked every time since it can change outside the systems knowledge.&lt;BR /&gt;&lt;BR /&gt;For samba, the requiests are rougly equal, however, I don't know if there the inode info is combined with the directory info at the server side. Best to give it a try (and inform us)</description>
      <pubDate>Fri, 03 Jun 2005 02:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905147#M559765</guid>
      <dc:creator>C. Beerse_1</dc:creator>
      <dc:date>2005-06-03T02:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905148#M559766</link>
      <description>It really is "ls" that takes that long (in fact, our java based applications does the listing java-like).&lt;BR /&gt;The problem seems to be based on the size of the directory entry itself: because of the huge number of files it contained at some time in the past, it was about 95MB. If I rmdir it and recreate it, all looks fine. BUT the problem will show up soon again, as our processes will put many files in it soon ...&lt;BR /&gt;I will try to find time to use cifs, but up to the comments I got from various sources up to now, that might no improve the situation.</description>
      <pubDate>Fri, 03 Jun 2005 05:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905148#M559766</guid>
      <dc:creator>Jens Ebert</dc:creator>
      <dc:date>2005-06-03T05:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905149#M559767</link>
      <description>This is a common problem amongst all Filesystems - UFS, VxFS, NFS. The fix is to reorg your storage so you do not have that great a number of files contained in one directory.&lt;BR /&gt;&lt;BR /&gt;If it cannot be avoided, then application routines (and users) should simply avoid doing a directory listing in such filesystems. One possible appllication fix that we've tried in the past is to simply catalog and index the entries if such filesystems in a database. A web front-end (queriable) then takes place of the "ls" / listing front end.&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jun 2005 07:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905149#M559767</guid>
      <dc:creator>Zinky</dc:creator>
      <dc:date>2005-06-03T07:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: NFS problem sharing many files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905150#M559768</link>
      <description>We will redesign our application and switch to database usage instead of filesystem usage.</description>
      <pubDate>Tue, 07 Jun 2005 10:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-problem-sharing-many-files/m-p/4905150#M559768</guid>
      <dc:creator>Jens Ebert</dc:creator>
      <dc:date>2005-06-07T10:18:38Z</dc:date>
    </item>
  </channel>
</rss>

