Eric W. Biederman
b099ce2602
net: Batch inet_twsk_purge
...
This function walks the whole hashtable so there is no point in
passing it a network namespace. Instead I purge all timewait
sockets from dead network namespaces that I find. If the namespace
is one of the once I am trying to purge I am guaranteed no new timewait
sockets can be formed so this will get them all. If the namespace
is one I am not acting for it might form a few more but I will
call inet_twsk_purge again and shortly to get rid of them. In
any even if the network namespace is dead timewait sockets are
useless.
Move the calls of inet_twsk_purge into batch_exit routines so
that if I am killing a bunch of namespaces at once I will just
call inet_twsk_purge once and save a lot of redundant unnecessary
work.
My simple 4k network namespace exit test the cleanup time dropped from
roughly 8.2s to 1.6s. While the time spent running inet_twsk_purge fell
to about 2ms. 1ms for ipv4 and 1ms for ipv6.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2009-12-03 12:23:47 -08:00
..
2009-11-02 08:43:45 -06:00
2009-10-07 01:10:46 -07:00
2009-08-05 10:42:58 -07:00
2009-06-19 00:10:40 -07:00
2009-11-06 00:55:55 -08:00
2009-12-03 12:22:03 -08:00
2009-11-18 10:08:26 -08:00
2009-11-29 00:57:15 -08:00
2009-10-22 21:56:42 -07:00
2008-07-14 22:42:19 -07:00
2009-08-17 21:33:49 -07:00
2009-09-15 02:37:40 -07:00
2009-08-12 21:54:50 -07:00
2007-04-26 15:50:17 -07:00
2008-11-26 15:32:27 -08:00
2009-11-04 05:06:25 -08:00
2009-09-01 17:40:57 -07:00
2009-01-21 14:01:59 -08:00
2008-02-12 17:53:34 -08:00
2009-03-24 23:32:03 -07:00
2009-11-19 11:09:02 -05:00
2008-11-19 15:44:53 -08:00
2009-03-28 15:01:36 +11:00
2009-10-20 01:09:17 -07:00
2005-08-29 15:32:25 -07:00
2009-09-01 01:24:30 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2006-03-20 22:42:39 -08:00
2009-11-04 05:06:25 -08:00
2007-10-10 16:52:50 -07:00
2008-11-27 23:04:13 -08:00
2009-03-21 19:06:54 -07:00
2008-01-28 14:55:58 -08:00
2009-09-01 17:40:31 -07:00
2009-11-04 23:24:15 -08:00
2008-01-31 19:27:02 -08:00
2009-03-27 00:16:21 -07:00
2009-12-03 12:22:55 -08:00
2008-11-25 17:35:18 -08:00
2008-07-05 21:26:57 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2008-07-18 04:04:22 -07:00
2009-10-30 16:49:20 -04:00
2009-11-06 14:32:18 +03:00
2009-07-23 17:08:51 +04:00
2009-11-04 05:06:25 -08:00
2007-01-26 01:04:55 -08:00
2009-10-18 18:52:53 -07:00
2008-04-03 14:28:30 -07:00
2009-09-30 16:12:20 -07:00
2009-02-14 22:58:35 -08:00
2009-02-26 23:13:35 -08:00
2009-11-13 20:46:56 -08:00
2009-10-18 18:52:53 -07:00
2009-12-03 12:23:47 -08:00
2009-11-13 20:46:58 -08:00
2006-12-22 11:12:07 -08:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2008-06-11 21:00:38 -07:00
2009-11-06 00:55:55 -08:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2008-07-25 02:54:40 -07:00
2008-06-11 21:00:38 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2009-02-14 22:58:35 -08:00
2009-11-04 05:06:25 -08:00
2005-04-16 15:20:36 -07:00
2008-11-21 11:42:55 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-10 16:49:07 -07:00
2008-02-29 11:46:17 -08:00
2008-03-31 21:02:47 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-03-31 21:02:47 -07:00
2008-03-28 16:28:36 -07:00
2009-12-01 22:13:38 -08:00
2008-04-12 13:43:22 +09:00
2009-09-24 07:21:04 -07:00
2009-11-04 05:06:25 -08:00
2009-12-03 12:22:01 -08:00
2009-01-06 11:38:15 -07:00
2008-01-28 14:53:38 -08:00
2009-03-28 15:01:37 +11:00
2009-08-25 16:07:40 +02:00
2009-01-21 14:02:01 -08:00
2006-09-22 14:55:04 -07:00
2009-08-19 23:08:22 +04:00
2005-08-29 16:01:32 -07:00
2009-11-20 15:35:04 -08:00
2009-11-04 05:06:25 -08:00
2009-11-05 21:40:17 -08:00
2009-03-21 19:06:50 -07:00
2008-03-22 16:56:51 -07:00
2009-06-23 04:31:07 -07:00
2009-11-04 05:06:25 -08:00
2009-04-22 16:57:17 -04:00
2009-12-02 22:07:23 -08:00
2009-07-26 19:11:14 -07:00
2009-12-01 16:15:50 -08:00
2009-11-08 00:53:51 -08:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2005-07-05 15:12:04 -07:00
2009-04-27 02:45:02 -07:00
2009-11-08 20:53:06 -08:00
2008-07-05 21:25:39 -07:00
2006-01-03 13:10:57 -08:00
2009-12-02 22:24:02 -08:00
2008-11-21 16:45:22 -08:00
2009-09-02 01:03:49 -07:00
2009-11-10 20:54:38 -08:00
2008-10-29 01:41:45 -07:00
2009-10-07 16:39:43 -04:00
2009-10-19 15:56:07 +09:00
2009-11-06 14:32:24 +03:00
2009-11-29 00:24:59 -08:00
2007-04-25 22:24:32 -07:00
2009-11-25 15:48:38 -08:00