getauxval.3: Add new cache geometry entries
PATCH 1/1 getauxval.3: Add new cache geometry entries
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
--- man3/getauxval.3 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
man3/getauxval.3 +27 -0
@@ -123,6 +123,33 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, that is, line size and number +of ways. +.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, that is, line size and +number of ways. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, that is, line size and number of ways. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, that is, line size and number of ways. +.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Signature · 1 line
2.21.0
Hello Raphael,
Thanks for this patch. I have a question below.
Quoted 13 lines · Raphael Moreira Zinsly
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
Signed-off-by Raphael Moreira Zinsly <[email protected]>--- man3/getauxval.3 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)man3/getauxval.3 +0
-0
man3/getauxval.3 The instruction cache block size. · line 129
Quoted 7 lines
man3/getauxval.3 +4
-0@@ -123,6 +123,33 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, that is, line size and number +of ways.
What is "number of ways"?
Thanks,
Michael
Quoted 27 lines
man3/getauxval.3 +23
-0+.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, that is, line size and +number of ways. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, that is, line size and number of ways. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, that is, line size and number of ways. +.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
Quoted 14 lines · Michael Kerrisk (man-pages)
Hello Raphael,
Thanks for this patch. I have a question below.
Quoted 8 lines · Raphael Moreira Zinsly
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
Signed-off-by Raphael Moreira Zinsly <[email protected]>--- man3/getauxval.3 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
Quoted 15 lines
man3/getauxval.3 The instruction cache block size. · line 129
Quoted 12 lines
man3/getauxval.3 +4
-0@@ -123,6 +123,33 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, that is, line size and number +of ways.What is "number of ways"?
It is the cache associativity, e.g.: 8 means the cache is 8-way set associative.
Quoted 23 lines
Thanks,
Michael
Quoted 19 lines
man3/getauxval.3 +19
-0+.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, that is, line size and +number of ways. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, that is, line size and number of ways. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, that is, line size and number of ways.
Quoted 10 lines
man3/getauxval.3 The instruction cache block size. · line 155
Quoted 8 lines
man3/getauxval.3 +4
-0+.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Thanks,
Signature · 3 lines
Raphael Moreira Zinsly IBM Linux on Power Toolchain
Quoted 7 lines · Raphael M Zinsly
Quoted 4 lines
man3/getauxval.3 The instruction cache block size. · line 129
Quoted 2 lines
man3/getauxval.3 +2
-0+Geometry of the L1 data cache, that is, line size and number +of ways.What is "number of ways"?
It is the cache associativity, e.g.: 8 means the cache is 8-way set associative.
Yup. At some point when I wasn't looking, the "-way" in "n-way cache" got promoted from a partial adjective along the lines of "all cars must halt at the four-way stop sign" to a full-blooded noun and term of art. I bumped into it while proofreading a Ph.D. thesis[1].
To help familiarize practitioners with the new cloak of terminology draped over this hoary descendant of Old English "weg", I suggest adding a parenthetical:
Geometry of the L1 data cache; that is, line size and number of ways (e.g., \(lq4-way associative\(rq).
Regards,
Branden
[1] Ge, Qian, "Mitigating Microarchitecture-based Timing Channels with Lightweight Operating System Mechanisms", Ph.D. thesis, University of New South Wales, in press.
Quoted 14 lines · G. Branden Robinson
Quoted 7 lines · Raphael M Zinsly
Quoted 4 lines
man3/getauxval.3 The instruction cache block size. · line 129
Quoted 2 lines
man3/getauxval.3 +2
-0+Geometry of the L1 data cache, that is, line size and number +of ways.What is "number of ways"?
It is the cache associativity, e.g.: 8 means the cache is 8-way set associative.
Yup. At some point when I wasn't looking, the "-way" in "n-way cache" got promoted from a partial adjective along the lines of "all cars must halt at the four-way stop sign" to a full-blooded noun and term of art. I bumped into it while proofreading a Ph.D. thesis[1].
Quoted 6 lines
To help familiarize practitioners with the new cloak of terminology draped over this hoary descendant of Old English "weg", I suggest adding a parenthetical:
Geometry of the L1 data cache; that is, line size and number of ways (e.g., \(lq4-way associative\(rq).
Thanks jumping in Branden. I think Raphael's revised patch clarifies things in a similar way, so I'm happy.
Cheers,
Michael
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
Hello Raphael,
Quoted 13 lines · Raphael Moreira Zinsly
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
Signed-off-by Raphael Moreira Zinsly <[email protected]>--- man3/getauxval.3 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)man3/getauxval.3 +0
-0
man3/getauxval.3 The instruction cache block size. · line 129
Quoted 7 lines
man3/getauxval.3 +4
-0@@ -123,6 +123,33 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, that is, line size and number +of ways.
Thanks for the clarification of "ways" in you other mail.
So, I think what could be added here is how these two pieces of information are encoded into the value. Could you add a sentence here? The other CACHEGEOMETRY entries could then just have a sentence "Encoded as for AT_L1D_CACHEGEOMETRY."
Thanks,
Michael
Quoted 27 lines
man3/getauxval.3 +23
-0+.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, that is, line size and +number of ways. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, that is, line size and number of ways. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, that is, line size and number of ways. +.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
PATCH v2 1/1 getauxval.3: Add new cache geometry entries
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
--- man3/getauxval.3 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
man3/getauxval.3 +28 -0
@@ -123,6 +123,34 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, encoded with the cache line size in +bytes in the bottom 16 bits and the cache associativity in the next 16 +bits. The associativity is such that if N is the 16-bit value, the cache +is N-way set associative. +.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Signature · 1 line
2.21.0
Hello Raphael,
Quoted 2 lines · Raphael Moreira Zinsly
Add entries for the new cache geometry values of the auxiliary vectors that got included in the kernel.
Thanks the rewording, and also the explanation of the geometry value.
I've applied the patch.
Thanks,
Michael
Quoted 45 lines
Signed-off-by Raphael Moreira Zinsly <[email protected]>--- man3/getauxval.3 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)man3/getauxval.3 +28
-0@@ -123,6 +123,34 @@ The instruction cache block size. .\" .TP .\" .BR AT_NOTELF .TP +.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147 +.BR AT_L1D_CACHEGEOMETRY +Geometry of the L1 data cache, encoded with the cache line size in +bytes in the bottom 16 bits and the cache associativity in the next 16 +bits. The associativity is such that if N is the 16-bit value, the cache +is N-way set associative. +.TP +.BR AT_L1D_CACHESIZE +The L1 data cache size. +.TP +.BR AT_L1I_CACHEGEOMETRY +Geometry of the L1 instruction cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L1I_CACHESIZE +The L1 instruction cache size. +.TP +.BR AT_L2_CACHEGEOMETRY +Geometry of the L2 cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L2_CACHESIZE +The L2 cache size. +.TP +.BR AT_L3_CACHEGEOMETRY +Geometry of the L3 cache, encoded as for AT_L1D_CACHEGEOMETRY. +.TP +.BR AT_L3_CACHESIZE +The L3 cache size. +.TP .BR AT_PAGESZ The system page size (the same value returned by .IR sysconf(_SC_PAGESIZE) ).
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/