Repository navigation
Commit f04565d
dev: use name hash for dev_seq_ops
Instead of using the dev->next chain and trying to resync at each call to
dev_seq_start, use the name hash, keeping the bucket and the offset in
seq->private field.
Tests revealed the following results for ifconfig > /dev/null
* 1000 interfaces:
* 0.114s without patch
* 0.089s with patch
* 3000 interfaces:
* 0.489s without patch
* 0.110s with patch
* 5000 interfaces:
* 1.363s without patch
* 0.250s with patch
* 128000 interfaces (other setup):
* ~100s without patch
* ~30s with patch
Signed-off-by: Mihai Maruseac <mmaruseac@ixiacom.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent e09eff7 commit f04565d
1 file changed
Lines changed: 69 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
| 4096 | + | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
4096 | 4150 | | |
4097 | 4151 | | |
4098 | 4152 | | |
4099 | 4153 | | |
4100 | 4154 | | |
4101 | 4155 | | |
4102 | 4156 | | |
4103 | | - | |
4104 | | - | |
4105 | | - | |
| 4157 | + | |
4106 | 4158 | | |
4107 | 4159 | | |
4108 | 4160 | | |
4109 | 4161 | | |
4110 | 4162 | | |
4111 | | - | |
4112 | | - | |
4113 | | - | |
4114 | | - | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
4115 | 4166 | | |
4116 | | - | |
| 4167 | + | |
4117 | 4168 | | |
4118 | 4169 | | |
4119 | 4170 | | |
4120 | 4171 | | |
4121 | | - | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
4122 | 4175 | | |
4123 | 4176 | | |
4124 | | - | |
4125 | | - | |
4126 | | - | |
| 4177 | + | |
4127 | 4178 | | |
4128 | | - | |
4129 | | - | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
4130 | 4184 | | |
4131 | 4185 | | |
4132 | 4186 | | |
| |||
4225 | 4279 | | |
4226 | 4280 | | |
4227 | 4281 | | |
4228 | | - | |
| 4282 | + | |
4229 | 4283 | | |
4230 | 4284 | | |
4231 | 4285 | | |
| |||
0 commit comments