Re: apmd launches anacron (causing prelink to fill ramdisk)
Mariano Blejman <marianet-sbJo1MvXQYdWk0Htik3J/[email protected]>
| Newsgroups | gmane.linux.debian.knoppix |
|---|---|
| Message-ID | <1080729705.2083.10.camel@Notemar> |
Tim > > I am using Knoppix V3.3, and i am having problem with some cron process, > > because my hard disk work every time I open a program, an aldo in other > > process. do you think it will help me also? > > The latest version of KNOPPIX V3.3 shouldn't have this problem (although > I haven't been keeping track lately). You might try obtaining the > newest version. If I have installed one version in my hard disk, how can I obtain the newest version, with out uninstalling? > The next time you experience this problem, try opening a terminal and > running top. If you notice prelink near the top of that output, it's > the same problem. If not, it's probably something else. > Post back your results and we'll take it from there. Ok, I am with a big problem, my disk can crash in any mnute. So, I send you the results of "top", "ps aux", "vnstat 1", and the content of /etc/init.d/cron and /etc/init.d/anacron please, help me! --- [email protected]:~$ top top - 10:16:05 up 8:50, 1 user, load average: 0.62, 0.71, 0.43 Tasks: 56 total, 3 running, 53 sleeping, 0 stopped, 0 zombie Cpu(s): 41.3% user, 3.0% system, 0.0% nice, 55.7% idle Mem: 126788k total, 122220k used, 4568k free, 3472k buffers Swap: 281096k total, 24432k used, 256664k free, 51828k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2036 knoppix 15 0 36136 34m 17m R 38.7 28.1 2:27.79 firefox-bin 381 root 9 0 24912 13m 9352 R 3.9 10.6 1:19.87 X 2126 knoppix 13 0 984 984 800 R 1.3 0.8 0:00.55 top 2093 knoppix 9 0 14312 13m 11m S 0.3 11.3 0:01.79 konsole 1 root 8 0 60 52 32 S 0.0 0.0 0:04.67 init 2 root 9 0 0 0 0 S 0.0 0.0 0:00.39 keventd 3 root 19 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd_CPU0 4 root 9 0 0 0 0 S 0.0 0.0 0:02.64 kswapd 5 root 9 0 0 0 0 S 0.0 0.0 0:00.00 bdflush 6 root 9 0 0 0 0 S 0.0 0.0 0:00.06 kupdated 45 root 9 0 0 0 0 S 0.0 0.0 0:00.00 kapmd 58 root 9 0 0 0 0 S 0.0 0.0 0:00.00 khubd 157 daemon 9 0 204 164 164 S 0.0 0.1 0:00.00 portmap 249 root 9 0 376 368 316 S 0.0 0.3 0:00.08 syslogd 257 root 9 0 912 100 100 S 0.0 0.1 0:00.25 klogd 289 root 8 0 276 100 100 S 0.0 0.1 0:00.07 cardmgr 306 knoppix 9 0 1016 968 648 S 0.0 0.8 0:00.47 famd 311 root 9 0 132 80 80 S 0.0 0.1 0:00.00 inetd 316 root 9 0 1564 1052 924 S 0.0 0.8 0:00.16 nmbd 318 root 9 0 992 120 120 S 0.0 0.1 0:00.00 smbd 327 root 9 0 332 112 112 S 0.0 0.1 0:00.25 sshd 334 root 9 0 636 372 352 S 0.0 0.3 0:00.05 cupsd 364 daemon 9 0 180 128 128 S 0.0 0.1 0:00.00 atd 367 root 9 0 260 196 180 S 0.0 0.2 0:00.04 cron 372 root 9 0 236 172 172 S 0.0 0.1 0:00.01 kdm 375 root 9 0 136 88 88 S 0.0 0.1 0:00.04 getty 376 root 9 0 136 88 88 S 0.0 0.1 0:00.00 getty 377 root 9 0 136 88 88 S 0.0 0.1 0:00.01 getty 378 root 9 0 136 88 88 S 0.0 0.1 0:00.00 getty 379 root 9 0 136 88 88 S 0.0 0.1 0:00.00 getty 380 root 9 0 136 88 88 S 0.0 0.1 0:00.00 getty -------- [email protected]:~$ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 72 52 ? S 01:25 0:04 init [5] root 2 0.0 0.0 0 0 ? SW 01:25 0:00 [keventd] root 3 0.0 0.0 0 0 ? SWN 01:25 0:00 [ksoftirqd_CPU0] root 4 0.0 0.0 0 0 ? SW 01:25 0:02 [kswapd] root 5 0.0 0.0 0 0 ? SW 01:25 0:00 [bdflush] root 6 0.0 0.0 0 0 ? SW 01:25 0:00 [kupdated] root 45 0.0 0.0 0 0 ? SW 01:25 0:00 [kapmd] root 58 0.0 0.0 0 0 ? SW 01:25 0:00 [khubd] daemon 157 0.0 0.1 1704 164 ? S 01:25 0:00 /sbin/portmap root 249 0.0 0.2 1540 344 ? S 01:26 0:00 /sbin/syslogd root 257 0.0 0.0 2208 96 ? S 01:26 0:00 /sbin/klogd root 289 0.0 0.0 1636 96 ? S 01:26 0:00 /sbin/cardmgr knoppix 306 0.0 0.7 3112 968 ? S 01:26 0:00 /usr/sbin/famd -T 0 root 311 0.0 0.0 1520 76 ? S 01:26 0:00 /usr/sbin/inetd root 316 0.0 0.6 5364 784 ? S 01:26 0:00 /usr/sbin/nmbd -D root 318 0.0 0.0 7344 116 ? S 01:26 0:00 /usr/sbin/smbd -D root 327 0.0 0.0 3076 108 ? S 01:26 0:00 /usr/sbin/sshd root 334 0.0 0.2 4308 368 ? S 01:26 0:00 /usr/sbin/cupsd daemon 364 0.0 0.0 1672 92 ? S 01:26 0:00 /usr/sbin/atd root 367 0.0 0.1 1748 196 ? S 01:26 0:00 /usr/sbin/cron root 372 0.0 0.1 2440 132 ? S 01:26 0:00 /usr/bin/kdm root 375 0.0 0.0 1484 84 tty1 S 01:26 0:00 /sbin/getty 38400 tty1 root 376 0.0 0.0 1484 84 tty2 S 01:26 0:00 /sbin/getty 38400 tty2 root 377 0.0 0.0 1484 84 tty3 S 01:26 0:00 /sbin/getty 38400 tty3 root 378 0.0 0.0 1484 84 tty4 S 01:26 0:00 /sbin/getty 38400 tty4 root 379 0.0 0.0 1484 84 tty5 S 01:26 0:00 /sbin/getty 38400 tty5 root 380 0.0 0.0 1484 84 tty6 S 01:26 0:00 /sbin/getty 38400 tty6 root 381 0.2 10.1 29260 12852 ? S 01:26 1:21 /etc/X11/X -dpi 75 -nolisten tcp vt7 knoppix 449 0.0 2.3 6804 3004 ? S 01:27 0:01 /usr/lib/gconf2/gconfd-2 20 knoppix 483 0.0 0.8 5024 1096 ? S 01:27 0:00 /usr/lib/bonobo-activation/bonobo-activation-server knoppix 485 0.0 1.9 27836 2508 ? S 01:27 0:00 /usr/lib/evolution/1.4/evolution-wombat --oaf-activ root 1990 0.0 0.7 3084 908 ? S 10:05 0:00 -:0 knoppix 2004 0.1 1.6 4160 2048 ? S 10:05 0:00 /usr/bin/fluxbox knoppix 2032 0.0 0.4 2668 600 ? S 10:05 0:00 /usr/bin/ssh-agent /usr/bin/fluxbox knoppix 2034 0.0 0.9 6184 1260 ? S 10:05 0:00 /usr/bin/X11/wmdrawer knoppix 2035 4.8 21.0 56028 26696 ? S 10:05 0:31 evolution knoppix 2036 24.2 28.0 55120 35608 ? R 10:05 2:40 /usr/lib/mozilla-firefox/firefox-bin knoppix 2046 0.0 28.0 55120 35608 ? S 10:06 0:00 /usr/lib/mozilla-firefox/firefox-bin knoppix 2047 0.0 28.0 55120 35608 ? S 10:06 0:00 /usr/lib/mozilla-firefox/firefox-bin knoppix 2048 0.2 6.8 20048 8728 ? S 10:06 0:01 psi knoppix 2050 0.0 28.0 55120 35608 ? S 10:06 0:00 /usr/lib/mozilla-firefox/firefox-bin knoppix 2052 0.0 4.6 20992 5908 ? S 10:06 0:00 /usr/lib/evolution/1.4/evolution-alarm-notify --oaf knoppix 2054 0.0 6.8 20048 8728 ? S 10:06 0:00 psi knoppix 2059 0.0 21.0 56028 26696 ? S 10:06 0:00 evolution knoppix 2060 0.3 21.0 56028 26696 ? S 10:06 0:01 evolution knoppix 2061 0.3 21.0 56028 26696 ? S 10:06 0:02 evolution knoppix 2070 0.0 21.0 56028 26696 ? S 10:06 0:00 evolution knoppix 2082 0.0 21.0 56028 26696 ? S 10:07 0:00 evolution knoppix 2083 0.0 21.0 56028 26696 ? S 10:07 0:00 evolution knoppix 2093 1.1 11.3 25536 14340 ? R 10:13 0:02 konsole knoppix 2095 0.0 5.6 19904 7132 ? S 10:14 0:00 kdeinit: Running... knoppix 2098 0.0 6.0 20040 7644 ? S 10:14 0:00 kdeinit: dcopserver --nosid --suicide knoppix 2101 0.0 6.4 20372 8144 ? S 10:14 0:00 kdeinit: klauncher knoppix 2103 0.7 8.7 22344 11120 ? S 10:14 0:01 kdeinit: kded knoppix 2107 0.6 1.8 5440 2332 pts/0 S 10:14 0:01 /bin/bash knoppix 2127 4.2 11.2 26220 14316 pts/0 S 10:16 0:01 kedit knoppix 2128 0.0 21.0 56028 26696 ? S 10:16 0:00 evolution knoppix 2129 4.4 1.8 5440 2336 pts/1 S 10:16 0:01 /bin/bash knoppix 2149 0.0 0.6 2852 816 pts/1 R 10:16 0:00 ps aux --- [email protected]:~$ vmstat 1 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 2 1 25276 3952 2952 50304 1 3 14 5 103 39 2 0 98 0 2 0 25276 4128 2960 50272 0 0 100 0 112 349 26 5 69 0 0 0 25276 4224 2960 50272 0 0 0 0 101 313 29 2 69 0 0 0 25276 4224 2960 50272 0 0 0 0 101 362 27 0 73 0 0 0 25276 4160 2960 50272 0 0 0 0 101 312 15 1 84 0 1 0 25276 4252 2964 50272 0 0 4 0 102 326 34 1 65 0 1 0 25276 4252 2964 50272 0 0 0 0 101 346 24 0 76 0 0 0 25276 4212 2964 50272 0 0 0 0 101 327 21 0 79 0 2 0 25276 4196 2964 50272 0 0 0 0 101 283 10 0 90 0 2 0 25276 4244 2964 50272 0 0 0 0 133 382 12 1 87 0 2 0 25276 4252 2964 50272 0 0 0 0 202 529 29 1 70 0 1 0 25276 4244 2964 50272 0 0 0 0 156 432 29 4 67 0 1 0 25276 4244 2964 50272 0 0 0 0 127 389 47 2 51 0 3 0 25276 4204 2964 50272 0 0 0 0 213 517 42 2 56 0 1 0 25276 4252 2964 50272 0 0 0 0 123 469 26 3 71 0 1 0 25276 3996 2964 50272 0 0 0 0 189 533 44 7 50 0 2 0 25276 4236 2964 50272 0 0 0 0 165 456 38 2 60 0 2 0 25276 4244 2964 50272 0 0 0 0 174 431 21 1 78 0 2 1 25276 3944 2864 49320 0 0 12 0 159 536 52 4 44 0 2 0 27040 6948 2740 48488 0 72 4 72 118 399 69 5 26 0 2 0 27040 7112 2740 48488 0 0 0 0 101 349 20 2 78 0 2 0 27040 7152 2740 48488 0 0 0 0 101 287 13 1 86 0 0 0 27040 7112 2740 48488 0 0 0 0 101 319 27 4 69 0 1 0 27040 7136 2740 48488 0 0 0 0 101 343 33 1 66 0 2 0 27040 7136 2740 48488 0 0 0 0 101 321 13 2 85 0 2 0 27040 7152 2740 48488 0 0 0 0 115 359 17 1 82 0 1 0 27040 7096 2740 48488 0 0 0 0 114 354 64 4 32 0 1 0 27040 6948 2740 48488 0 0 0 0 116 364 56 3 41 0 1 0 27040 7064 2740 48488 0 0 0 0 101 325 33 0 67 0 2 0 27040 5712 2740 48488 32 0 32 0 194 458 27 1 72 0 2 0 27040 6960 2744 48304 0 0 60 0 198 624 78 7 15 0 3 0 27040 6856 2744 48304 0 0 0 0 195 660 93 7 0 0 2 0 27040 7276 2744 48188 0 0 40 0 183 551 84 9 7 0 2 0 27040 6892 2760 48548 0 0 376 0 192 633 59 5 36 0 2 0 27040 6736 2764 48632 0 0 88 0 218 988 83 3 14 0 -- [email protected]:~$ mcedit /etc/init.d/cron #!/bin/sh # Start/stop the cron daemon. test -f /usr/sbin/cron || exit 0 case "$1" in start) echo -n "Starting periodic command scheduler: cron" start-stop-daemon --start --quiet --pidfile /var/run/crond.pid --exec /usr/sbin/cron echo "." ;; stop) echo -n "Stopping periodic command scheduler: cron" start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid --exec /usr/sbin/cron echo "." ;; restart) echo -n "Restarting periodic command scheduler: cron" start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid --exec /usr/sbin/cron start-stop-daemon --start --quiet --pidfile /var/run/crond.pid --exec /usr/sbin/cron echo "." ;; reload|force-reload) echo -n "Reloading configuration files for periodic command scheduler: cron" # cron reloads automatically echo "." ;; *) echo "Usage: /etc/init.d/cron start|stop|restart|reload|force-reload" exit 1 ;; esac exit 0 --- [email protected]:~$ mcedit /etc/init.d/anacron #! /bin/sh # /etc/init.d/anacron: start anacron # PATH=/bin:/usr/bin:/sbin:/usr/sbin test -f /usr/sbin/anacron || exit 0 case "$1" in start) if test -x /usr/bin/on_ac_power then /usr/bin/on_ac_power >/dev/null if test $? -eq 1 then echo "Starting anac(h)ronistic cron: deferred while on battery power." exit 0 fi fi # on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used) # or on_ac_power returns 255 (undefined, desktop machine without APM) echo -n "Starting anac(h)ronistic cron: anacron" anacron -s echo "." ;; restart|force-reload|stop) # nothing to do : ;; *) echo "Usage: /etc/init.d/anacron start" exit 1 ;; esac exit 0