Re: [PATCH linux v2 1/1] fs/proc: use a rb tree for the directory entries

From: David Miller
Date: Mon Oct 06 2014 - 18:14:55 EST


From: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>
Date: Mon, 6 Oct 2014 16:30:34 +0200

> The current implementation for the directories in /proc is using a single
> linked list. This is slow when handling directories with large numbers of
> entries (eg netdevice-related entries when lots of tunnels are opened).
>
> This patch replaces this linked list by a red-black tree.
>
> Here are some numbers:
>
> dummy30000.batch contains 30 000 times 'link add type dummy'.
...
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>

FWIW:

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/