All pastes #481308 Raw Edit

Gevaudan

public text v1 · immutable
·published 2007-05-10 19:31 UTC
rendered paste body
[root@Olympus tenchi]# ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [3]                                            
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S<     0:00 [events/0]
    5 ?        S<     0:00 [khelper]
    6 ?        S<     0:00 [kthread]
    8 ?        S<     0:00 [kblockd/0]
    9 ?        S<     0:02 [kacpid]
  106 ?        S<     0:00 [kseriod]
  142 ?        S      0:07 [kswapd0]
  143 ?        S<     0:00 [aio/0]
  790 ?        S<     0:00 [kpsmoused]
  802 ?        S<     0:00 [kjournald]
  882 ?        S<s    0:00 udevd -d
  995 ?        S<     0:00 [khubd]
 1041 ?        S      0:00 [khpsbpkt]
 1044 ?        S      0:00 [knodemgrd_0]
 1185 ?        S      0:00 [pccardd]
 1277 ?        S<     0:23 [kjournald]
 1279 ?        S<     0:00 [kjournald]
 1281 ?        S<     0:00 [kjournald]
 1635 ?        Ss     0:00 syslogd -m 0 -a /var/spool/postfix/dev/log
 1636 ?        Ss     0:00 /usr/sbin/atd
 1662 ?        Ss     0:00 dbus-daemon --system
 1717 ?        Ss     0:00 klogd -2
 1783 ?        Ss     0:00 /usr/sbin/acpid
 1828 ?        Ss     0:05 hald
 1857 ?        S      0:00 hald-runner
 1863 ?        Ss     0:00 /usr/sbin/mandi -d
 2010 ?        S      0:00 /usr/lib/hald-addon-acpi
 2013 ?        S      0:00 /usr/lib/hald-addon-keyboard
 2025 ?        S      1:07 /usr/lib/hald-addon-storage
 2206 ?        S<     0:00 [ac97/0]
 2345 ?        Ss     0:00 /sbin/ifplugd -b -i eth0
 2564 ?        Ss     0:00 dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases
 2688 ?        Ss     0:00 portmap
 2786 ?        Ss     0:00 rpc.statd
 2787 ?        Ss     0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
 2811 ?        Ss     0:01 avahi-daemon: running [Olympus.local]
 2812 ?        Ss     0:00 avahi-daemon: chroot helper process
 2817 ?        Ss     0:00 rpc.idmapd
 2852 ?        S<     0:00 [nfsd4]
 2853 ?        S      0:00 [nfsd]
 2854 ?        S      0:00 [nfsd]
 2855 ?        S      0:00 [nfsd]
 2856 ?        S      0:00 [nfsd]
 2857 ?        S      0:00 [nfsd]
 2858 ?        S      0:00 [nfsd]
 2859 ?        S      0:00 [nfsd]
 2860 ?        S      0:00 [nfsd]
 2863 ?        S      0:00 [lockd]
 2867 ?        S<     0:00 [rpciod/0]
 2870 ?        Ss     0:00 rpc.mountd
 2882 ?        Ss     0:00 /usr/sbin/sshd
 2906 ?        SNs    0:00 /usr/sbin/powernowd
 2979 ?        Ss     0:00 /usr/bin/python /usr/lib/zope/lib/python/zdaemon/zdru
 2980 ?        S      0:03 /usr/bin/python /usr/lib/zope/lib/python/Zope2/Startu
 3045 ?        Ss     0:00 crond -p
 3298 ?        Ss     0:00 smbd -D
 3308 ?        Ss     0:00 nmbd -D
 3318 ?        S      0:00 smbd -D
 3320 ?        Ssl    0:00 /usr/bin/vlc --intf http --http-host=:8080 --http-cha
 3342 ?        Ss     0:00 login -- root     
 3345 tty2     Ss+    0:00 /sbin/mingetty tty2
 3346 tty3     Ss+    0:00 /sbin/mingetty tty3
 3347 tty4     Ss+    0:00 /sbin/mingetty tty4
 3348 tty5     Ss+    0:00 /sbin/mingetty tty5
 3349 tty6     Ss+    0:00 /sbin/mingetty tty6
 3517 ?        S<     0:00 [ondemand]
15419 ?        S      0:06 [pdflush]
15420 ?        S      0:06 [pdflush]
  301 ?        Ss     0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  305 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  306 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  307 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  308 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  309 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  310 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  311 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
  312 ?        S      0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DAPACH
20092 tty1     Ss+    0:01 -bash
32175 ?        SLs    0:00 ntpd -A -u ntp:ntp -p /var/run/ntpd.pid -g
 8434 ?        Ss     0:00 proftpd: (accepting connections)
 9305 ?        Ss     0:00 sshd: tenchi [priv]
 9307 ?        S      0:00 sshd: tenchi@pts/1
 9308 pts/1    Ss     0:00 -bash
 9559 pts/1    S      0:00 su
 9560 pts/1    S      0:00 bash
10198 ?        Ssl    0:00 cpufreqd -f /etc/cpufreqd/cpufreqd.conf.tmp
10241 pts/1    R+     0:00 ps -ax



---------------------------------



[root@Olympus tenchi]# cat /etc/cpufreqd.conf
# this is a comment
# see CPUFREQD.CONF(5) manpage for a complete reference

[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
verbosity=4
#enable_remote=1
#remote_group=root
[/General]

#[acpi_event]
#acpid_socket=/var/run/acpid.socket
#[/acpi_event]

[Profile]
name=On Demand High
minfreq=40%
maxfreq=100%
policy=ondemand
#exec_post=echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
[/Profile]

[Profile]
name=On Demand Low
minfreq=20%
maxfreq=80%
policy=ondemand
#exec_post=echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
[/Profile]

[Profile]
name=Performance High
minfreq=100%
maxfreq=100%
policy=performance
#exec_post=echo 8 > /proc/acpi/sony/brightness
[/Profile]

[Profile]
name=Performance Low
minfreq=80%
maxfreq=80%
policy=performance
[/Profile]

[Profile]
name=Powersave High
minfreq=70%
maxfreq=70%
policy=powersave
[/Profile]

[Profile]
name=Powersave Low
minfreq=30%
maxfreq=30%
policy=powersave
[/Profile]

#[Profile]
#name=Conservative High
#minfreq=33%
#maxfreq=100%
#policy=conservative
#[/Profile]
#
#[Profile]
#name=Conservative Low
#minfreq=0%
#maxfreq=66%
#policy=conservative
#[/Profile]

##
# Basic states
##
# when AC use performance mode
[Rule]
name=AC Rule
ac=on                    # (on/off)
profile=Performance High
[/Rule]
 
# conservative mode when not AC
[Rule]
name=AC Off - Low Battery
ac=off                   # (on/off)
battery_interval=0-30
#exec_post=echo 5 > /proc/acpi/sony/brightness
profile=Powersave Low
[/Rule]

# conservative mode when not AC
[Rule]
name=AC Off - Medium Battery
ac=off                   # (on/off)
battery_interval=30-70
#exec_post=echo 5 > /proc/acpi/sony/brightness
profile=On Demand Low
[/Rule]

# stay in performance mode for the first minutes
[Rule]
name=AC Off - High Power
ac=off                   # (on/off)
battery_interval=70-100
#exec_post=echo 5 > /proc/acpi/sony/brightness
profile=On Demand High
[/Rule]

##
# Special Rules
##
# CPU Too hot!
[Rule]
name=CPU Too Hot
acpi_temperature=55-100
cpu_interval=50-100
profile=Performance Low
[/Rule]

# use performance mode if I'm watching a movie
# I don't care for batteries! 
# But don't heat too much.
[Rule]
name=Movie Watcher
programs=xine,mplayer,avidemux,gcc,totem,vlc,kaffeine,ogle,lindvd
battery_interval=0-100
acpi_temperature=0-60
cpu_interval=0-100
profile=Performance High
[/Rule]