lkml.org 
[lkml]   [2001]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.022 / U:5.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site