PDA

View Full Version : HDD activity slows down the machine, swap not enabled



asutic
10th February 2007, 05:36 PM
Hi.

On an AMD Athlon64 machine I've installed x86_64 FC6 receantly. Although I expected it will run like charm, it was not the case. From time to time, there is a strong HDD activity and I have no clue which process is accessing the hard-drive at that time. It usually happens after 1-2 hours the PC has been turned-on, or even before if extensive processing was in progress (e.g. after compilation of an application).

Now, the only suspecious thing I see is that, during the boot seguence, I get the following messages:

"Unable to access resume device" and
"Enabling /etc/fstab swaps [FAILED]"

Could a problem with the swap space cause such HDD activity?

Bellow is also the output of 'ps' command when I face the unexpected HDD activity. So, if anybody have a clue about this strange issue, please let me know :)?

At work I use 32-bit FC5 and I didn't have any issue with it. This 64-bit FC6 doesn't look quite stable.

BTW, the swap partition is located on primary partition of the hard-drive, though I believe it should be OK.

Regards,
Aleksandar


PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 watchdog/0
5 ? 00:00:00 events/0
6 ? 00:00:00 khelper
7 ? 00:00:00 kthread
11 ? 00:00:00 kblockd/0
12 ? 00:00:00 kacpid
138 ? 00:00:00 cqueue/0
141 ? 00:00:00 khubd
143 ? 00:00:00 kseriod
209 ? 00:00:00 pdflush
210 ? 00:00:00 pdflush
211 ? 00:00:00 kswapd0
212 ? 00:00:00 aio/0
363 ? 00:00:00 kpsmoused
387 ? 00:00:00 ata/0
388 ? 00:00:00 ata_aux
391 ? 00:00:00 scsi_eh_0
392 ? 00:00:00 scsi_eh_1
393 ? 00:00:00 scsi_eh_2
394 ? 00:00:00 scsi_eh_3
395 ? 00:00:00 kjournald
421 ? 00:00:00 kauditd
447 ? 00:00:00 udevd
726 ? 00:00:00 kedac
1263 ? 00:00:00 hda_codec
1464 ? 00:00:00 kmpathd/0
1470 ? 00:00:00 kmirrord
1489 ? 00:00:00 kjournald
1789 ? 00:00:00 restorecond
1798 ? 00:00:00 syslogd
1801 ? 00:00:00 klogd
1825 ? 00:00:00 mcstransd
1836 ? 00:00:00 portmap
1855 ? 00:00:00 rpc.statd
1884 ? 00:00:00 rpc.idmapd
1898 ? 00:00:00 dbus-daemon
1908 ? 00:00:00 hcid
1912 ? 00:00:00 sdpd
1925 ? 00:00:00 krfcommd
1960 ? 00:00:00 pcscd
1973 ? 00:00:00 hidd
1991 ? 00:00:00 automount
2008 ? 00:00:00 acpid
2017 ? 00:00:00 hpiod
2022 ? 00:00:00 python
2032 ? 00:00:00 cupsd
2041 ? 00:00:00 sshd
2060 ? 00:00:00 sendmail
2069 ? 00:00:00 sendmail
2079 ? 00:00:00 gpm
2124 ? 00:00:00 nasd
2133 ? 00:00:00 crond
2170 ? 00:00:00 xfs
2179 ? 00:00:00 anacron
2187 ? 00:00:00 atd
2205 ? 00:05:03 yum-updatesd
2215 ? 00:00:00 avahi-daemon
2216 ? 00:00:00 avahi-daemon
2225 ? 00:00:01 hald
2226 ? 00:00:00 hald-runner
2232 ? 00:00:00 hald-addon-acpi
2236 ? 00:00:00 hald-addon-keyb
2248 ? 00:00:00 hald-addon-stor
2320 ? 00:00:00 smartd
2325 tty1 00:00:00 mingetty
2336 tty2 00:00:00 mingetty
2339 tty3 00:00:00 mingetty
2340 tty4 00:00:00 mingetty
2341 tty5 00:00:00 mingetty
2356 tty6 00:00:00 mingetty
2357 ? 00:00:00 prefdm
2376 ? 00:00:00 gdm-binary
2425 ? 00:00:00 gdm-binary
2429 ? 00:00:00 gdm-binary
2430 tty7 00:00:56 Xorg
2471 ? 00:00:00 startkde
2523 ? 00:00:00 ssh-agent
2526 ? 00:00:00 dbus-launch
2527 ? 00:00:00 dbus-daemon
2579 ? 00:00:00 kdeinit
2582 ? 00:00:00 dcopserver
2584 ? 00:00:00 klauncher
2586 ? 00:00:00 kded
2591 ? 00:00:00 kwrapper
2593 ? 00:00:00 ksmserver
2594 ? 00:00:02 kwin
2596 ? 00:00:01 kdesktop
2598 ? 00:00:06 kicker
2614 ? 00:00:00 artsd
2616 ? 00:00:00 kaccess
2619 ? 00:00:00 kmix
2621 ? 00:00:00 kget
2639 ? 00:00:00 knotify
2759 ? 00:00:00 dhclient
2813 ? 00:00:00 gconfd-2
2825 ? 00:00:00 thunderbird
2843 ? 00:00:00 run-mozilla.sh
2848 ? 00:00:43 thunderbird-bin
2987 ? 00:00:10 skype
3038 ? 00:00:00 scsi_eh_4
3039 ? 00:00:00 usb-storage
3107 ? 00:00:00 hald-addon-stor
3168 ? 00:00:00 kio_file
3170 ? 00:00:00 kio_uiserver
3312 ? 00:00:01 konqueror
3341 ? 00:00:00 firefox
3352 ? 00:00:00 run-mozilla.sh
3357 ? 00:00:14 firefox-bin
3366 ? 00:00:00 netstat <defunct>
3379 ? 00:00:00 run-parts
3650 ? 00:00:00 konsole
3654 pts/2 00:00:00 bash
3913 ? 00:00:00 mlocate.cron
3914 ? 00:00:00 awk
3918 ? 00:00:04 updatedb
3943 pts/2 00:00:00 ps

ionutv202003
10th February 2007, 06:16 PM
for starters check /etc/fstab to see if you have an entry for at least one swap partition. if so you need to activate it by typing swap -a (this activates all swap partitions). If you do not have an entry for swap make one. if you do not have a partition formatted as swap make one and create an entry for it in /etc/fstab.

mwette
10th February 2007, 07:01 PM
My guess is that it is updatedb. This is run by cron (see /etc/cron.daily/mlocate.cron).
The daily run time is configured in /etc/crontab. You could choose to run this weekly,
or monthly, or never. It is needed for using the "locate" command.

asutic
13th February 2007, 12:07 PM
mwtte,

How do I choose to run updatedb weekly? How to edit /etc/crontab?

Thanks,
Aleksandar

mwette
13th February 2007, 02:55 PM
mwtte,

How do I choose to run updatedb weekly? How to edit /etc/crontab?

Thanks,
Aleksandar

I suggest you start with moving updatedb weekly. Just


$ su -
Password:
# cd /etc/
# mv cron.daily/mlocate.cron cron.weekly/

leigh123linux
13th February 2007, 03:03 PM
You could disable unused services as you seem to have everything running

http://www.mjmwired.net/resources/mjm-services-fc6.html



1798 ? 00:00:00 syslogd
1801 ? 00:00:00 klogd
1825 ? 00:00:00 mcstransd
1836 ? 00:00:00 portmap
1855 ? 00:00:00 rpc.statd
1884 ? 00:00:00 rpc.idmapd
1898 ? 00:00:00 dbus-daemon
1908 ? 00:00:00 hcid
1912 ? 00:00:00 sdpd
1925 ? 00:00:00 krfcommd
1960 ? 00:00:00 pcscd
1973 ? 00:00:00 hidd
1991 ? 00:00:00 automount
2008 ? 00:00:00 acpid
2017 ? 00:00:00 hpiod
2022 ? 00:00:00 python
2032 ? 00:00:00 cupsd
2041 ? 00:00:00 sshd
2060 ? 00:00:00 sendmail
2069 ? 00:00:00 sendmail
2079 ? 00:00:00 gpm
2124 ? 00:00:00 nasd
2133 ? 00:00:00 crond
2170 ? 00:00:00 xfs
2179 ? 00:00:00 anacron
2187 ? 00:00:00 atd
2205 ? 00:05:03 yum-updatesd

asutic
14th February 2007, 07:13 PM
Thanks, guys.

I'll apply your suggestions these days and let you know about the status. I like the page about the services. Thanks.

Aleksandar

marko
14th February 2007, 11:19 PM
for starters check /etc/fstab to see if you have an entry for at least one swap partition. if so you need to activate it by typing swap -a (this activates all swap partitions). If you do not have an entry for swap make one. if you do not have a partition formatted as swap make one and create an entry for it in /etc/fstab.

I think you mean swapon -a and not swap -a

There is no "swap" command

Mark

ionutv202003
15th February 2007, 11:09 AM
indeed it is "swapon -a" not "swap -a". sorry about the mistake, i was in a hurry.

asutic
17th February 2007, 10:10 AM
after fixing cron and turning off some services, the unexpected HDD activity is still there. However, I notice that there's a mail sent to root in /var/spool/mail/root (see bellow).

Aleksandar

From root@localhost.localdomain Sat Feb 17 09:59:31 2007
Return-Path: <root@localhost.localdomain>
Received: from localhost.localdomain (localhost [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id l1H8xVIQ003330
for <root@localhost.localdomain>; Sat, 17 Feb 2007 09:59:31 +0100
Received: (from root@localhost)
by localhost.localdomain (8.13.8/8.13.8/Submit) id l1H8xUU1003326;
Sat, 17 Feb 2007 09:59:30 +0100
Date: Sat, 17 Feb 2007 09:59:30 +0100
Message-Id: <200702170859.l1H8xUU1003326@localhost.localdomain>
To: root@localhost.localdomain
From: logwatch@localhost.localdomain
Subject: Logwatch for localhost.localdomain (Linux)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"


################### Logwatch 7.3 (03/24/06) ####################
Processing Initiated: Sat Feb 17 09:59:30 2007
Date Range Processed: yesterday
( 2007-Feb-16 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: localhost.localdomain
################################################## ################

--------------------- Disk Space Begin ------------------------

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 11G 8.8G 1.3G 88% /
/dev/hda5 13G 12G 459M 97% /home
/dev/hda6 42G 28G 15G 67% /mnt/pegasus


---------------------- Disk Space End -------------------------


###################### Logwatch End #########################

leigh123linux
17th February 2007, 11:54 AM
you could try removing beagle

yum remove beagle

asutic
18th February 2007, 10:12 AM
Ok, it looks like the issue is coming from yum. During the a "HDD activity", I tried to use yum, and here is the message I got:

Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.

Any ideas how to prevent this?

Aleksandar

leigh123linux
18th February 2007, 10:19 AM
Ok, it looks like the issue is coming from yum. During the a "HDD activity", I tried to use yum, and here is the message I got:

Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.

Any ideas how to prevent this?

Aleksandar

disable (uncheck box then stop it & save change )the yum auto update daemon in services

su -
system-config-services

asutic
18th February 2007, 10:25 AM
Thanks, leigh123. Just did as you told me. I hope the annoying activity will stop now.

But how come that the yum auto-update daemon has such huge priority that it almost kills all other processes running? It should run in background, right?

Aleksandar