cache line length of a machine

Tim Roberts timr at probo.com
Fri Jan 5 02:17:55 EST 2007


"John" <weekender_ny at yahoo.com> wrote:
>
>How do I find out the cache line length of a machine in python?

How would that piece of information be valuable in Python?  There isn't
anything you can do to take advantage of it in Python.

You can look up the L2 and L3 cache size and speed using WMI (assuming you
are using Windows).  For more detailed, you will have to call into a C
routine, and maybe even resort to looking up the cpuid info.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list