[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080228.213148.12076357.davem@davemloft.net>
Date: Thu, 28 Feb 2008 21:31:48 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: timo.teras@....fi
Cc: netdev@...r.kernel.org
Subject: Re: [PATCHv2] [XFRM]: Speed up xfrm_policy and xfrm_state walking
From: Timo_Teräs <timo.teras@....fi>
Date: Fri, 15 Feb 2008 20:22:54 +0200
> Change xfrm_policy and xfrm_state walking algorithm from O(n^2) to O(n).
> This is achieved adding the entries to one more list which is used
> solely for walking the entries.
>
> This also fixes some races where the dump can have duplicate or missing
> entries when the SPD/SADB is modified during an ongoing dump.
>
> Dumping SADB with 20000 entries using "time ip xfrm state" the sys
> time dropped from 1.012s to 0.080s.
>
> Signed-off-by: Timo Teras <timo.teras@....fi>
Applied, although this will make add/delete slightly slower.
Could you do that AF_KEY dumping patch you talked about? I change my
mind, we can do it.
THanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists