linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Performance improvements for ovl_indexdir_cleanup()
@ 2022-10-04 10:34 Amir Goldstein
  2022-10-04 10:34 ` [PATCH 1/2] ovl: do not reconnect upper index records in ovl_indexdir_cleanup() Amir Goldstein
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Amir Goldstein @ 2022-10-04 10:34 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-unionfs

Miklos,

I ran into an incident of very large index dir which took considerable
amount of time to mount the indexed overlay (~30 minutes).
The index dir had millions of entries and I do not think that the use
case that caused this is typical.

The following two patches are based on perf top analysis of this
incident.  I do not have access to the data set that caused the
very long mount time, but I tested the desired CPU usage improvements
on a smaller scale data set.

It is hard to say if this extreme case of very large index dir is
common enough to be worth any attention, so I did not tag the fixes
for stable and I don't think it is urgent to apply them.

Unfortunattely, the investigation of the incident was not timed
optimally w.r.t. to the current merge window.
Nevertheless, the changes are quite trivial, so you may want to consider
them either for -rc or for next release.

Thanks,
Amir.

Amir Goldstein (2):
  ovl: do not reconnect upper index records in ovl_indexdir_cleanup()
  ovl: use plain list filler in indexdir and workdir cleanup

 fs/overlayfs/export.c    |  4 ++--
 fs/overlayfs/namei.c     |  7 ++++---
 fs/overlayfs/overlayfs.h |  3 ++-
 fs/overlayfs/readdir.c   | 12 ++----------
 4 files changed, 10 insertions(+), 16 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-06 12:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 10:34 [PATCH 0/2] Performance improvements for ovl_indexdir_cleanup() Amir Goldstein
2022-10-04 10:34 ` [PATCH 1/2] ovl: do not reconnect upper index records in ovl_indexdir_cleanup() Amir Goldstein
2022-10-04 10:34 ` [PATCH 2/2] ovl: use plain list filler in indexdir and workdir cleanup Amir Goldstein
2022-10-06 12:21 ` [PATCH 0/2] Performance improvements for ovl_indexdir_cleanup() Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).