bassamanator
Posts: 49
Joined: Wed Jun 10, 2020 7:04 am

Any benifit to overclocking gpu_freq for purely headless users?

Fri Jun 26, 2020 12:21 am

I thought I read somewhere there might be benefits to increasing gpu_freq even for headless raspberry pi setups. Is this true?
| Raspberry Pi 4-8GB | 2.0GHz | over_voltage@5 |
| Raspberry Pi OS 32bit |
| https://github.com/bassamanator/raspberrypi-scripts |


bassamanator
Posts: 49
Joined: Wed Jun 10, 2020 7:04 am

Re: Any benifit to overclocking gpu_freq for purely headless users?

Sat Jun 27, 2020 10:17 pm

I did put this to the test and indeed, there are no benefits for headless users. I used xhpl to benchmark.
| Raspberry Pi 4-8GB | 2.0GHz | over_voltage@5 |
| Raspberry Pi OS 32bit |
| https://github.com/bassamanator/raspberrypi-scripts |

LTolledo
Posts: 3321
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Any benifit to overclocking gpu_freq for purely headless users?

Sun Jun 28, 2020 3:03 am

its like doing a speed test on a NOS modded car engine, but without any wheels, axle, drive train fitted to the car. :mrgreen:
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

crossbar
Posts: 34
Joined: Mon May 19, 2014 9:45 am

Re: Any benifit to overclocking gpu_freq for purely headless users?

Sun Jun 28, 2020 8:53 am

Any benifit to overclocking gpu_freq for purely headless users?
ANY benefit ?
Yes.

As always: The exact answer depends on the details.
Not every headless PI does without the GPU.

Example:
If your headless Pi use the vector-processing-QPUs in the videocore there are benefits in increasing gpu-freq. Not linear - because crossing clock domain boundaries does (sometimes) introduce stalls.

Aside from this : For the "everyday"-user the answer is "no". (note the lower case)

michael
.

ejolson
Posts: 5202
Joined: Tue Mar 18, 2014 11:47 am

Re: Any benifit to overclocking gpu_freq for purely headless users?

Sun Jun 28, 2020 2:01 pm

crossbar wrote:
Sun Jun 28, 2020 8:53 am
Any benifit to overclocking gpu_freq for purely headless users?
ANY benefit ?
Yes.

As always: The exact answer depends on the details.
Not every headless PI does without the GPU.

Example:
If your headless Pi use the vector-processing-QPUs in the videocore there are benefits in increasing gpu-freq. Not linear - because crossing clock domain boundaries does (sometimes) introduce stalls.

Aside from this : For the "everyday"-user the answer is "no". (note the lower case)

michael
.
Can you recommend a good tutorial on writing QPU code, running it and then checking the performance?

User avatar
Akane
Posts: 58
Joined: Tue May 27, 2014 1:20 pm
Location: Tsukuba, Japan

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 9:57 am

ejolson wrote:
Sun Jun 28, 2020 2:01 pm
crossbar wrote:
Sun Jun 28, 2020 8:53 am
Any benifit to overclocking gpu_freq for purely headless users?
ANY benefit ?
Yes.

As always: The exact answer depends on the details.
Not every headless PI does without the GPU.

Example:
If your headless Pi use the vector-processing-QPUs in the videocore there are benefits in increasing gpu-freq. Not linear - because crossing clock domain boundaries does (sometimes) introduce stalls.

Aside from this : For the "everyday"-user the answer is "no". (note the lower case)

michael
.
Can you recommend a good tutorial on writing QPU code, running it and then checking the performance?
py-videocore for Raspberry Pi Zero/1/2/3 (VideoCore IV) and py-videocore6 for Raspberry Pi 4 (VideoCore VI).
There are some example codes (matrix-matrix multiplication, memory copy, etc.) in the repositories.
You will see lower performance without force_turbo=1 in your /boot/config.txt, which disables the dynamic frequency scaling of V3D block.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 10:03 am

ejolson wrote:
Sun Jun 28, 2020 2:01 pm
crossbar wrote:
Sun Jun 28, 2020 8:53 am
Any benifit to overclocking gpu_freq for purely headless users?
ANY benefit ?
Yes.

As always: The exact answer depends on the details.
Not every headless PI does without the GPU.

Example:
If your headless Pi use the vector-processing-QPUs in the videocore there are benefits in increasing gpu-freq. Not linear - because crossing clock domain boundaries does (sometimes) introduce stalls.

Aside from this : For the "everyday"-user the answer is "no". (note the lower case)

michael
.
Can you recommend a good tutorial on writing QPU code, running it and then checking the performance?
In my opinion you would be much better off learning ARM NEON. More standardised, and gets faster with every version of the pi.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 524
Joined: Thu Jun 21, 2018 4:30 pm

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 11:46 am

bassamanator wrote:
Fri Jun 26, 2020 12:21 am
I thought I read somewhere there might be benefits to increasing gpu_freq even for headless raspberry pi setups. Is this true?
Not really, unless the test is limited by memory bandwidth in which case boosting the core-frequency (also set by gpu freq) to 550 (4kp60) or 600 MHz might be of some benefit because of the increased AXI bus speed.

However, that's really something to try after you have optimized everything else.

User avatar
Akane
Posts: 58
Joined: Tue May 27, 2014 1:20 pm
Location: Tsukuba, Japan

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 1:02 pm

I learned so many things from Raspberry Pi and QPU that I could never know, and with the experience, I got a stimulating part-time job that altered my whole life though I'm still a student. So I think it's not bad to learn QPU :D

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 2:39 pm

Akane wrote:
Thu Jul 02, 2020 1:02 pm
I learned so many things from Raspberry Pi and QPU that I could never know, and with the experience, I got a stimulating part-time job that altered my whole life though I'm still a student. So I think it's not bad to learn QPU :D
Problem is that its a difficult to learn proprietary instruction set that is unlikely to develop as fast as NEON.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

ejolson
Posts: 5202
Joined: Tue Mar 18, 2014 11:47 am

Re: Any benifit to overclocking gpu_freq for purely headless users?

Thu Jul 02, 2020 3:00 pm

jamesh wrote:
Thu Jul 02, 2020 2:39 pm
Akane wrote:
Thu Jul 02, 2020 1:02 pm
I learned so many things from Raspberry Pi and QPU that I could never know, and with the experience, I got a stimulating part-time job that altered my whole life though I'm still a student. So I think it's not bad to learn QPU :D
Problem is that its a difficult to learn proprietary instruction set that is unlikely to develop as fast as NEON.
In my opinion, learning how to leverage heterogeneous computing architectures to accomplish a single task has become exceedingly relevant to machine learning and high-performance computation. It is nice to know that this important skill transcends instruction sets and can be developed using the GPU on the Pi.

This may be an extension of the rule that learning at least one machine language is needed to become good with computers, but it matters not which one.

Return to “General discussion”