Messages in this thread | | | Subject | Re: [patch] speed up single bio_vec allocation | From | Andi Kleen <> | Date | 08 Dec 2006 03:27:54 +0100 |
| |
"Chen, Kenneth W" <kenneth.w.chen@intel.com> writes: > > I tried to use cache_line_size() to find out the alignment of struct bio, but > stumbled on that it is a runtime function for x86_64.
It's a single global variable access:
#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
Or do you mean it caused cache misses? boot_cpu_data is cache aligned and practically read only, so there shouldn't be any false sharing at least.
-Andi
- 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/
| |