Re: [PATCH] lockfree rtcache lookup using RCU

Dipankar Sarma (dipankar@in.ibm.com)
Wed, 8 May 2002 14:24:33 +0530


On Wed, May 08, 2002 at 01:10:08AM -0700, David S. Miller wrote:
> From: Dipankar Sarma <dipankar@in.ibm.com>
> Date: Wed, 8 May 2002 12:57:11 +0530
>
> For 1 to 8 CPUs I used the test script
> to send a fixed number of packets to a single destination address.
> The results show that time needed for lookup continuously increases
> for 2.5.3 wherease for rt_rcu-2.5.3, it remains constant.
>
> How does it perform for a write-heavy workload such
> as a massive route flap?

Can you suggest a test to do this ? I can't think of anything other
than manually flushing the route cache.

>
> Both are equally important.

Yes. With RCU, the write-side doesn't affect the performance
of the read-side. However, there is the additional overhead
of calling call_rcu() and queueing up of the RCU callback
for every dst entry that is freed. The other aspect is of
latency, how quickly the deferred rcu callbacks are invoked.
We have done some studies in this regard under various
degrees of workloads. I will put up the graphs in lse. They
will also be presented at OLS2002.

>
> Also, workload for single destination isn't all that interesting
> since such a workload isn't all that common except in benchmarking.

A heavily loaded webserver with NATed ip addresses. Would this not
result in many server processes looking up the same ip address ?

Thanks

-- 
Dipankar Sarma  <dipankar@in.ibm.com> http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/