Miten saan laitettua että prossu on koko ajan täysillä, performance?
Xubuntu
11.10
1899
0Äänestä
Muut lukivat myös
Odottaa vastausta
Näihin keskusteluihin ei ole vielä vastattu. Ole ensimmäinen.
Turvaa tilisi vahvistamalla puhelinnumerosi. Voit silloin palauttaa unohtuneen salasanan tekstiviestillä.
Näihin keskusteluihin ei ole vielä vastattu. Ole ensimmäinen.
Vastaukset 18
Vanhimmat
Paneelissa on tommonen appletti mutta ei ne säädöt pysy muistissa. http://aijaa.com/009169376150
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
kertoo mitä vaihtoehtoja on tarjolla.. huomaa cpu0
täysille tehoille saa
# echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
huomaa taas cpu0
Öö, mitä se tarkoittaa että huomaa cpu0? Kopioin nuo ohjeet ja liitin päätteeseen niin ei tapahdu mitään kun painan enter.
monissa vekottimissa kun on useampia ytimiä...
on cpu0, cpu1 jne.
ohoh, tuossahan oli virhe mulla, eli
echo performance sen pitää olla...
yleensä tuo asetus on "ondemand" ja jos et ymmärrä noita komentoja on parempi opiskella hieman aiheesta ensin ja jättää oletukset tuohon siksi aikaa.
# tekee komennosta kommentin
Tartteeko sitä paljoa ymmärtää jos "koodi" laittaa prossun täysille? Nuo koodit ei laita prossua täysille.
Lisäys, tässä on 64 bittinen 2 ydin prossu.32 bittinen Xubuntu niin se näyttää siinä laittamassani kuvassa että olis 4 ydintä.
no varmasti laittaa!
rootina ajat komennon:
echo "performance" > /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor
kun lähettää jokaisen ytimen kuvernöörille tuon "performance":n niin varmasti se toimii.
en mahda mitään jos et osaa katsoa että menee scaling_governor:lle tuo käsky.
mitä tulostaa tämä:
cpufreq-info
"Tartteeko sitä paljoa ymmärtää jos "koodi" laittaa prossun täysille? Nuo koodit ei laita prossua täysille."
no lähinnä sitä tarkoitin, että olisi hyvä ymmärtää mitä sitä koneellaan komentelee.
tännehän voi kuka tahansa liittää mitä tahansa komentoja ja jos niitä sokkona ajelee, niin siinä voi tulla vaikka itku.
esimerkki: (älä liitä tätä päätteeseen!!! tai saat foo päätteisiä mp3 tiedostoja ison kasan)
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor\
&& find . | xargs rename 's/\.mp3$/\.foo/i' && \
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
Valtavasti tekstiä:
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 3.20 GHz
available frequency steps: 3.20 GHz, 3.07 GHz, 2.93 GHz, 2.80 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.20 GHz and 3.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 3.20 GHz (asserted by call to hardware).
cpufreq stats: 3.20 GHz:6,08%, 3.07 GHz:0,03%, 2.93 GHz:0,02%, 2.80 GHz:0,03%, 2.67 GHz:0,03%, 2.53 GHz:0,05%, 2.40 GHz:0,02%, 2.27 GHz:0,03%, 2.13 GHz:0,04%, 2.00 GHz:0,04%, 1.87 GHz:0,03%, 1.73 GHz:0,09%, 1.60 GHz:0,04%, 1.47 GHz:0,10%, 1.33 GHz:0,12%, 1.20 GHz:93,25% (3919)
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 3.20 GHz
available frequency steps: 3.20 GHz, 3.07 GHz, 2.93 GHz, 2.80 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.20 GHz and 3.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 3.20 GHz (asserted by call to hardware).
cpufreq stats: 3.20 GHz:5,98%, 3.07 GHz:0,03%, 2.93 GHz:0,03%, 2.80 GHz:0,01%, 2.67 GHz:0,04%, 2.53 GHz:0,01%, 2.40 GHz:0,02%, 2.27 GHz:0,04%, 2.13 GHz:0,03%, 2.00 GHz:0,02%, 1.87 GHz:0,04%, 1.73 GHz:0,03%, 1.60 GHz:0,05%, 1.47 GHz:0,02%, 1.33 GHz:0,04%, 1.20 GHz:93,61% (2583)
analyzing CPU 2:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 2
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 3.20 GHz
available frequency steps: 3.20 GHz, 3.07 GHz, 2.93 GHz, 2.80 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.20 GHz and 3.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 3.20 GHz (asserted by call to hardware).
cpufreq stats: 3.20 GHz:7,22%, 3.07 GHz:0,01%, 2.93 GHz:0,02%, 2.80 GHz:0,01%, 2.67 GHz:0,02%, 2.53 GHz:0,01%, 2.40 GHz:0,01%, 2.27 GHz:0,01%, 2.13 GHz:0,01%, 2.00 GHz:0,02%, 1.87 GHz:0,02%, 1.73 GHz:0,04%, 1.60 GHz:0,05%, 1.47 GHz:0,04%, 1.33 GHz:0,10%, 1.20 GHz:92,42% (2646)
analyzing CPU 3:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: 10.0 us.
hardware limits: 1.20 GHz - 3.20 GHz
available frequency steps: 3.20 GHz, 3.07 GHz, 2.93 GHz, 2.80 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.20 GHz and 3.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 3.20 GHz (asserted by call to hardware).
cpufreq stats: 3.20 GHz:6,99%, 3.07 GHz:0,00%, 2.93 GHz:0,04%, 2.80 GHz:0,00%, 2.67 GHz:0,01%, 2.53 GHz:0,01%, 2.40 GHz:0,00%, 2.27 GHz:0,00%, 2.13 GHz:0,01%, 2.00 GHz:0,01%, 1.87 GHz:0,02%, 1.73 GHz:0,00%, 1.60 GHz:0,01%, 1.47 GHz:0,01%, 1.33 GHz:0,03%, 1.20 GHz:92,84% (1717)
root@Kone:~#
current CPU frequency is 3.20 GHz (asserted by call to hardware).
current CPU frequency is 3.20 GHz (asserted by call to hardware).
current CPU frequency is 3.20 GHz (asserted by call to hardware).
current CPU frequency is 3.20 GHz (asserted by call to hardware).
eli kaikki 4 ydintä on jo täysillä...
"Laitoin päätteeseen echo "performance" > /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor Tiedostoa tai hakemistoa ei ole."
no ei tietenkään ole...
tuo cpuX pitää vaihtaa numeroksi riippuen siitä mitä ydintä härkitään.
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
laita nuo päätteeseen rootina.
tai tämä
for i in 0 1 2 3; do cpufreq-set -c $i -g performance; done
ei tuolla kyllä mitään hyötyä saavuta, mutta onhan sitä varmaan kiva huuvvattaa täysillä :)
Laitoin päätteeseen echo "performance" > /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor Tiedostoa tai hakemistoa ei ole.
Tein ohjeesi mukaan ja käynnistin koneen niin näyttää että toimii ondemandilla 1,2 GHz.
Olkoot, ei onnistu.
niin, muutos ei tietenkään ollut pysyvä..
oletuksena tulee ondemand yleensä kaikissa distroissa.
nuo komennot täytyy laittaa bootin aikaiseen skriptiin, että se toimisi vielä buutinkin jälkeen.
laita /etc/rc.local
tiedoston viimeiseksi riviksi
for i in 0 1 2 3; do cpufreq-set -c $i -g performance; done
ja buuttaa.. sitten on aina täysillä.
Tommosta pukkas: bash: lauseoppivirhe lähellä odottamatonta avainsanaa ”/etc/rc.local”
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
laita nuo sitten...
bash on vähän tarkka tuosta kirjoitusasusta :)
sitä en sitten tiedä, miten joku graafinen härpätin noihin vaikuttaa..
Ei jää muutos muistiin.Käynnistää koneen niin on ondemanilla. Laittaa tuon rimpsun
for i in 0 1 2 3; do cpufreq-set -c $i -g performance; done niin se muuttuu performancelle siksi aikaa kun kone on päällä.Gnomessa ja KDE:ssä saa helposti muutettua pysyvästi.
no laita tuo sitten sinne rc.localiin ja muotoile se bashille kelpaavaksi.
ehkäpä vain tällainen pieni muutos auttaa:
for i in 0 1 2 3
do
cpufreq-set -c $i -g performance
done
en ala taistella bashin kanssa "netin välityksellä" enempää..
meinaan kaikki tuo on ihan lonkalta heitettyä, kun on tällä hetkellä joku paska windows kone käytössä ja sillä nyt ei tunnetusti pysty tekemään yhtään mitään..