Messages in this thread Patch in this message |  | | Date | Tue, 2 Oct 2001 18:58:16 +0530 | From | Dipankar Sarma <> | Subject | [PATCH] cacheline align rt_cache_stat struct |
| |
The per-cpu rt_cache_stat structure should be padded to cacheline to avoid sharing of cachelines between different CPUs. Here is a patch to do that for SMP kernels.
Thanks Dipankar -- Dipankar Sarma <dipankar@in.ibm.com> Project: http://lse.sourceforge.net Linux Technology Center, IBM Software Lab, Bangalore, India.
diff -urN linux-2.4.10/include/net/route.h linux-2.4.10+rt/include/net/route.h --- linux-2.4.10/include/net/route.h Thu Sep 27 11:59:45 2001 +++ linux-2.4.10+rt/include/net/route.h Tue Oct 2 18:34:45 2001 @@ -105,7 +105,7 @@ unsigned int out_hit; unsigned int out_slow_tot; unsigned int out_slow_mc; -}; +} ____cacheline_aligned_in_smp; extern struct ip_rt_acct *ip_rt_acct; - 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/
|  |