Re: [gpfsug-discuss] FIle system vs Database
Generally the GPFS API will give you access to some information and functionality that are not available via the Posix API. But I don't think you'll find significant performance difference in cases where there is functional overlap. Going either way (Posix or GPFS-specific) - for each API call the execution path drops into the kernel - and then if required - an inter-process call to the mmfsd daemon process. From: Skylar Thompson <skylar2@u.washington.edu> To: gpfsug-discuss@spectrumscale.org Date: 11/30/2017 01:42 PM Subject: Re: [gpfsug-discuss] FIle system vs Database Sent by: gpfsug-discuss-bounces@spectrumscale.org On Thu, Nov 30, 2017 at 01:34:05PM -0500, Marc A Kaplan wrote:
It would be interesting to know how well Spectrum Scale large directory and small file features work in these sort of DB-ish applications.
You might want to optimize by creating a file system provisioned and tuned for such application...
Regardless of file system, `ls -1 | grep ...` in a huge directory is not going to be a good idea. But stats and/or opens on a huge directory to look for a particular file should work pretty well...
I've wondered if it would be worthwhile having POSIX look-alike commands like ls and find that plug into the GPFS API rather than making VFS calls. That's of course a project for my Copious Free Time... -- -- Skylar Thompson (skylar2@u.washington.edu)
Interesting, thanks for the information Marc. Could there be an improvement for something like "ls -l some-dir" using the API, though? Instead of getdents + stat for every file (entering and leaving kernel mode many times), could it be done in one operation with one context switch? On Thu, Nov 30, 2017 at 03:52:09PM -0500, Marc A Kaplan wrote:
Generally the GPFS API will give you access to some information and functionality that are not available via the Posix API.
But I don't think you'll find significant performance difference in cases where there is functional overlap.
Going either way (Posix or GPFS-specific) - for each API call the execution path drops into the kernel - and then if required - an inter-process call to the mmfsd daemon process.
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine
participants (2)
-
Marc A Kaplan -
Skylar Thompson
