Sometimes, I look at the data that's being stored in my file systems and just shake my head: /gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory) Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413
Clearly, those are the ones they’re working on. You’re lucky they’re de-duped. -- Stephen
On Aug 22, 2018, at 1:12 PM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Sometimes, I look at the data that's being stored in my file systems and just shake my head:
/gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory)
Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
On Wed, 22 Aug 2018 17:12:24 -0000, "Oesterlin, Robert" said:
Sometimes, I look at the data that's being stored in my file systems and just shake my head:
/gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory)
I've got 114,029 files of the form: /gpfs/archive/tenant/this/that/F:\the\other\thing\what\where\they\thinking/apparently/not/much.dat I admit being mystified - how does such a mess happen? (Note that our tenant users are only able to access the GPFS filesystem through NFS - which is only exported to other Linux systems....)
A very, very long time ago we had an AIX system (4.3 with jfs1) where the users logged in interactively. We would find files with names like: /C:\some\very \non-posix\path/file There's a reason they're called lusers. On 8/22/18, 3:36 PM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of valdis.kletnieks@vt.edu" <gpfsug-discuss-bounces@spectrumscale.org on behalf of valdis.kletnieks@vt.edu> wrote: On Wed, 22 Aug 2018 17:12:24 -0000, "Oesterlin, Robert" said: > Sometimes, I look at the data that's being stored in my file systems and just shake my head: > > /gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory) I've got 114,029 files of the form: /gpfs/archive/tenant/this/that/F:\the\other\thing\what\where\they\thinking/apparently/not/much.dat I admit being mystified - how does such a mess happen? (Note that our tenant users are only able to access the GPFS filesystem through NFS - which is only exported to other Linux systems....) The information contained in this e-mail message may be privileged, confidential, and/or protected from disclosure. This e-mail message may contain protected health information (PHI); dissemination of PHI should comply with applicable federal and state laws. If you are not the intended recipient, or an authorized representative of the intended recipient, any further review, disclosure, use, dissemination, distribution, or copying of this message or any attachment (or the information contained therein) is strictly prohibited. If you think that you have received this e-mail message in error, please notify the sender by return e-mail and delete all references to it and its contents from your systems.
On 22/08/18 18:12, Oesterlin, Robert wrote:
Sometimes, I look at the data that's being stored in my file systems and just shake my head:
/gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory)
That's what inode quota's are for. Set it pretty high to begin with, say one million. That way the vast majority of users have no issues ever. Then the troublesome few will have issues at which point you can determine why they are storing so many files, and appropriately educate them on better ways to do it. Finally if they really need that many files just charge them for it :-) Having lots of files has a cost just like having lots of data has a cost, and it's not fair for the reasonable users to subsidize them. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On Wed, Aug 22, 2018 at 11:37:55PM +0100, Jonathan Buzzard wrote:
On 22/08/18 18:12, Oesterlin, Robert wrote:
Sometimes, I look at the data that's being stored in my file systems and just shake my head:
/gpfs/<path removed>/Restricted/EventChangeLogs/deduped/working contains 17,967,350 files (in ONE directory)
That's what inode quota's are for. Set it pretty high to begin with, say one million. That way the vast majority of users have no issues ever. Then the troublesome few will have issues at which point you can determine why they are storing so many files, and appropriately educate them on better ways to do it. Finally if they really need that many files just charge them for it :-) Having lots of files has a cost just like having lots of data has a cost, and it's not fair for the reasonable users to subsidize them.
Yep, we set our fileset inode quota to 1 million/TB of allocated space. It seems overly generous to me but it's far better than no limit at all. -- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine
Millions of files per directory, may well be a mistake... BUT there are some very smart use cases that might take advantage of GPFS having good performance with large directories -- because GPFS uses extensible hashing -- it is better to store millions of files in a single GPFS directory than artificially scatter them among directories based on the mistaken notion that large directories are bad. (Yeah, they are in most implementations, but not in GPFS.)
But heaven help you if you export the gpfs on nfs or cifs. -- ddj Dave Johnson
On Aug 23, 2018, at 11:23 AM, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Millions of files per directory, may well be a mistake...
BUT there are some very smart use cases that might take advantage of GPFS having good performance with large directories -- because GPFS uses extensible hashing -- it is better to store millions of files in a single GPFS directory than artificially scatter them among directories based on the mistaken notion that large directories are bad. (Yeah, they are in most implementations, but not in GPFS.)
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Even with nfs or samba export you're probably okay as long as the application does not attempt to list the directory. Just probe it with stat/open/create/unlink. From: david_johnson@brown.edu To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 08/23/2018 11:34 AM Subject: Re: [gpfsug-discuss] Those users.... millions of files per directory - not necessarily a mistake Sent by: gpfsug-discuss-bounces@spectrumscale.org But heaven help you if you export the gpfs on nfs or cifs. -- ddj Dave Johnson On Aug 23, 2018, at 11:23 AM, Marc A Kaplan <makaplan@us.ibm.com> wrote: Millions of files per directory, may well be a mistake... BUT there are some very smart use cases that might take advantage of GPFS having good performance with large directories -- because GPFS uses extensible hashing -- it is better to store millions of files in a single GPFS directory than artificially scatter them among directories based on the mistaken notion that large directories are bad. (Yeah, they are in most implementations, but not in GPFS.) _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Thankfully all application developers completely understand why listing directories are a bad idea... ;o) Or at least they will learn the hard way otherwise, -B From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Marc A Kaplan Sent: Thursday, August 23, 2018 12:01 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Those users.... millions of files per directory - not necessarily a mistake Note: External Email ________________________________ Even with nfs or samba export you're probably okay as long as the application does not attempt to list the directory. Just probe it with stat/open/create/unlink. From: david_johnson@brown.edu<mailto:david_johnson@brown.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 08/23/2018 11:34 AM Subject: Re: [gpfsug-discuss] Those users.... millions of files per directory - not necessarily a mistake Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ But heaven help you if you export the gpfs on nfs or cifs. -- ddj Dave Johnson On Aug 23, 2018, at 11:23 AM, Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> wrote: Millions of files per directory, may well be a mistake... BUT there are some very smart use cases that might take advantage of GPFS having good performance with large directories -- because GPFS uses extensible hashing -- it is better to store millions of files in a single GPFS directory than artificially scatter them among directories based on the mistaken notion that large directories are bad. (Yeah, they are in most implementations, but not in GPFS.) _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss___________________________... gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company's treatment of personal data, please email datarequests@jumptrading.com.
participants (10)
-
Andrew Beattie -
Bryan Banister -
david_johnson@brown.edu -
Fosburgh,Jonathan -
Jonathan Buzzard -
Marc A Kaplan -
Oesterlin, Robert -
Skylar Thompson -
Stephen Ulmer -
valdis.kletnieks@vt.edu
