Jump to content

Fermi Graphics Power Management


camoguy
 Share

68 posts in this topic

Recommended Posts

Hi, I followed your steps again, and now I am getting 15 fps!!!! I really hope you can help me... Thanks

 

These are my G-state from Console:

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 3, ControlID = 17

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:32.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:34.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:36.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:41.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 1:08:47.000 AM kernel: AGPM: GPU = display G-state set to 0 from 1, ControlID = 17

9/21/11 1:08:50.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:51.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 1:09:02.000 AM kernel: AGPM: GPU = display G-state set to 2 from 1, ControlID = 17

 

And this is my kext:

 

AppleGraphicsPowerManagement.kext.zip

 

Check your console, make sure you're in g state zero. Those are my thresholds too.

 

There's a couple things in /S/L/E/AppleGraphicsPowerManagement/Contents/Info.plist to check

 

1. vendor10dedevice1200 or GFX(number) entry mismatch

2.mac identifier mismatch also plausible

3. control id should be 17, at least it's 17 for my gtx 560ti as macpro41. Might try 18...

4. sensoroption 1, must be there also in heuristics

5.rebuild caches, after each change, and reboot

6.thresholds could be incorrect

 

post your kext if you can't get it

Link to comment
Share on other sites

Hi, I followed your steps again, and now I am getting 15 fps!!!! I really hope you can help me... Thanks

 

These are my G-state from Console:

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 3, ControlID = 17

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:31.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:32.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:34.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:36.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:41.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 1:08:47.000 AM kernel: AGPM: GPU = display G-state set to 0 from 1, ControlID = 17

9/21/11 1:08:50.000 AM kernel: AGPM: GPU = display G-state set to 0 from 0, ControlID = 17

9/21/11 1:08:51.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 1:09:02.000 AM kernel: AGPM: GPU = display G-state set to 2 from 1, ControlID = 17

 

And this is my kext:

 

AppleGraphicsPowerManagement.kext.zip

AppleGraphicsPowerManagement.kext.luisfdoc1.zip

 

Give this a go. I made a few modifications. Tested it, got 34 fps in cinebench.

Getting 44.9 in windows

Link to comment
Share on other sites

camoguy, I have some bad news. I replaced my info.plist with the one you sent, and then I repaired permissions and rebuilt cache, I rebooted, and then I ran Cinebench r11.5. GPU results: 17.21 fps :( . I also tried changing to MacPro5,1 with the same results 16-17 fps... somehow the thresholds I use are being ignored because I also tried the thresholds from the other Guide from Jordan2Delta "high performance thresholds" and it is the same... But not having my deviceID in AGPM does make difference because without it I get about 7 fps.

These were my g-states while running Cinebench:

9/21/11 10:27:05.000 AM kernel: AGPM: GPU = display G-state set to 0 from 2, ControlID = 17

9/21/11 10:27:09.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 10:27:45.000 AM kernel: AGPM: GPU = display G-state set to 2 from 1, ControlID = 17

--

Do you have idea what is going on?

Thanks!

 

 

AppleGraphicsPowerManagement.kext.luisfdoc1.zip

 

Give this a go. I made a few modifications. Tested it, got 34 fps in cinebench.

Getting 44.9 in windows

Link to comment
Share on other sites

Sure, but just so we're clear, I don't have any troubles but here it is for you.

Camoguys_P6TDV2.ioreg.zip

 

 

 

camoguy, I have some bad news. I replaced my info.plist with the one you sent, and then I repaired permissions and rebuilt cache, I rebooted, and then I ran Cinebench r11.5. GPU results: 17.21 fps :thumbsup_anim: . I also tried changing to MacPro5,1 with the same results 16-17 fps... somehow the thresholds I use are being ignored because I also tried the thresholds from the other Guide from Jordan2Delta "high performance thresholds" and it is the same... But not having my deviceID in AGPM does make difference because without it I get about 7 fps.

These were my g-states while running Cinebench:

9/21/11 10:27:05.000 AM kernel: AGPM: GPU = display G-state set to 0 from 2, ControlID = 17

9/21/11 10:27:09.000 AM kernel: AGPM: GPU = display G-state set to 1 from 0, ControlID = 17

9/21/11 10:27:45.000 AM kernel: AGPM: GPU = display G-state set to 2 from 1, ControlID = 17

--

Do you have idea what is going on?

Thanks!

 

From what you're telling me, it appears AGPM is doing everything correctly. If you said you monitored the console, and check to make sure that when running these benchmarks, the console shows the video card has switched to state 0 while performing these tests, than we can be sure it's not related to AGPM.

 

Post your ioreg here please.

IORegistryExplorer.app.zip

Link to comment
Share on other sites

@Camoguy, Fabio already has my IOREG, but anyway, here is the link:

Luis' IOREG

 

Some extra info:

1. I installed Lion using Fabio's Lionize method.

2. I installed the latest nVidia CUDA driver

3. I enabled openCL following Netkas guide.

 

I will run Cinebench and time the exact moment for G-states but according to the log times I think most of the time is at state 1.

Thanks guys!

From what you're telling me, it appears AGPM is doing everything correctly. If you said you monitored the console, and check to make sure that when running these benchmarks, the console shows the video card has switched to state 0 while performing these tests, than we can be sure it's not related to AGPM.

 

Post your ioreg here please.

IORegistryExplorer.app.zip

Link to comment
Share on other sites

@camoguy, here are my G-States with times during Cinebech tests (~17 fps):

 

7:06:00.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

7:06:03.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

7:06:11.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

7:06:13.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

7:06:17.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

7:06:48.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

 

Cinebench Image Difference Test

 

Cinebench OpenGL (car chasing scene) (7:06:11 to 7:06:43)

That seems like: | 4 second in State 0 | 26 seconds in State 1 | 2 seconds in State2 |

 

From what you're telling me, it appears AGPM is doing everything correctly. If you said you monitored the console, and check to make sure that when running these benchmarks, the console shows the video card has switched to state 0 while performing these tests, than we can be sure it's not related to AGPM.
Link to comment
Share on other sites

If you test it and works...

pls post again your IOREG with this dsdt (needed for find the HDAU codec id)

 

Fabio

 

LionPro.ioreg.zip

 

@camoguy, here are my G-States with times during Cinebech tests (~17 fps):

 

7:06:00.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

7:06:03.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

7:06:11.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

7:06:13.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

7:06:17.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

7:06:48.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

 

Cinebench Image Difference Test

 

Cinebench OpenGL (car chasing scene) (7:06:11 to 7:06:43)

That seems like: | 4 second in State 0 | 26 seconds in State 1 | 2 seconds in State2 |

 

For testing, we should try moving state 0 heuristics from 0 to 100. Try that, should keep you in state zero all time.

Link to comment
Share on other sites

That would be like: LOW(97,98,99,100) and H(0,98,99,100) ?

 

9/21/11 8:41:56.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

9/21/11 8:42:43.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

9/21/11 8:42:45.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

 

Cinebench GPU test (car chase) (8:42:04 to 8:42:38)

 

Ok, pretty much all the test was on State 0; and still the same performance (~17 fps)

 

 

For testing, we should try moving state 0 heuristics from 0 to 100. Try that, should keep you in state zero all time.
Link to comment
Share on other sites

That would be like: LOW(97,98,99,100) and H(0,98,99,100) ?

 

9/21/11 8:41:56.000 PM kernel: AGPM: GPU = GFX0 G-state set to 0 from 2, ControlID = 17

9/21/11 8:42:43.000 PM kernel: AGPM: GPU = GFX0 G-state set to 1 from 0, ControlID = 17

9/21/11 8:42:45.000 PM kernel: AGPM: GPU = GFX0 G-state set to 2 from 1, ControlID = 17

 

Cinebench GPU test (car chase) (8:42:04 to 8:42:38)

 

Ok, pretty much all the test was on State 0; and still the same performance (~17 fps)

I do believe this is a problem unrelated with agpm. There seems to be something throttling. If only we had access to utilities like GPUZ that can read a video adapters mhz... Would help immensely diagnose these problems.

are running in 64 bit?

uname -a

Darwin LionPro.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64

There's something else going on here. Drivers and agpm seems fine.

Like there's something lagging your system.

have you ever run geek bench?

 

Still interesting that it will work without Threshold High & Low values. I deleted the high and low like this:

post-642937-1316666685_thumb.png

Link to comment
Share on other sites

@camoguy

I deleted the thresholds, and Cinebench ran between Gstate 1 and 2, same results (16.8 fps), My CPU usage was around 13%. and GPU usage was between 13% and 50% (atMonitor app):

post-646978-1316699587_thumb.png

 

-----

Darwin Luiss-Mac-Pro.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64

-----

I ran GeekBench (Intel 32 bits, Trial did not allow me to choose 64bit)

 

Benchmark Summary
 Integer Score			  4806 ||||||
 Floating Point Score	   8954 |||||||||||
 Memory Score			   3320 ||||
 Stream Score			   3966 |||||

 Geekbench Score			5876 |||||||

System Information
 Operating System	  Mac OS X 10.7.1 (Build 11B26)
 Model				 MacPro4,1
 Motherboard		   Apple Inc. Mac-F221BEC8 Rev 1.xx
 Processor			 Intel Core i7-950 @ 3.81 GHz
					1 Processor, 4 Cores, 8 Threads
 Processor ID		  GenuineIntel Family 6 Model 26 Stepping 5
 L1 Instruction Cache  32.0 KB x 4
 L1 Data Cache		 32.0 KB x 4
 L2 Cache			  256 KB x 4
 L3 Cache			  8.00 MB
 Memory				6.00 GB 1658 MHz DDR3
 BIOS				  Apple Inc. MP41.88Z.0081.B08.1001221313

 

-----

Then, I went back to have Thresholds, LOW(97,98,99,100) and H(0,98,99,100), ran Cinebench

and I logged from (atMonitor app), even at G-State 0, my GPU usage is very low! avg 13%

 

post-646978-1316701275_thumb.png

 

By the way my Card is :

EVGA GeForce GTX 560 Ti DS Superclocked.

 

Any idea? :(

Thanks!

 

I do believe this is a problem unrelated with agpm. There seems to be something throttling. If only we had access to utilities like GPUZ that can read a video adapters mhz... Would help immensely diagnose these problems.

are running in 64 bit?

uname -a

Darwin LionPro.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64

There's something else going on here. Drivers and agpm seems fine.

Like there's something lagging your system.

have you ever run geek bench?

Link to comment
Share on other sites

@camoguy

I deleted the thresholds, and Cinebench ran between Gstate 1 and 2, same results (16.8 fps), My CPU usage was around 13%. and GPU usage was between 13% and 50% (atMonitor app):

post-646978-1316699587_thumb.png

 

-----

Darwin Luiss-Mac-Pro.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64

-----

I ran GeekBench (Intel 32 bits, Trial did not allow me to choose 64bit)

 

Benchmark Summary
 Integer Score			  4806 ||||||
 Floating Point Score	   8954 |||||||||||
 Memory Score			   3320 ||||
 Stream Score			   3966 |||||

 Geekbench Score			5876 |||||||

System Information
 Operating System	  Mac OS X 10.7.1 (Build 11B26)
 Model				 MacPro4,1
 Motherboard		   Apple Inc. Mac-F221BEC8 Rev 1.xx
 Processor			 Intel Core i7-950 @ 3.81 GHz
					1 Processor, 4 Cores, 8 Threads
 Processor ID		  GenuineIntel Family 6 Model 26 Stepping 5
 L1 Instruction Cache  32.0 KB x 4
 L1 Data Cache		 32.0 KB x 4
 L2 Cache			  256 KB x 4
 L3 Cache			  8.00 MB
 Memory				6.00 GB 1658 MHz DDR3
 BIOS				  Apple Inc. MP41.88Z.0081.B08.1001221313

 

-----

Then, I went back to have Thresholds, LOW(97,98,99,100) and H(0,98,99,100), ran Cinebench

and I logged from (atMonitor app), even at G-State 0, my GPU usage is very low! avg 13%

 

post-646978-1316701275_thumb.png

 

By the way my Card is :

EVGA GeForce GTX 560 Ti DS Superclocked.

 

Any idea? ;)

Thanks!

 

Your geekbench score is about half of what it should be. I don't know man. I would try reinstalling. I've been having issues with cmos reset and annoying hangs on reboot. I decided I would reinstall to a spinning disk parititon and let windows have the ssd.

Link to comment
Share on other sites

This is sad ;) ... yeah, I ran GeekBench in Windows, and I got 10,803. I am also planning in getting an SSD for Windows, so I would be reinstalling Lion, but I doubt it would solve anything since my install is less than a week old (fresh install)...

What Method did you follow to install Lion?

 

Your geekbench score is about half of what it should be. I don't know man. I would try reinstalling. I've been having issues with cmos reset and annoying hangs on reboot. I decided I would reinstall to a spinning disk parititon and let windows have the ssd.
Link to comment
Share on other sites

PROBLEM SOLVED!!!!!!!!!!!!!!!!!!!

 

Finally I was able to find my performance issue. It was in the BIOS! . I had SpeedStep and C-State Disabled. By enabling SpeedStep I gained almost all the performance, and the C-State gave me a little bit more!

 

post-646978-1316752293_thumb.png

 

post-646978-1316752309_thumb.png

Luis, put the files that I used and edited for testing!

Link to comment
Share on other sites

PROBLEM SOLVED!!!!!!!!!!!!!!!!!!!

 

Finally I was able to find my performance issue. It was in the BIOS! . I had SpeedStep and C-State Disabled. By enabling SpeedStep I gained almost all the performance, and the C-State gave me a little bit more!

 

post-646978-1316752293_thumb.png

 

post-646978-1316752309_thumb.png

I don't understand why that didn't affect Windows peformance. In windows you were getting good results, but os x it was acting slow. Well anyways, great that you got it fixed. Wish you good luck with it.

Link to comment
Share on other sites

Well, I disabled those CPU features when I was overclocking, and those features are actually for saving "power"; SpeedStep is just to change the CPU multiplier, but in Windows that means CPU is running at full multiplier and No-Power-savings... Somehow OSX does not see it the same way and prefers to just use the lowest multiplier...

 

So, what would be the best (recommended) Thresholds? the ones you are using?

Thanks!

 

I don't understand why that didn't affect Windows peformance. In windows you were getting good results, but os x it was acting slow. Well anyways, great that you got it fixed. Wish you good luck with it.

 

Hi, what files exactly do you want me to test?

Luis, put the files that I used and edited for testing!
Link to comment
Share on other sites

Well, I disabled those CPU features when I was overclocking, and those features are actually for saving "power"; SpeedStep is just to change the CPU multiplier, but in Windows that means CPU is running at full multiplier and No-Power-savings... Somehow OSX does not see it the same way and prefers to just use the lowest multiplier...

 

So, what would be the best (recommended) Thresholds? the ones you are using?

Thanks!

 

Hi, what files exactly do you want me to test?

 

I want the files that you used!

Please!

Link to comment
Share on other sites

Assuming your GeForce is already recognized, just use this info.plist that goes into your AGPM kext.

But we aware that my thresholds are only for testing/benchmarking since they enforce it to stay mostly in G-state 0.

I have not done anything else, besides tweaking the AGPM and adding my device ID...

 

AppleGraphicsPowerManagement.kext.zip

I want the files that you used!

Please!

Link to comment
Share on other sites

a little offtopic, but...

 

i edited the AGPM kext according to this guide. everything works like a charm, except a few lags (i suppose it's because of the gpu power state switching)... but one other thing came up, which i dont understand - when i restart or shutdown my system, the machine won't restart or turn off... everything turns off, the usb mouse, disks spin down, but the machine won't power off.... whe i use the original AGPM kext, everything works... any clues?

 

i have a gf gtx 560 (without TI) (AGPM set exactly as in the guide here http://www.insanelymac.com/forum/index.php...id=1752679& ... basically the same setup as in this thread, just other threshold values and one extra value - <key>SensorSampleRate</key>

<integer>4</integer> ), p8p67 deluxe mobo with DSDT

 

any help appreciated, thx smile.gif

 

EDIT: i think i found the reason, my AGPM kext isnt loaded :/ ...i dont see it in System information / Software / Extensions ... when i use the original kext, it is there... i think that's the reason for the reset/shutdown problem.... hopefully i'll find out what i did wrong

Link to comment
Share on other sites

a little offtopic, but...

 

i edited the AGPM kext according to this guide. everything works like a charm, except a few lags (i suppose it's because of the gpu power state switching)... but one other thing came up, which i dont understand - when i restart or shutdown my system, the machine won't restart or turn off... everything turns off, the usb mouse, disks spin down, but the machine won't power off.... whe i use the original AGPM kext, everything works... any clues?

 

i have a gf gtx 560 (without TI) (AGPM set exactly as in the guide here http://www.insanelymac.com/forum/index.php...id=1752679& ... basically the same setup as in this thread, just other threshold values and one extra value - <key>SensorSampleRate</key>

<integer>4</integer> ), p8p67 deluxe mobo with DSDT

 

any help appreciated, thx smile.gif

 

Hi, Post your kext here, I'll take a look. I'm also seeing certain things you described, duno if it's related but we can look at it closer.

Link to comment
Share on other sites

 Share

×
×
  • Create New...