Bug #79638 Reconcile CACHE_LINE_SIZE with CPU_LEVEL1_DCACHE_LINESIZE
Submitted: 14 Dec 2015 17:04
Reporter: Alexey Kopytov (OCA) Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server Severity:S4 (Feature request)
Version:5.6, 5.7 OS:Any
Assigned to: CPU Architecture:Any

[14 Dec 2015 17:04] Alexey Kopytov
Description:
InnoDB code has the CACHE_LINE_SIZE constant which is currently defined
in ut0counter.h to either 128 for POWER or 64 for everything else.

Replication code has the CPU_LEVEL1_DCACHE_LINESIZE constant with the
same semantics. The same constant is also used by Performance
Schema. But the exact value is defined on compile time in
cpu_info.cmake: it is the value returned by "getconf
LEVEL1_DCACHE_LINESIZE", if available, and 64 otherwise.

This is a request to reconcile those constants, i.e. 1) change
CPU_LEVEL1_DCACHE_LINESIZE to default to 128 on those architectures,
that need it, and 2) have InnoDB reuse that constant rather than
implement its own logic.

How to repeat:
Check how CPU_LEVEL1_DCACHE_LINESIZE and CACHE_LINE_SIZE are defined.