* Re: devpts mounts too slowly
[not found] ` <20090609165304.add1a872.akpm@linux-foundation.org>
@ 2009-06-10 20:51 ` H. Peter Anvin
2009-06-24 20:01 ` Al Viro
0 siblings, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2009-06-10 20:51 UTC (permalink / raw)
To: Andrew Morton; +Cc: Ray Lee, renton, linux-kernel, linux-fsdevel
Andrew Morton wrote:
>
> hm, OK.
>
> I've now mounted 15000 devpts's and still no slowdown is evident.
I ran my test script, mounting ramfs, with n=100000, and well, gave up
since it hadn't gotten any further than 57000 or so overnight. At that
time each individual mount was taking several seconds.
Graphing the delays seem to indicate O(n^2) behavior.
umounts do not appear affected; each umount still take negible time.
-hpa
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: devpts mounts too slowly
2009-06-10 20:51 ` devpts mounts too slowly H. Peter Anvin
@ 2009-06-24 20:01 ` Al Viro
2009-06-24 21:58 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Al Viro @ 2009-06-24 20:01 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Andrew Morton, Ray Lee, renton, linux-kernel, linux-fsdevel
On Wed, Jun 10, 2009 at 01:51:25PM -0700, H. Peter Anvin wrote:
> Andrew Morton wrote:
> >
> > hm, OK.
> >
> > I've now mounted 15000 devpts's and still no slowdown is evident.
>
> I ran my test script, mounting ramfs, with n=100000, and well, gave up
> since it hadn't gotten any further than 57000 or so overnight. At that
> time each individual mount was taking several seconds.
>
> Graphing the delays seem to indicate O(n^2) behavior.
>
> umounts do not appear affected; each umount still take negible time.
I think I know what's going on. /sbin/mount is linked against libselinux
/sbin/umount is not. And FPOS in question blows if you
* do not have selinuxfs mounted (e.g. because selinux is not enabled)
* have a lot of mounts.
What happens is that this piece of crap checks for presence of selinuxfs
on /selinux; then, if the thing isn't there, we go and scan the entire
/proc/mounts in search of selinuxfs mounts.
If akpm has selinux enabled on his testbox and you don't have it on yours,
we have all observations explained. I'd expect similar slowdown from
ls on an empty directory, BTW - /bin/ls is linked against the same thing,
so it gets hit as well. Before it even gets to main().
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: devpts mounts too slowly
2009-06-24 20:01 ` Al Viro
@ 2009-06-24 21:58 ` Andrew Morton
2009-06-24 23:02 ` H. Peter Anvin
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2009-06-24 21:58 UTC (permalink / raw)
To: Al Viro; +Cc: hpa, ray-lk, renton, linux-kernel, linux-fsdevel
On Wed, 24 Jun 2009 21:01:08 +0100
Al Viro <viro@ZenIV.linux.org.uk> wrote:
> On Wed, Jun 10, 2009 at 01:51:25PM -0700, H. Peter Anvin wrote:
> > Andrew Morton wrote:
> > >
> > > hm, OK.
> > >
> > > I've now mounted 15000 devpts's and still no slowdown is evident.
> >
> > I ran my test script, mounting ramfs, with n=100000, and well, gave up
> > since it hadn't gotten any further than 57000 or so overnight. At that
> > time each individual mount was taking several seconds.
> >
> > Graphing the delays seem to indicate O(n^2) behavior.
> >
> > umounts do not appear affected; each umount still take negible time.
>
> I think I know what's going on. /sbin/mount is linked against libselinux
> /sbin/umount is not. And FPOS in question blows if you
> * do not have selinuxfs mounted (e.g. because selinux is not enabled)
> * have a lot of mounts.
>
> What happens is that this piece of crap checks for presence of selinuxfs
> on /selinux; then, if the thing isn't there, we go and scan the entire
> /proc/mounts in search of selinuxfs mounts.
>
> If akpm has selinux enabled on his testbox and you don't have it on yours,
> we have all observations explained.
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
# CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
> I'd expect similar slowdown from
> ls on an empty directory, BTW - /bin/ls is linked against the same thing,
> so it gets hit as well. Before it even gets to main().
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: devpts mounts too slowly
2009-06-24 21:58 ` Andrew Morton
@ 2009-06-24 23:02 ` H. Peter Anvin
0 siblings, 0 replies; 4+ messages in thread
From: H. Peter Anvin @ 2009-06-24 23:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: Al Viro, ray-lk, renton, linux-kernel, linux-fsdevel
Andrew Morton wrote:
>>>
>>> umounts do not appear affected; each umount still take negible time.
>> I think I know what's going on. /sbin/mount is linked against libselinux
>> /sbin/umount is not. And FPOS in question blows if you
>> * do not have selinuxfs mounted (e.g. because selinux is not enabled)
>> * have a lot of mounts.
>>
>> What happens is that this piece of crap checks for presence of selinuxfs
>> on /selinux; then, if the thing isn't there, we go and scan the entire
>> /proc/mounts in search of selinuxfs mounts.
>>
>> If akpm has selinux enabled on his testbox and you don't have it on yours,
>> we have all observations explained.
>
> CONFIG_SECURITY_SELINUX=y
> CONFIG_SECURITY_SELINUX_BOOTPARAM=y
> CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
> CONFIG_SECURITY_SELINUX_DISABLE=y
> CONFIG_SECURITY_SELINUX_DEVELOP=y
> CONFIG_SECURITY_SELINUX_AVC_STATS=y
> CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
> # CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
> # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
>
Wow. It doesn't even check for selinux actually being enabled before
embarking on this stupidity.
FAIL.
-hpa
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-24 23:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090603142801.GC21646@beaver.vrungel.ru>
[not found] ` <4A26EB18.6060907@zytor.com>
[not found] ` <20090609161945.811cc01f.akpm@linux-foundation.org>
[not found] ` <2c0942db0906091630l1cc79647h8689e9e929ed1bba@mail.gmail.com>
[not found] ` <20090609165304.add1a872.akpm@linux-foundation.org>
2009-06-10 20:51 ` devpts mounts too slowly H. Peter Anvin
2009-06-24 20:01 ` Al Viro
2009-06-24 21:58 ` Andrew Morton
2009-06-24 23:02 ` H. Peter Anvin
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).