L2 can usually be expected to be between 256k-1m. (Threads can still be
helpful even once you run out of l2; benchmark and see. Apple arm is a bit
weird here--though je is mostly optimised for intel anyway.)
On Wed, 21 Dec 2022, Raul Miller wrote:
On Tue, Dec 20, 2022 at 6:21 PM Henry Rich <henryhr...@gmail.com> wrote:
The ideal candidate for a task is a compute-intensive
function that doesn't need much more memory than a core's L2 cache.
On linux you can find the size of L2 cache from the os command line:
lscpu | grep L2
On windows you can find the size of L2 cache from task manager (at
least under windows 11 -- it's down on the lower right of the
performance tab, and the performance tab is selected on the left side
of task manager -- it's an approximately square icon containing a
squiggle (representing an oscilloscope trace, I think)).
I don't know how to find this on OSX.
If there's a way of checking cache sizes in C, it might be nice to
have a 9!: foreign or a T. query to report this kind of architectural
information.
Thanks,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm