lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 10 Sep 2006 22:39:50 -0400
From:	Dave Jones <davej@...hat.com>
To:	John Richard Moser <nigelenki@...cast.net>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Cache line size

On Sun, Sep 10, 2006 at 08:34:46PM -0400, John Richard Moser wrote:
 
 > Is there a way for the Linux Kernel to know the cache line size of the
 > CPU it's on, besides #define X86_CACHE_LINE_SZ 32 or whatnot?  I am
 > looking in /proc/cpuinfo trying to determine how to run caching
 > optimizations and interested in this information and its implications.
 > It may also be useful if I can get this information at run time in
 > application code.

You can use /dev/cpu/x/cpuid to read it directly from the CPU.
See the source of x86info for examples.

	Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ