[gpfsug-discuss] AFM experiences?

Luke Raimbach luke.raimbach at googlemail.com
Tue Nov 24 12:16:55 GMT 2020


Hi Rob,

Some things to think about from experiences a year or so ago...

If you intend to perform any HPC workload (writing / updating / deleting
files) inside a cache, then appropriately specified gateway nodes will be
your friend:

1. When creating, updating or deleting files in the cache, each operation
requires acknowledgement from the gateway handling that particular cache,
before returning ACK to the application. This will add a latency overhead
to the workload - if your storage is IB connected to the compute cluster
and using verbsRdmaSend for example, this will increase your happiness.
Connecting low-spec gateway nodes over 10GbE with the expectation that they
will "drain down" over time was a sore learning experience in the early
days of AFM for me.

2. AFM queues can quickly eat up memory. I think around 350bytes of memory
is consumed for each operation in the AFM queue, so if you have huge file
churn inside a cache then the queue will grow very quickly. If you run out
of memory, the node dies and you enter cache recovery when it comes back up
(or another node takes over). This can end up cycling the node as it tries
to revalidate a cache and keep up with any other queues. Get more memory!

I've not used AFM for a while now and I think the latter enormity has some
mitigation against create / delete cycles (i.e. the create operation is
expunged from the queue instead of two operations being played back to the
home). I expect IBM experts will tell you more about those improvements.
Also, several smaller caches are better than one large one (parallel
execution of queues helps utilise the available bandwidth and you have a
better failover spread if you have multiple gateways, for example).

Independent Writer mode comes with some small danger (user error or
impatience mainly) inasmuch as whoever updates a file last will win; e.g.
home user A writes a file, then cache user B updates the file after reading
it and tells user A the update is complete, when really the gateway queue
is long and the change is waiting to go back home. User A uses the file
expecting the changes are made, then updates it with some results.
Meanwhile the AFM queue drains down and user B's change arrives after user
A has completed their changes. The interim version of the file user B
modified will persist at home and user A's latest changes are lost. Some
careful thought about workflow (or good user training about eventual
consistency) will save some potential misery on this front.

Hope this helps,
Luke




On Mon, 23 Nov 2020 at 15:19, Robert Horton <robert.horton at icr.ac.uk> wrote:

> Hi all,
>
> We're thinking about deploying AFM and would be interested in hearing
> from anyone who has used it in anger - particularly independent writer.
>
> Our scenario is we have a relatively large but slow (mainly because it
> is stretched over two sites with a 10G link) cluster for long/medium-
> term storage and a smaller but faster cluster for scratch storage in
> our HPC system. What we're thinking of doing is using some/all of the
> scratch capacity as an IW cache of some/all of the main cluster, the
> idea to reduce the need for people to manually move data between the
> two.
>
> It seems to generally work as expected in a small test environment,
> although we have a few concerns:
>
> - Quota management on the home cluster - we need a way of ensuring
> people don't write data to the cache which can't be accomodated on
> home. Probably not insurmountable but needs a bit of thought...
>
> - It seems inodes on the cache only get freed when they are deleted on
> the cache cluster - not if they get deleted from the home cluster or
> when the blocks are evicted from the cache. Does this become an issue
> in time?
>
> If anyone has done anything similar I'd be interested to hear how you
> got on. It would be intresting to know if you created a cache fileset
> for each home fileset or just one for the whole lot, as well as any
> other pearls of wisdom you may have to offer.
>
> Thanks!
> Rob
>
> --
> Robert Horton | Research Data Storage Lead
> The Institute of Cancer Research | 237 Fulham Road | London | SW3 6JB
> T +44 (0)20 7153 5350 | E robert.horton at icr.ac.uk | W www.icr.ac.uk |
> Twitter @ICR_London
> Facebook: www.facebook.com/theinstituteofcancerresearch
>
> The Institute of Cancer Research: Royal Cancer Hospital, a charitable
> Company Limited by Guarantee, Registered in England under Company No.
> 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
>
> This e-mail message is confidential and for use by the addressee only.  If
> the message is received by anyone other than the addressee, please return
> the message to the sender by replying to it and then delete the message
> from your computer and network.
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at spectrumscale.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20201124/0c2dc53e/attachment-0002.htm>


More information about the gpfsug-discuss mailing list