to permanent the limit of CPU Scaling settings
up vote
1
down vote
favorite
I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:
cpupower frequency-set -u 2GHz
and when I check with `cpufreq-info' state of CPU change into 2GHz.
but when I reboot, the state is reset again.
14.04 performance cpu
add a comment |Â
up vote
1
down vote
favorite
I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:
cpupower frequency-set -u 2GHz
and when I check with `cpufreq-info' state of CPU change into 2GHz.
but when I reboot, the state is reset again.
14.04 performance cpu
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:
cpupower frequency-set -u 2GHz
and when I check with `cpufreq-info' state of CPU change into 2GHz.
but when I reboot, the state is reset again.
14.04 performance cpu
I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:
cpupower frequency-set -u 2GHz
and when I check with `cpufreq-info' state of CPU change into 2GHz.
but when I reboot, the state is reset again.
14.04 performance cpu
asked Apr 23 at 22:36
Mac Revelino Siahaan
61
61
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
There are many ways of accomplishing this. One way is to edit the file /etc/rc.local
using sudo powers. Add your command just before the last line:
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cpupower frequency-set -u 2GHz
exit 0
If this doesn't work at first ensure the /etc/rc.local
file is an executable using:
$ ll /etc/rc.local
-rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*
Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There are many ways of accomplishing this. One way is to edit the file /etc/rc.local
using sudo powers. Add your command just before the last line:
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cpupower frequency-set -u 2GHz
exit 0
If this doesn't work at first ensure the /etc/rc.local
file is an executable using:
$ ll /etc/rc.local
-rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*
Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.
add a comment |Â
up vote
0
down vote
There are many ways of accomplishing this. One way is to edit the file /etc/rc.local
using sudo powers. Add your command just before the last line:
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cpupower frequency-set -u 2GHz
exit 0
If this doesn't work at first ensure the /etc/rc.local
file is an executable using:
$ ll /etc/rc.local
-rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*
Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
There are many ways of accomplishing this. One way is to edit the file /etc/rc.local
using sudo powers. Add your command just before the last line:
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cpupower frequency-set -u 2GHz
exit 0
If this doesn't work at first ensure the /etc/rc.local
file is an executable using:
$ ll /etc/rc.local
-rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*
Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.
There are many ways of accomplishing this. One way is to edit the file /etc/rc.local
using sudo powers. Add your command just before the last line:
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cpupower frequency-set -u 2GHz
exit 0
If this doesn't work at first ensure the /etc/rc.local
file is an executable using:
$ ll /etc/rc.local
-rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*
Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.
answered Apr 24 at 0:35
WinEunuuchs2Unix
35.6k759133
35.6k759133
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027613%2fto-permanent-the-limit-of-cpu-scaling-settings%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password