Bug #79922 valid query_cache_size value being adjusted to 4294966272 even on 64 bit systems
Submitted: 12 Jan 2016 0:36 Modified: 7 Jul 2017 9:09
Reporter: Charlie Sain Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Query Cache Severity:S2 (Serious)
Version:5.1,5.5, 5.6,5.7,8.0 OS:Windows (Windows 10 (hyper-v instance))
Assigned to: CPU Architecture:Any
Tags: query_cache_size adjusted to 4294966272

[12 Jan 2016 0:36] Charlie Sain
Description:
Large, but valid, query_cache_size values are being adjusted down when MySQL server 5.7.10 starts. 

Exact error log message for my instance:
[Warning] option 'query_cache_size': unsigned value 17179869184 adjusted to 4294966272

This value, and larger values, run under 5.6x without issue.

How to repeat:
Set query_cache_size value in a large value in the .ini file and start server.
[12 Jan 2016 4:27] MySQL Verification Team
thanks for the report.  Verified on windows.

[Warning] option 'query_cache_size': unsigned value 12884901888 adjusted to 4294966272
Version: '5.7.11'  socket: ''  port: 3306  MySQL Community Server (GPL)
[12 Jan 2016 4:29] MySQL Verification Team
5.1.73, 5.5.47, 5.6.28, 5.7.11, 5.8.0 are all affected here.
[12 Jan 2016 7:05] MySQL Verification Team
for what it's worth, having a query cache larger than 4GB is not recommended for most installations.
[18 Jun 2016 21:35] Omer Barnir
Posted by developer:
 
Reported version value updated to reflect release name change from 5.8 to 8.0
[7 Jul 2017 9:09] Erlend Dahl
MySQL will no longer invest in the query cache, see:

http://mysqlserverteam.com/mysql-8-0-retiring-support-for-the-query-cache/
[28 Nov 2018 15:17] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=93385 marked as duplicate of this one.
[28 Nov 2018 22:05] Rodrigo itmnetworks
don't have a solution ?

i have big number of websites with myisam with static queries, 192GB of ram to use on query cache, and simple: Oracle not will fix the BUG ?
[28 Nov 2018 22:11] Rodrigo itmnetworks
Charlie,

>This value, and larger values, run under 5.6x without issue.

what's mysql 5.6x version you have running more than 4GB on query_cache_size ?