View previous topic :: View next topic |
Author |
Message |
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sun Sep 16, 2007 9:20 am Post subject: suspicious number of process created by fancontrol [solved] |
|
|
hi all.
I realized that my desktop Gentoo machine has a strange ~ 20 process created per second.
just after boot, before logging in kde, I run this in-line script inside a virtual console:
Code: | # while true; do grep processes /proc/stat; sleep 10s; done
processes 6245
processes 6265
processes 6285
processes 6305
processes 6325
processes 6345
processes 6365 |
as you can see, every 10 seconds my process creation count goes up by 20. I'm still not able to understand what's happening.
Ideas? I think this isn't a normal behaviour.
thanks.
Last edited by fikiz on Sun Sep 16, 2007 5:46 pm; edited 1 time in total |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Sep 16, 2007 9:33 am Post subject: |
|
|
can we see a ps aux? do you see any new threads being created there that probably shouldn't be?
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sun Sep 16, 2007 9:35 am Post subject: |
|
|
this is ps aux. sorry but now I'm running kde.
Code: | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1532 532 ? Ss 11:06 0:00 init [3]
root 2 0.0 0.0 0 0 ? S< 11:06 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 11:06 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? SN 11:06 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 11:06 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 11:06 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? SN 11:06 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S< 11:06 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S< 11:06 0:00 [events/0]
root 10 0.0 0.0 0 0 ? S< 11:06 0:00 [events/1]
root 11 0.0 0.0 0 0 ? S< 11:06 0:00 [khelper]
root 70 0.0 0.0 0 0 ? S< 11:06 0:00 [kblockd/0]
root 71 0.0 0.0 0 0 ? S< 11:06 0:00 [kblockd/1]
root 72 0.0 0.0 0 0 ? S< 11:06 0:00 [kacpid]
root 73 0.0 0.0 0 0 ? S< 11:06 0:00 [kacpi_notify]
root 175 0.0 0.0 0 0 ? S< 11:06 0:00 [ata/0]
root 176 0.0 0.0 0 0 ? S< 11:06 0:00 [ata/1]
root 177 0.0 0.0 0 0 ? S< 11:06 0:00 [ata_aux]
root 178 0.0 0.0 0 0 ? S< 11:06 0:00 [ksuspend_usbd]
root 181 0.0 0.0 0 0 ? S< 11:06 0:00 [khubd]
root 183 0.0 0.0 0 0 ? S< 11:06 0:00 [kseriod]
root 213 0.0 0.0 0 0 ? S 11:06 0:00 [pdflush]
root 214 0.0 0.0 0 0 ? S 11:06 0:00 [pdflush]
root 215 0.0 0.0 0 0 ? S< 11:06 0:00 [kswapd0]
root 216 0.0 0.0 0 0 ? S< 11:06 0:00 [aio/0]
root 217 0.0 0.0 0 0 ? S< 11:06 0:00 [aio/1]
root 889 0.0 0.0 0 0 ? S< 11:06 0:00 [scsi_eh_0]
root 891 0.0 0.0 0 0 ? S< 11:06 0:00 [scsi_eh_1]
root 940 0.0 0.0 0 0 ? S< 11:06 0:00 [kpsmoused]
root 953 0.0 0.0 0 0 ? S< 11:06 0:00 [kirqd]
root 958 0.0 0.0 0 0 ? S< 11:06 0:00 [md0_raid1]
root 960 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 1054 0.0 0.0 1892 636 ? S<s 11:06 0:00 /sbin/udevd --daemon
root 2557 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2558 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2559 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2560 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2561 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2562 0.0 0.0 0 0 ? S< 11:06 0:00 [kjournald]
root 2563 0.0 0.0 0 0 ? S< 11:06 0:00 [reiserfs/0]
root 2564 0.0 0.0 0 0 ? S< 11:06 0:00 [reiserfs/1]
root 4251 0.0 0.0 1892 624 ? Ss 11:07 0:00 /usr/sbin/syslog-ng
root 5314 0.0 0.0 2860 648 ? Ss 11:07 0:00 /usr/kde/3.5/bin/kdm
root 5360 0.4 2.7 37380 28104 tty7 SLs+ 11:07 0:07 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-qQ8YIZ
root 5417 0.0 0.1 3144 1116 ? S 11:07 0:00 -:0
nobody 5485 0.0 0.0 1808 684 ? S 11:07 0:00 /usr/sbin/dnsmasq -x /var/run/dnsmasq.pid
root 5626 0.0 0.1 2604 1308 ? Ss 11:07 0:00 /bin/bash /usr/sbin/fancontrol /etc/fancontrol
root 5758 0.0 0.1 6204 1996 ? Ss 11:07 0:00 /usr/sbin/smbd -D
root 5762 0.0 0.0 6204 888 ? S 11:07 0:00 /usr/sbin/smbd -D
root 5768 0.0 0.1 3676 1132 ? Ss 11:07 0:00 /usr/sbin/nmbd -D
root 5827 0.0 0.0 6100 948 ? Ss 11:07 0:00 /usr/sbin/squid -DYC
squid 5829 0.0 0.6 9976 6944 ? S 11:07 0:00 (squid) -DYC
squid 5831 0.0 0.0 1372 292 ? Ss 11:07 0:00 (unlinkd)
root 5886 0.0 0.0 3872 1000 ? Ss 11:07 0:00 /usr/sbin/sshd
root 5944 0.0 0.0 1776 660 ? Ss 11:07 0:00 /usr/sbin/cron
root 6037 0.0 0.0 1504 176 ? Ss 11:07 0:00 /opt/vmware/workstation/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 eth0
root 6055 0.0 0.0 1504 176 ? Ss 11:07 0:00 /opt/vmware/workstation/bin/vmnet-bridge -d /var/run/vmnet-bridge-2.pid /dev/vmnet2 eth1
root 6132 0.0 0.0 1560 608 tty2 Ss+ 11:07 0:00 /sbin/agetty 38400 tty2 linux
root 6133 0.0 0.0 1564 612 tty3 Ss+ 11:07 0:00 /sbin/agetty 38400 tty3 linux
root 6134 0.0 0.0 1564 612 tty4 Ss+ 11:07 0:00 /sbin/agetty 38400 tty4 linux
root 6135 0.0 0.0 1560 608 tty5 Ss+ 11:07 0:00 /sbin/agetty 38400 tty5 linux
root 6136 0.0 0.0 1560 608 tty6 Ss+ 11:07 0:00 /sbin/agetty 38400 tty6 linux
root 6175 0.0 0.0 1372 160 ? Ss 11:07 0:00 /opt/vmware/workstation/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1
root 6188 0.0 0.0 1688 372 ? Ss 11:07 0:00 /opt/vmware/workstation/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmne
root 6349 0.0 0.1 2888 1404 ? Ss 11:08 0:00 SCREEN -D -R
root 6350 0.0 0.1 2740 1544 pts/0 Ss 11:08 0:00 -/bin/bash
me 6497 0.0 0.1 2668 1156 ? Ss 11:09 0:00 /bin/sh /usr/kde/3.5/bin/startkde
me 6529 0.0 0.0 2140 484 ? Ss 11:09 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
root 6550 0.0 0.0 1372 140 ? S 11:09 0:00 start_kdeinit --new-startup +kcminit_startup
me 6551 0.0 0.6 22456 7052 ? Ss 11:09 0:00 kdeinit Running...
me 6554 0.0 0.2 22044 2596 ? S 11:09 0:00 dcopserver [kdeinit] --nosid
me 6556 0.0 0.7 23376 8096 ? S 11:09 0:00 klauncher [kdeinit] --new-startup
me 6558 0.0 1.2 27768 13388 ? S 11:09 0:00 kded [kdeinit] --new-startup
me 6581 0.0 0.0 1504 332 ? S 11:09 0:00 kwrapper ksmserver
me 6583 0.0 0.9 23748 9632 ? S 11:09 0:00 ksmserver [kdeinit]
me 6584 0.0 1.1 25148 12260 ? S 11:09 0:00 kwin [kdeinit] -session 10da6f6d65000114188467000000091910000_1189932417_757750
me 6586 0.0 1.5 27108 15744 ? S 11:09 0:00 kdesktop [kdeinit]
me 6588 0.0 1.7 31172 18136 ? S 11:09 0:00 kicker [kdeinit]
me 6589 0.0 0.6 22844 7084 ? S 11:09 0:00 kio_file [kdeinit] file /home/me/.kde3.5/socket-homer/klauncherzHVktc.slave-socket /home/me/.kde3.5/
me 6595 0.0 0.9 23624 9500 ? S 11:09 0:00 kaccess [kdeinit]
me 6597 0.0 1.4 27708 14664 ? S 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000114506521900000092940009_1189932416_323115 -name Qt-subappli
me 6598 0.0 1.4 27956 15012 ? R 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000115279854100000093590010_1189932416_322739 -name Qt-subappli
me 6599 0.0 1.4 27860 14852 ? S 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000115998012600000094850009_1189932416_374330 -name Qt-subappli
me 6601 0.0 1.0 20092 10592 ? S 11:09 0:00 knetload -session 10da6f6d65000112740530800000105240005_1189932416_513459
me 6602 0.0 1.4 27928 14856 ? S 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000117240493200000086360020_1189932416_431182 -name Qt-subappli
me 6604 0.0 1.6 31744 17388 ? S 11:09 0:00 knotes -session 10da6f6d65000118167874300000057840020_1189932416_207941
me 6605 0.0 1.4 27832 14792 ? S 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000118752197800000068870053_1189932416_356503 -name Qt-subappli
me 6606 0.0 1.4 27676 14540 ? S 11:09 0:00 konsole [kdeinit] -session 10da6f6d65000118927287200000063980019_1189932416_363766 -name Qt-subappli
me 6618 0.0 0.1 3004 1532 pts/1 Ss+ 11:10 0:00 /bin/bash
me 6623 0.0 0.1 3004 1536 pts/2 Ss+ 11:10 0:00 /bin/bash
me 6624 0.0 0.1 3004 1536 pts/3 Ss+ 11:10 0:00 /bin/bash
me 6638 0.0 0.1 3000 1544 pts/4 Ss 11:10 0:00 /bin/bash
me 6645 0.0 0.1 3004 1536 pts/5 Ss+ 11:10 0:00 /bin/bash
me 6652 0.0 0.1 3000 1532 pts/6 Ss+ 11:10 0:00 /bin/bash
me 6653 0.0 0.1 3000 1540 pts/7 Ss 11:10 0:00 /bin/bash
me 6670 0.0 0.1 3004 1540 pts/8 Ss 11:10 0:00 /bin/bash
me 6681 0.0 0.1 3000 1532 pts/9 Ss+ 11:10 0:00 /bin/bash
me 6692 0.0 0.1 3000 1532 pts/10 Ss+ 11:10 0:00 /bin/bash
me 6701 0.0 0.1 3000 1532 pts/11 Ss+ 11:10 0:00 /bin/bash
me 6707 0.0 0.1 3000 1532 pts/12 Ss+ 11:10 0:00 /bin/bash
me 6711 0.0 0.1 3000 1532 pts/13 Ss+ 11:10 0:00 /bin/bash
me 6718 0.0 0.1 3000 1532 pts/14 Ss+ 11:10 0:00 /bin/bash
me 6732 0.0 0.1 3004 1532 pts/15 Ss+ 11:10 0:00 /bin/bash
me 6762 0.0 1.0 24176 10880 ? S 11:10 0:00 klipper [kdeinit]
me 6773 0.0 4.8 103952 50316 ? Sl 11:10 0:01 kmail -session 10da6f6d65000118694875500000150030017_1189932416_220988
me 6806 0.0 1.2 30784 12964 ? S 11:10 0:00 knotify [kdeinit]
me 6858 0.0 0.8 24052 8820 ? S 11:10 0:00 gkrellm2
me 6869 4.4 19.0 233928 196784 ? Sl 11:10 1:03 ktorrent -icon ktorrent -miniicon ktorrent -caption KTorrent
me 6871 0.0 1.1 24968 12172 ? S 11:10 0:00 kio_uiserver [kdeinit]
me 6895 0.0 1.2 24708 12964 ? S 11:10 0:00 kcheckgmail
me 6924 0.0 1.6 28588 16784 ? S 11:10 0:00 basket
out 6971 0.0 0.1 2996 1560 pts/8 S 11:10 0:00 -su
out 6981 0.7 4.6 59380 47772 pts/8 Sl+ 11:10 0:10 mlnet
out 6985 0.0 0.1 2868 1532 pts/4 S+ 11:11 0:00 -su
out 7012 0.0 0.1 2796 1256 pts/4 S 11:11 0:00 /bin/bash /usr/libexec/mozilla-launcher
out 7021 1.3 4.8 144104 49628 pts/4 Sl 11:11 0:18 /usr/lib/mozilla-firefox/firefox-bin
out 7026 0.0 0.2 3416 2120 pts/4 S 11:11 0:00 /usr/libexec/gconfd-2 12
me 7028 0.0 0.7 49204 7976 ? S 11:11 0:00 kio_http [kdeinit] http /home/me/.kde3.5/socket-homer/klauncherzHVktc.slave-socket /home/me/.kde3.5/
root 7110 0.0 0.1 2612 1532 pts/7 S 11:11 0:00 -su
root 7143 0.0 0.0 2500 928 pts/7 S+ 11:11 0:00 screen -D -R
root 7145 0.0 0.0 1560 596 tty1 Ss+ 11:11 0:00 /sbin/agetty 38400 tty1 linux
root 7149 0.0 0.1 2744 1560 pts/17 Ss+ 11:11 0:00 -/bin/bash
me 14650 2.1 2.4 88288 25548 ? SLl 11:32 0:02 audacious
root 14926 0.0 0.0 1512 380 ? S 11:34 0:00 sleep 10
root 14927 0.0 0.0 2148 844 pts/0 R+ 11:34 0:00 ps aux
|
|
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Sep 16, 2007 9:39 am Post subject: |
|
|
only odd things i see are squid and dnsmasq... they're both normally run on gateways, not desktops. i know it probably doesn't help, but other than that your psaux looks fine. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sun Sep 16, 2007 9:54 am Post subject: |
|
|
I stopped squid and dnsmasq, but the problems remains
thanks anyway. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Sep 16, 2007 10:00 am Post subject: |
|
|
if you log out, stop x, stop mldonkey, stop vmware, and stop samba, does it still happen?
is anyone else logged into the machine? i see a user called out using firefox, but don't see a login for it. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sun Sep 16, 2007 10:52 am Post subject: |
|
|
I got it. I rebooted, stopped every service one at time while checking. The guilty is fancontrol. Now I'm going to deepen its functioning. Maybe I can open a new thread about it.
thanks! |
|
Back to top |
|
|
JuNix Apprentice
Joined: 05 Mar 2003 Posts: 224 Location: Sheffield
|
Posted: Sun Sep 16, 2007 12:08 pm Post subject: |
|
|
Quick reply to the fancontrol thing :-
Because fancontrol is a shellscript, it spawns new processes all the time to check the sensors. Did you know that fancontrol is shipped with an alternative version written in perl which does NOT spawn new processes. Simply create, (or modify existing) /etc/init.d/fancontrol to start fancontrol.pl
Code: |
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-2.10.1-fancontrol-init.d,v 1.1 2006/09/29 15:04:55 phreak Exp $
CONFIG=/etc/fancontrol
PID=/var/run/fancontrol.pid
depend() {
after lm_sensors
}
checkconfig() {
if [ ! -f ${CONFIG} ]; then
eerror "Configuration file ${CONFIG} not found"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting fancontrol"
start-stop-daemon --start --quiet --background --pidfile ${PID} \
--exec /usr/sbin/fancontrol.pl -- ${CONFIG}
eend ${?}
}
stop() {
ebegin "Stopping fancontrol"
start-stop-daemon --stop --pidfile ${PID}
eend ${?}
}
|
|
|
Back to top |
|
|
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sun Sep 16, 2007 5:46 pm Post subject: |
|
|
it works... thank you for this advice.
problem solved! |
|
Back to top |
|
|
|