Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270047

Re: Having ten thousands of mount bind causes various processes to go into loops

From Max Nikulin <manikulin@gmail.com>
Newsgroups linux.debian.user
Subject Re: Having ten thousands of mount bind causes various processes to go into loops
Date 2024-06-12 18:20 +0200
Message-ID <IOyRz-2pWC-7@gated-at.bofh.it> (permalink)
References <IOtfb-2mws-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/06/2024 17:02, Julien Petit wrote:
> for i in {1..14000}
> do
>     echo "Mounting dir $i"
>     mkdir "/home/test/directories/dir_$i"
>     mkdir "/home/test/mounts/dir_$i"
>     mount --bind -o rw "/home/test/directories/dir_$i" "/home/test/mounts/dir_$i"
> done
> 
> After that, the "top" command will show processes getting stuck using
> 100% of CPU never ending.

What processes are CPU hungry?

> Has anyone a clue if this is fixable? Should i report a bug?

Perhaps it is not a Debian-specific bug, just more active usage of 
sandboxing in systemd. If some applications have troubles parsing 
/proc/mounts then bugs should be filed against them.

However do you need shared subtrees? It may cause exponential growth of 
number of moutpoints, see
https://docs.kernel.org/filesystems/sharedsubtree.html
https://manpages.debian.org/bookworm/mount/mount.8.en.html#Shared_subtree_operations

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Having ten thousands of mount bind causes various processes to go  into loops Julien Petit <julien@nethik.fr> - 2024-06-12 12:20 +0200
  Re: Having ten thousands of mount bind causes various processes to go  into loops Max Nikulin <manikulin@gmail.com> - 2024-06-12 18:20 +0200
  Re: Having ten thousands of mount bind causes various processes to go  into loops Richard <rrosner5@gmail.com> - 2024-06-12 19:10 +0200
    Re: Having ten thousands of mount bind causes various processes to go  into loops Julien Petit <julien@nethik.fr> - 2024-06-14 12:00 +0200
      Re: Having ten thousands of mount bind causes various processes to go  into loops Richard <rrosner5@gmail.com> - 2024-06-14 13:00 +0200
        Re: Having ten thousands of mount bind causes various processes to go  into loops Julien Petit <julien@nethik.fr> - 2024-06-19 11:10 +0200

csiph-web