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

Dipankar Sarma <> Project:
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
More majordomo info at
Please read the FAQ at

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