* [PATCH] cacheline align rt_cache_stat struct
@ 2001-10-02 13:28 Dipankar Sarma
2001-10-02 23:06 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dipankar Sarma @ 2001-10-02 13:28 UTC (permalink / raw)
To: linux-kernel
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-02 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 13:28 [PATCH] cacheline align rt_cache_stat struct Dipankar Sarma
2001-10-02 23:06 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox