public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Max binds
@ 2003-07-08  5:13 Jarmo Järvenpää
  2003-07-08  6:58 ` Ville Herva
  0 siblings, 1 reply; 4+ messages in thread
From: Jarmo Järvenpää @ 2003-07-08  5:13 UTC (permalink / raw)
  To: linux-kernel

Hi

I'm building chrooted environment for users and I'm using mount --bind
<what> <where> -scheme to mount some important directories for the user.
This works fine for couple users but what is the limit for binding
directories to show up on a different place? I tried googling but
couldn't find any direct answers.


Thanks,
Jarmo

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

* Re: Max binds
  2003-07-08  5:13 Max binds Jarmo Järvenpää
@ 2003-07-08  6:58 ` Ville Herva
  2003-07-08  9:00   ` Jarmo Järvenpää
  0 siblings, 1 reply; 4+ messages in thread
From: Ville Herva @ 2003-07-08  6:58 UTC (permalink / raw)
  To: Jarmo Järvenpää; +Cc: linux-kernel

On Tue, Jul 08, 2003 at 08:13:20AM +0300, you [Jarmo Järvenpää] wrote:
> Hi
> 
> I'm building chrooted environment for users and I'm using mount --bind
> <what> <where> -scheme to mount some important directories for the user.
> This works fine for couple users but what is the limit for binding
> directories to show up on a different place? I tried googling but
> couldn't find any direct answers.

See 
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=linux.kernel.3AE307AD.821AB47C%40linuxjedi.org&rnum=1&prev=/groups%3Fq%3Dg:thl1557665770d%26dq%3D%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Dlinux.kernel.3AE307AD.821AB47C%2540linuxjedi.org


-- v --

v@iki.fi

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

* Re: Max binds
  2003-07-08  6:58 ` Ville Herva
@ 2003-07-08  9:00   ` Jarmo Järvenpää
  2003-07-08 16:03     ` Herbert Poetzl
  0 siblings, 1 reply; 4+ messages in thread
From: Jarmo Järvenpää @ 2003-07-08  9:00 UTC (permalink / raw)
  To: linux-kernel

Ville Herva wrote:
> 
> See
> >http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=linux.kernel.3AE307AD.821AB47C%40linuxjedi.org&rn

>um=1&prev=/groups%3Fq%3Dg:thl1557665770d%26dq%3D%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Dlinux.kernel.3AE307AD.8>21AB47C%2540linuxjedi.org

Hmm, I read the thread and it contained mostly stats on memory usage on
different scenarios. Also, bit outdated discussion (kernel v 2.4.4). No
direct answer though. 


Jarmo

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

* Re: Max binds
  2003-07-08  9:00   ` Jarmo Järvenpää
@ 2003-07-08 16:03     ` Herbert Poetzl
  0 siblings, 0 replies; 4+ messages in thread
From: Herbert Poetzl @ 2003-07-08 16:03 UTC (permalink / raw)
  To: Jarmo Järvenpää; +Cc: linux-kernel

On Tue, Jul 08, 2003 at 12:00:49PM +0300, Jarmo Järvenpää wrote:
> Ville Herva wrote:
> > 
> > See
> > >http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=linux.kernel.3AE307AD.821AB47C%40linuxjedi.org&rn
> 
> >um=1&prev=/groups%3Fq%3Dg:thl1557665770d%26dq%3D%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Dlinux.kernel.3AE307AD.8>21AB47C%2540linuxjedi.org
> 
> Hmm, I read the thread and it contained mostly stats on memory usage on
> different scenarios. Also, bit outdated discussion (kernel v 2.4.4). No
> direct answer though. 

I'm no expert on the mount --bind stuff, but as far
as I understand it, this is simple (I guess Al Viro 
would agree *g*) VFS magic, so what happens seems to
be the following:

 - a new vfsmount entry is created by either
   copying the old tree or cloning the original
   mount (if it is a mountpoint)
 - the required dentries are added to the dcache

so the number of --bind mounts from another mount
point will be roughly limited by the number of
vfsmount structures possible, and the space available
to cache/store dentries ...

I guess there will be some tradeoff when the number
of --bind mounts becomes very high, but I guess it
is neglectible for normal use ...

I might be totaly wrong, so do not rely on it 8-)

HTH,
Herbert

> Jarmo
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2003-07-08 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08  5:13 Max binds Jarmo Järvenpää
2003-07-08  6:58 ` Ville Herva
2003-07-08  9:00   ` Jarmo Järvenpää
2003-07-08 16:03     ` Herbert Poetzl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox