Author Topic: Cache again....  (Read 450 times)

Raistlin

  • Member
  • **
  • Posts: 246
Re: Cache again....
« Reply #15 on: September 06, 2017, 03:26:29 PM »
@jj2007 = thanks again, you rock (re: Intel, OpenLibSys.org source)

@Nidud = you nailed the OS scheduler bit - thanks ! - I'am unsure however what they mean by page fault...
            - seems Microsoft uses the term loosely to describe issues with virtual memory, re: hard/soft/cache faults combined?
            - But I could be wrong, will investigate.

@Everyone_else = ....or we could just write a kernel driver and get it over with ? I found the kernel driver tutorials on the old masmforum site,
                            hope they are still relevant. Supposedly there's a trick to include the driver inside your exe, thereby not having to install it.
                            CrystalCpuID and others use this trick. Just for interest sake -> licensing ($$$) is required for all the other suggestions. Besides
                            it goes against my moral fiber to pay for something I can do myself. Then there's also religion:  we can write it better, faster, smoother
                            and more flexible than anyone else using assembly :bgrin:

aw27

  • Member
  • ****
  • Posts: 794
Re: Cache again....
« Reply #16 on: September 06, 2017, 06:05:24 PM »
Supposedly there's a trick to include the driver inside your exe
That is not the most difficult part of the project.  :biggrin:
It is just placed inside the file as a resource, or as an included file, then extracted and placed where needed. Many applications do it, namely well know Sysinternal applications like DbgView.exe.

Raistlin

  • Member
  • **
  • Posts: 246
Re: Cache again....
« Reply #17 on: September 06, 2017, 06:17:31 PM »
Code: [Select]
That is not the most difficult part of the project.  :biggrin:
per AW27 = I'am getting the feeling, I don't know what I'am letting myself in for.

But then again it wouldn't be the first time............. you have to be a little crazy to undertake large
projects that have indistinct outcomes at making a difference. The belief is - it's worth it to find out.

jj2007

  • Member
  • *****
  • Posts: 7650
  • Assembler is fun ;-)
    • MasmBasic
Re: Cache again....
« Reply #18 on: September 06, 2017, 06:20:36 PM »
or we could just write a kernel driver

I vaguely remember that recent Windows versions install only signed drivers; where "signed" translates to a lot of money :(

Kernel-Mode Code Signing Requirements

For developers:
Quote
A kernel-mode driver that is not a boot-start driver must have either a test-signed catalog file or the driver file must include an embedded test signature. This applies to any type of PnP or non-PnP kernel-mode driver.

aw27

  • Member
  • ****
  • Posts: 794
Re: Cache again....
« Reply #19 on: September 06, 2017, 06:28:01 PM »
or we could just write a kernel driver

I vaguely remember that recent Windows versions install only signed drivers; where "signed" translates to a lot of money :(

Kernel-Mode Code Signing Requirements
Not only signed drivers, class 3 signed drivers from only a restrict number of authorities accredited by Microsoft.
I actually have one of those certificates, but have not paid a lot of money because there are opportunities for big discounts.

Raistlin

  • Member
  • **
  • Posts: 246
Re: Cache again....
« Reply #20 on: September 07, 2017, 03:46:42 PM »
After doing some serious reading - I'am abandoning the kernel mode driver idea  :(
It's just too convoluted and takes the fun right out of it. What a bunch of B/S just
to get to one OS performance privileged instruction. What a shame....
For those interested in the amount of hoops you need to jump through, here's a taste:
http://www.davidegrayson.com/signing/

Any idea in regards to an API that exposes the performance metrics - documented or not ?
The following looks promising : https://msdn.microsoft.com/en-us/library/windows/desktop/ms724509%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
« Last Edit: September 07, 2017, 04:54:08 PM by Raistlin »

aw27

  • Member
  • ****
  • Posts: 794
Re: Cache again....
« Reply #21 on: September 07, 2017, 04:44:30 PM »
http://www.davidegrayson.com/signing/
:biggrin:

Well, the article about driver signing contains lots of bullshit and actually Windows 7 supports SHA-2 signing.

Quote
Any idea in regards to an API that exposes the performance metrics - documented or not ?

The NtQuerySystemInformation contains many undocumented classes, but you can grab some information in the Net, namely here.



Raistlin

  • Member
  • **
  • Posts: 246
Re: Cache again....
« Reply #22 on: September 07, 2017, 04:56:39 PM »
Thanks AW27 - you've been a real   :t help and diplomatic in your responses