lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 21 Jan 2010 09:19:19 -0800 From: john stultz <johnstul@...ibm.com> To: Richard Kennedy <richard@....demon.co.uk> Cc: Thomas Gleixner <tglx@...utronix.de>, Martin Schwidefsky <schwidefsky@...ibm.com>, Ingo Molnar <mingo@...e.hu>, Andrew Morton <akpm@...ux-foundation.org>, lkml <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] kernel/timekeeping: move xtime_cache to be in the same cache line as the lock On Thu, 2010-01-21 at 15:39 +0000, Richard Kennedy wrote: > move xtime_cache to be in the same cache line as the lock > > allowing current_kernel_time() to access only one cache line > > when running fio write tests on a 2 core machine, on some of the runs > 'perf record -e cache_misses' shows current_kernel_time near the top of > the list of cache_misses with 5.5%. > On the other runs it's down at 0.05% so I'm assuming that the difference > is just down to which core the test client get run on. > > This patch moves the xtime_cache variable near to the lock so that it > only need to access one cache line. > With this applied it drops the current_kernel_time cache_misses in the > slow case to 4.5% > > Signed-off-by: Richard Kennedy <richard@....demon.co.uk> Hrm.. I'm hoping to kill off the xtime_cache at some point soon, so I'm not sure if this patch will do much for long. That said, I'm not opposed to it in the mean time, and when xtime_cache does get yanked, I'd appreciate similar performance review to make sure we're not regressing. > --- > patch against v2.6.33-rc4 > compiled & tested on AMD64X2 x86_64 > > > BTW on 64 bit timespec is a 16 byte structure so the aligned 16 doesn't > do much, and on 32bit timepec is 8bytes so this just seems to spread > these variables across more cache lines than necessary. Any ideas what > this is here for? I think it was a copy-paste from the xtime and wall_to_monotonic definitions, which both have the same alignment. thanks -john -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists