Well we want to run it against the snapshot so I think we need the -S option. When you run it against the FS filtering by SNAP_ID, you miss any files that have been deleted since the snapshot.
Heath
From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org>
On Behalf Of Jan-Frode Myklebust
Sent: Tuesday, August 3, 2021 2:09 PM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Subject: Re: [gpfsug-discuss] mmapplypolicy slow
Just guessing, but maybe some «where SNAP_ID('SnapshotName')»
is better than -S 20210104?
?
tir. 3. aug. 2021 kl. 20:59 skrev Peeples, Heath <heathp@hpc.msstate.edu>:
Yes, that advertisement makes me smile 😊
I have tried both of those, and they do not seem to make any difference. I have also played with the -A and -a parameters with no combination that I can find making it any better.
Thanks for the feedback.
From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Jan-Frode Myklebust
Sent: Tuesday, August 3, 2021 1:49 PM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Subject: Re: [gpfsug-discuss] mmapplypolicy slow
So…. the advertisement ssys we should be able to do 1M files/s…
First I would try is if maybe limiting which nodes are used for the processing helps. Maybe limit to the NSD-servers (-N nodenames) ?
Also, --choice-algorithm fast might help..?
-jf
tir. 3. aug. 2021 kl. 20:18 skrev Peeples, Heath <heathp@hpc.msstate.edu>:
I am trying to use mmapplypolicy to determine what files are modified in a particular snapshop. Below I have the policy and mmapplypolicy parameters I am using. It is taking 3-4 hours to list these files. There are roughly 176M files. This is running on a DDN Gridscaler 12K system. Seems to me after seeing others posts we should be able to run this much quicker. Any help would be appreciated.
mmapplypolicy fs2 -S 20210104 -I defer -A 175 -a 72 -B 10000 -N all -g /fs1/tmp/heath -P /fs2/tmp/snaps/heath.pol -f /fs2/tmp/snaps/heath/output/20210104
RULE 'find_mods' list 'mods'
DIRECTORIES_PLUS
WEIGHT(0)
SHOW( VARCHAR(USER_ID) || ' ' || varchar(FILE_SIZE) || ' ' || varchar(MODIFICATION_SNAPID) )
Heath
_______________________________________________
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