linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] configfs: reduce memory consumption by symlinks
@ 2024-04-01  8:26 Dmitry Bogdanov
  2024-04-01  8:26 ` [PATCH 1/2] " Dmitry Bogdanov
  2024-04-01  8:26 ` [PATCH 2/2] configfs: make a minimal path of symlink Dmitry Bogdanov
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Bogdanov @ 2024-04-01  8:26 UTC (permalink / raw)
  To: Joel Becker, Christoph Hellwig; +Cc: linux-fsdevel, linux, Dmitry Bogdanov

A SCSI target configuration of 2 ports, 650 backstores, 1200 ACLs consumes
170 GB RAM.
As it turned out that is because configfs allocates PAGE_SIZE for symlink
path. In PowerPC architecture a page is of 64 KB size and millions of
symlinks become hundreds of used GB.

This patch series reduses the usage of memory by symlinks in configfs to a
minimal possible amount - from of 64KB down to ~20 Bytes.


Dmitry Bogdanov (2):
  configfs: reduce memory consumption by symlinks
  configfs: make a minimal path of symlink

 fs/configfs/symlink.c | 75 ++++++++++++++++++++++++++-----------------
 1 file changed, 46 insertions(+), 29 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-04-01 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01  8:26 [PATCH 0/2] configfs: reduce memory consumption by symlinks Dmitry Bogdanov
2024-04-01  8:26 ` [PATCH 1/2] " Dmitry Bogdanov
2024-04-01 18:24   ` Joel Becker
2024-04-01  8:26 ` [PATCH 2/2] configfs: make a minimal path of symlink Dmitry Bogdanov
2024-04-01 18:55   ` Joel Becker

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).