Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC Misreports L2 Cache Size
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
FR3141
n00b
n00b


Joined: 13 Jan 2018
Posts: 39

PostPosted: Mon Apr 09, 2018 8:53 am    Post subject: GCC Misreports L2 Cache Size Reply with quote

The "-march=native" flag of GCC on my system, which has a Haswell CPU, will report an L2 cache size of 8192 kilobytes:

Code:
echo | gcc -### -E - -march=native
...
 --param "l2-cache-size=8192"
...


But this is actually the L3 cache size. On a Haswell CPU the L2 cache size is 256 kilobytes.

What is the reason for this misreport? I've searched for reports on this issue but found none. Does GCC refer to "L3" as "L2?"

I ask this question because it may possibly have an effect on GCC cache optimization.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum