[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140708215029.GC2382@p183.telecom.by>
Date: Wed, 9 Jul 2014 00:50:29 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, viro@...iv.linux.org.uk
Subject: Re: [PATCH 2/2] proc: faster /proc/$PID lookup
On Wed, Jul 09, 2014 at 12:45:57AM +0300, Alexey Dobriyan wrote:
> Currently lookup for /proc/$PID first goes through spinlock and
> whole list of misc /proc entries only to confirm that, yes,
> /proc/42 can not possibly match random proc entry.
>
> List is is several dozens entries long (52 entries on my setup).
>
> None of this is necessary.
>
> Try to convert dentry name to integer first.
> If it works, it must be /proc/$PID.
> If it doesn't, it must be random proc entry.
Recycled from Al Viro's patch as well!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists