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