<div dir="ltr">Hi all,<div><br></div><div>We are running into a bizarre situation where we aren't having stale locks cancel themselves, and even worse, it seems as if ldlm.namespaces.*.lru_size is being ignored.</div><div><br></div><div>For instance, I unmount our Lustre file systems on a client machine, then remount. Next, I'll run "lctl set_param ldlm.namespaces.*.lru_max_age=60s, lctl set_param ldlm.namespaces.*.lru_size=1024". This (I believe) theoretically would only allow 1024 ldlm locks per osc, and then I'd see a lot of lock cancels (via ldlm.namespaces.${ost}.pool.stats). We also should see cancels if the grant time > lru_max_age.</div><div><br></div><div>We can trigger this simply by running 'find' on the root of our Lustre file system, and waiting for awhile. Eventually the clients SUnreclaim value bloats to 60-70GB (!!!), and each of our OSTs have 30-40k LRU locks (via lock_count). This is early in the process:</div><div><br></div><div>"""</div><div>ldlm.namespaces.h5-OST003f-osc-ffff8802d8559000.lock_count=2090<br>ldlm.namespaces.h5-OST0040-osc-ffff8802d8559000.lock_count=2127<br>ldlm.namespaces.h5-OST0047-osc-ffff8802d8559000.lock_count=52<br>ldlm.namespaces.h5-OST0048-osc-ffff8802d8559000.lock_count=1962<br>ldlm.namespaces.h5-OST0049-osc-ffff8802d8559000.lock_count=1247<br>ldlm.namespaces.h5-OST004a-osc-ffff8802d8559000.lock_count=1642<br>ldlm.namespaces.h5-OST004b-osc-ffff8802d8559000.lock_count=1340<br>ldlm.namespaces.h5-OST004c-osc-ffff8802d8559000.lock_count=1208<br>ldlm.namespaces.h5-OST004d-osc-ffff8802d8559000.lock_count=1422<br>ldlm.namespaces.h5-OST004e-osc-ffff8802d8559000.lock_count=1244<br>ldlm.namespaces.h5-OST004f-osc-ffff8802d8559000.lock_count=1117<br>ldlm.namespaces.h5-OST0050-osc-ffff8802d8559000.lock_count=1165<br></div><div>"""</div><div><br></div><div>But this will grow over time, and eventually this compute node gets evicted from the MDS (after 10 minutes of cancelling locks/hanging). The only way we have been able to reduce the slab usage is to drop caches and set LRU=clear...but the problem just comes back depending on the workload.</div><div><br></div><div>We are running 2.10.3 client side, 2.10.1 server side. Have there been any fixes added into the codebase for 2.10 that we need to apply? This seems to be the closest to what we are experiencing:</div><div><br></div><div><a href="https://jira.whamcloud.com/browse/LU-11518">https://jira.whamcloud.com/browse/LU-11518</a><br></div><div><br></div><div></div><div>    <br clear="all"><div>PS: I've checked other systems across our cluster, and some of them have as many as 50k locks per OST. I am kind of wondering if these locks are staying around much longer than the lru_max_age default (65 minutes), but I cannot prove that. Is there a good way to translate held locks to fids? I have been messing around with lctl set_param debug="XXX" and lctl set_param ldlm.namespaces.*.dump_namespace, but I don't feel like I'm getting *all* of the locks.</div><div><br></div>~Steve<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr" style="font-family:arial,helvetica,sans-serif;line-height:1.44;margin-top:0pt;margin-bottom:0pt"></p></div></div></div></div>