Assuming your metadata storage is not already at its limit of throughput you may get improved performance by temporarily increasing the value of maxBackgroundDeletionThreads.  You can check its current value with "mmlsconfig maxBackgroundDeletionThreads" and change it with the command "mmchconfig maxBackgroundDeletionThreads=N -I".  Once the removal process is complete you can reset the value back to its previous value.

Fred
_______________________________________________________
Fred Stock | Spectrum Scale Development Advocacy | 720-430-8821
stockf@us.ibm.com
 
 
----- Original message -----
From: Ulrich Sibiller <u.sibiller@science-computing.de>
Sent by: gpfsug-discuss-bounces@spectrumscale.org
To: gpfsug-discuss@spectrumscale.org
Cc:
Subject: [EXTERNAL] Re: [gpfsug-discuss] Quick delete of huge tree
Date: Tue, Apr 20, 2021 8:10 AM
 
On 4/20/21 1:52 PM, Jan-Frode Myklebust wrote:
> A couple of ideas.
>
> The KC recommends adding WEIGHT(DIRECTORY_HASH) to group deletions within a directory. Then maybe > also do it as a 2-step process, in the same policy run. Where you delete all non-directories first,
> and then deletes the directories in a depth-first order using WEIGTH(Length(PATH_NAME)):
>
>
> RULE 'delnondir' DELETE
> WEIGHT(DIRECTORY_HASH)
>       DIRECTORIES_PLUS
>       WHERE PATH_NAME LIKE '/mypath/%' AND NOT MISC_ATTRIBUTES LIKE '%D%'
>
> RULE 'deldir' DELETE
>       DIRECTORIES_PLUS
>      WEIGHT(Length(PATH_NAME))
>       WHERE PATH_NAME LIKE '/mypath/%'  AND MISC_ATTRIBUTES LIKE '%D%'


Thanks, I am aware of that but it will not really help with my speed concerns.

Uli


--
Dipl.-Inf. Ulrich Sibiller           science + computing ag
System Administration                    Hagellocher Weg 73
Hotline +49 7071 9457 681          72070 Tuebingen, Germany
                           https://atos.net/de/deutschland/sc 
--
Science + Computing AG
Vorstandsvorsitzender/Chairman of the board of management:
Dr. Martin Matzke
Vorstand/Board of Management:
Matthias Schempp, Sabine Hohenstein
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Aufsichtsrat/Supervisory Board:
Martin Wibbe, Ursula Morgenstern
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss