Portál AbcLinuxu, 11. listopadu 2025 08:57
Po nainstalovani cpufreq jsem zjistil ve výstupu cpufreq-info ( doufám, že je příkaz tak ), že procesor zvládá maximální frekvenci 1.3 GHz a minimální 600MHz. Bohužel skutečně procesor běží maximálně na 1.3 i když je vytížený na 100%.
V kLaptop jsou jen volby performance ( 1.3 ) a userspace ( 800 MHz ). Nevíte někdo, v čem může být problém, že CPU neběží nikdy na plný výkon a údajně to ani nezvládá ? ( v BIOSU je uvedeno Intel Centrino 1.73 GHz )
Pokud někdo máte nějaký typ, budu za něj vděčný ...
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License v2
FREQDIR=/sys/devices/system/cpu/cpu0/cpufreq
MAXFREQ=1729000
start() {
ebegin "Enabling CPU frequency scaling for nice processes"
find "$FREQDIR" -name ignore_nice |
while read ign; do
echo 1 > "$ign" 2>/dev/null
retval=$?
if [ "$retval"!=0 ]; then return=$retval; fi
done
echo "$MAXFREQ" > "$FREQDIR"/scaling_max_freq
retval=$?
if [ "$retval"!=0 ]; then return=$retval; fi
eend $return
}
stop() {
ebegin "Disabling CPU frequency scaling for nice processes"
find "$FREQDIR" -name ignore_nice |
while read ign; do
echo 0 > "$ign" 2>/dev/null
retval=$?
if [ "$retval"!=0 ]; then return=$retval; fi
done
eend $return
}
Je to robene, aby to fungovalo bez ohladu na scaling governora, preto to find.
CPU: Intel(R) Pentium(R) M processor 1.73GHz stepping 08
kernel: CPU: Intel(R) Pentium(R) M processor 1.73GHz stepping 08 Jul 16 17:39:58 localhost kernel: ACPI: Processor [CPU0] (supports 8 throttling states) Jul 16 20:09:28 localhost kernel: Initializing CPU#0 Jul 16 20:09:28 localhost kernel: CPU 0 irqstacks, hard=c075c000 soft=c075b000 Jul 16 20:09:29 localhost kernel: CPU: L1 I cache: 32K, L1 D cache: 32K Jul 16 20:09:29 localhost kernel: CPU: L2 cache: 2048K Jul 16 20:09:29 localhost kernel: Intel machine check reporting enabled on CPU#0. Jul 16 20:09:29 localhost kernel: CPU: Intel(R) Pentium(R) M processor 1.73GHz stepping 08
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License v2
FREQDIR=/sys/devices/system/cpu/cpu0/cpufreq
start() {
ebegin "Enabling CPU frequency scaling for nice processes"
echo 0 > "$FREQDIR/`cat $FREQDIR/scaling_governor`/ignore_nice_load" 2>/dev/null
retval=$?
if [[ "$retval" != 0 ]]; then return=$retval; fi
echo "`cat $FREQDIR/cpuinfo_max_freq`" > "$FREQDIR"/scaling_max_freq
retval=$?
if [ "$retval" != 0 ]]; then return=$retval; fi
eend $return
}
stop() {
ebegin "Disabling CPU frequency scaling for nice processes"
echo 1 > "$FREQDIR/`cat $FREQDIR/scaling_governor`/ignore_nice_load" 2>/dev/null
retval=$?
if [[ "$retval" != 0 ]]; then return=$retval; fi
eend $return
}
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.