Results 1 to 5 of 5

Thread: [RESOLVED] L3 Cache Size and other Information without WMI

  1. #1

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Resolved [RESOLVED] L3 Cache Size and other Information without WMI

    Hi guys!

    I've got a question about APIs this time. I have a little insight but not really enough to go on I'm afraid.

    I'm trying to find out the L3 Cache Size for a processor without using WMI (see this thread for the reasoning) and I was wondering if anyone knows how that can be done.

    I'm also looking for other processor information such as L2 cache, etc. so any information about those would be helpful too.

    Thanks!

    Edit: Oh and for those who are interested my primary language is C# but I can translate between languages.
    Last edited by sciguyryan; May 18th, 2010 at 03:20 PM.
    My Blog.

    Ryan Jones.

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: L3 Cache Size and other Information without WMI

    Hi.
    What am aware of is the GetSystemInfo in kernel32 .I don't know however if it gives out the L3 cache.Other that this...Since you use C# maybe you have some experience in c++ ?Maybe you can make something out.Here:
    http://www.koders.com/cpp/fid3A92AAF...4D635EA3B.aspx

    and

    http://msdn.microsoft.com/en-us/libr...8VS.80%29.aspx

    Hope you can make something out of this.

    P.S. Also a .d language example.look for "/tags/oldcode/trunk-2009-11-09/user/tango/core/Cpuid.d"

    http://www.dsource.org/projects/tang...=diff&new=5096
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: L3 Cache Size and other Information without WMI

    Thanks for the information. The ___cpuid could be just what I'm looking for - though I will need to work with a C++ DLL in order to use it.

    That shouldn't be a problem however since I have worked with C++ before and am familiar with the syntax.

    I will write this up as a C# linked library and hopefully release it at some point. Cheers!
    My Blog.

    Ryan Jones.

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: L3 Cache Size and other Information without WMI

    No problem, glad i could help.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: L3 Cache Size and other Information without WMI

    I actually managed to get the __cpuid and __cpuindex functions running via a C++ DLL and exports. There is an amazing amount of information stored in these two functions so it'll take me some time to pick through it and work out what I need.

    It was a bit of a pain but it works!

    Cheers
    My Blog.

    Ryan Jones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width