Jump to content


Photo

Underclocking


  • Please log in to reply
9 replies to this topic

#1 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 24 October 2015 - 03:48 AM

So, I have managed to get the pcduino3 nano to boot from harddrive, that was tricky. Installed lightpd, I am getting the webserver set up. Fixed the screenblanking with xfce4-power-manager. All this from the tricky set up of originally copying to sdcard, installing update-manager and "do-release-upgrade" which brought me up to Ubuntu 14.04.3 LTS.

My laptop died not too long after that which caused a lull in posting or working. But I liked the pcduino3 nano so much... I simply bought another one for use as a computer in developing the webserver!

The only shortcoming I have noticed so far... Not on the webserver is that too much CPU use causes a jittery screen and hang. Thus, I need to find a way to underclock in true bane style. There must be some easy fix out there besides recompiling a kernel... Right? Naturally I will most likely find it.

Let me cover some of the hings I have tried:
CPU freq applets (epic fail)
CPUfreq utils (epic fail)
The problem is that the drivers that come with cpufreq-utils are designed for x86 processors. Unless there is something I have overlooked.
Anyone have the tenacity to try this?
I hope so...

The latest idea I have had is to compile tlp from source. Anyone else have any other ideas?
Oh another tip... If you surf the internet, I recommend Netsurf. Low memory and CPU use overhead.

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#2 igorpec

igorpec

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 October 2015 - 04:53 AM

Try my image / kernel. It come with CPU frequency scaling 480-1010Mhz and interactive governor ... and many other features. If you really want, you can also build everything from sources.

http://www.armbian.com/pcduino3/


  • DarthBane likes this

#3 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 24 October 2015 - 04:54 AM

Just an update.. I found a shortterm fix using cpulimit.

The idea came whn I came accross this link:

https://www.maketech...pu-usage-linux/

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#4 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 24 October 2015 - 04:55 AM

Try my image / kernel. It come with CPU frequency scaling 480-1010Mhz and interactive governor ... and many other features. If you really want, you can also build everything from sources.

http://www.armbian.com/pcduino3/


I might just do that. It sure will save having to use cpulimit all the time.
I have so many grandiose plans, it is getting frustrating materializing them fast enough.

Thank you, Igor

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#5 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 24 October 2015 - 12:15 PM

Can cpu speed be changed in U-boot?

#6 igorpec

igorpec

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 October 2015 - 06:38 PM

Yes, the limits.

 

[u-boot.git] / include / configs / sun7i.h

#define CONFIG_CLK_FULL_SPEED                1056000000



#7 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 24 October 2015 - 06:58 PM

Thought so.

#8 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 25 October 2015 - 09:08 AM



Ok. Thank you.

Just an update while I am fiddling with the kernel stuff...

The quick fix is this:

sudo su
<enter your password, ubuntu if you have not changed it>

apt-get install htop cpulimit

Open two terminals (ctrl-alt-t twice)
under the first type:
htop
the second, sudo su <password>
Search for the pid of lightdm (this will filter into all child processes as well)
Then enter the pid you found into this command (must be done as root!):
cpulimit -b -l 50 -p <the number of the pid you found with htop>

Alternately if you are psycho like me and just want to superlimit the entire f'n system:
cpulimit -b -l 50 -p 1
Thats right.. 1. That is the parent process for all other processes and the golden bullet. The first process is always 1.
Now keep in mind this is the first time I am using the heat sink on the development system that I am working and connecting to the webserver with. the pcduino3 nano webserver has a highspeed fan that pushs a lot of air. I am seriously thinking of pulling the heatskink off as I am almost convinced it is- not worth it.
So that might just be the golden bullet for any possible cpu overheating problems.
50% is what I found was stable load with the heatsink.
So far so good.. up 45 minutes with no crash.

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#9 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 25 October 2015 - 02:30 PM

Cool. Keep us posted.

#10 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 October 2015 - 08:22 PM

It looks like this is the fix I need for the time being. After some heavy duty benchmarking it seems to have fixed the issue. I readily accept the fact that it is caused by xfce4-power-manager overriding the normal power settings that are accepted or the system. I.e. what I am saying is the power options that come with both flavors of ubuntu for the pcduino3nano prevent these issues by default are designed to prevent the current situation (overheating). xfce4-power-manager overrides these. However, conclusively using cpulimit in an all inclusive capacity e.g. "cpulimit -b -l 50 -p 1" fixes this issue completely. If other cpulimits settings work for other individuals in other capacities, this may be of use to other people researching the subject. Alternately, doing a build takes time and looks like it will work. However do to the lack of other computers in the current situation means time and money for the project. Once he project is up and running, the purpose in future aid to society can be revealed. So, I hope this helps this community. All that is needed now is to find an appropriate init script to add the cpulimit command to.

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users