amd64: Random system hangs and mouse issues with 6.10 (cpufreq related?)

Bug #85370 reported by Sense Egbert Hofstede
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Low
Unassigned
linux-source-2.6.17 (tuXlab)
Invalid
Undecided
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: powernowd

I don't know this for sure, but I think this problem has something to do with powernowd.
A time ago, I selected parts and bought a new computer. I wanted to install Kubuntu 6.10 amd64 on it. But when I was starting the Live CD, at the rules:
[{numbers}.{numers}] ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xE000 irq 209
[{numbers}.{numbers}] ata2: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xE000 irq 209

it stopped. So at first I thought that it was something with my SATA-II harddisk. But with the bootoptions noapic and nolapic I could start the cd. But at random moments it freezed. It did also with my 32 bit Ubuntu 6.06 live cd and also with ACPI APIC support disabled in the BIOS. The I thought it was the onboard video card and so I installed Kubuntu with the Kubuntu 6.10 alternate amd64 CD. That worked and I could also boot without problems.
But last weekend I wanted to install GNOME. But after that my mouse disapeared(not if I executed startx in the recovery mode) and I had that weird freezings again. After a lot of tries(including a deletion of .kde(after I copied it(wich I managed to lose)) I saw that I had installed powernowd with the GNOME things. When I removed it, I losed the freezings. I don't now anymore how I returned the mouse, but that's also fine now.

My system is:
Motherboard: Asus M2NPV-VM (with nForce 430 and GeForce 6150 onboard)
Processor: AMD Athlon 64 3800+
RAM: 2 times Kingston 512MB ECC Dual Layer DDR2 667mHz
Hard disk: Maxtor DiamondMax 17 160GB SATA-II
My hardware report ID is:
251e2a05e06ef7ce9085755ceb86b5ec

Tags: amd64 dapper edgy
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I don't know how to get more information about this problem, because every time I've got this problem the system hangs. Has anyone ideas to get more information about this, or can anyone confirm this? I still have this problem. Every time powernowd is running my system hangs after a (short) while.

Changed in powernowd:
status: Unconfirmed → Needs Info
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I have the same problem with feisty. After I installed the system It froze and after I removed powernowd in the recovery mode, it was fine.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Do you need syslog, kernel.log and messages? I've got them from a just installed feisty herd5 system.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

In version 0.97-1ubuntu7 is the problem solved. My system's working fine for a couple of hours now.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

The problem isn't over. After a restart the OS froze again.

Revision history for this message
Paul Sladen (sladen) wrote :

On Feisty, we don't actually run the 'powernowd', all we do is set the kernel's built-in scaling-governor. If I hadn't read the comment about "removing powernowd fixed the issue", I would have said this was likely completely unrelated to powernowd. If we don't run the '/etc/init.d/powernowd' initscript on boot, the kernel defaults to the 'conservative' governor.

That's not to say there's not something related to 'cpufreq', perhaps dropping interrupts during a state change, but I don't think it's powernowd, because powernowd simply isn't running (on Feisty).

I'm interested with any testing you can do on Feisty, but keeping the package installed and seeing whether the issue still occurs.

Revision history for this message
Paul Sladen (sladen) wrote :

Please attach:

  lspci -vv
  lspci -vvn

and the contents of:

  /var/log/dmesg
  /var/log/messages

Please ensure you /attach/ these are attachments.

Many Thanks,

Changed in powernowd:
status: Needs Info → Unconfirmed
Revision history for this message
Tim Gardner (timg-tpi) wrote :

Other files that are of interest are:

sudo dmidecode > dmidecode.txt
ps ax > ps.txt

Changed in linux-source-2.6.17:
assignee: nobody → timg-tpi
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I've got all the files, without powernowd installed. Do you need them also with powernowd installed?

Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

(without powernowd) means without powernowd installed.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Excuse for so many comments, but I don't know how to add all files at one time.
I've found the point in the old /var/log/message where the computer freezes. It's at Mar 14 15:21:18.
Just before syslogd says the system restarts, There is a message from gconfd, who says:
Mar 14 15:16:16 sense-desktop gconfd (sense-5379): Adres "xml:readwrite:/home/sense/.gconf" getraceerd naar een schrijfbare configuratiebron op positie 0
In English it means about:
Mar 14 15:16:16 sense-desktop gconfd (sense-5379): Address "xml:readwrite:/home/sense/.gconf" traced to a writeable configurationsource at position 0

I now it's very literally, but I don't know the exact string, and I'm only thirteen.

Revision history for this message
Juha Palomaki (juhap) wrote :

I have also seen number of random lock-ups. I'm running 6.10 and AMD64 (kernel 2.6.17) on Abit AB9-Pro motherboard. Everything usually works fine for maybe an hour or two, then the machine just freezes. I've been looking at different log files trying to see if there is anything happening when the system locks, but didn't find anything.

Stopping powernowd (/etc/init.d/powernowd stop) after system has started, *seems* to help.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

The packages is still the old kernel(where the bug was also in). But is also in the feisty kernel. How do I add the 2.6.20 kernel? By using +Upstream?

Revision history for this message
rdbrown0au (rdbrown) wrote :

I've been having similar hangs on dapper & now feisty. It seems to happen more when I'm moving the mouse, I don't remember it happening when using the keyboard.

Revision history for this message
rdbrown0au (rdbrown) wrote :

with the attachment this time

Revision history for this message
jondee (jonathandilks) wrote :

I also have this problem, tends to freeze when certain high process load tasks (like 3D-stuff but not ripping a CD) and sometimes I just click something and it happens randomly. Will try disabling powernowd and will report back.

Revision history for this message
jondee (jonathandilks) wrote :

OK, I disabled powernowd then repeatedly ran 3D screensavers and it still crashed. Only did it once though. Next I'm going to use the open-source nvidia driver instead of the proprietary one and see if that fixes the issue (as that will disable 3d). If anyone wants me to do a specific test just ask :-D Because I want to be able to use my PC without it crashing all the time!!!

Revision history for this message
jondee (jonathandilks) wrote :

Remove this please - meant to select Ubuntu.

Changed in linux-source-2.6.20:
status: Unconfirmed → In Progress
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I've got the same problem at Fedora 7 32bit and removing cpuspeed seems to solve the problem.

Revision history for this message
Thomas Medford (tmedford) wrote :

Not sure if this helps, but I noticed that after disabling the powernowd the CPU went back to full speed. Perhaps it has more to do with the CPU throttling than anything else.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Aha! This issue has turned up again in Bug #109643 (although it was originally thought to be NVIDIA binary driver related)...

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I think it isn't a 64bit issue, but an AMD problem. My brother doesn't have this problem at an Intel laptop, and this also isn't a problem at an Intel desktop. They're both 32bit. At an old AMD Duron 1000mHz I also have this problem. I think this is a kernel problem, which is also in other distributions, since I've got the same problem with Fedora 7 32bit at an AMD64 (and Fedora/Red Hat modifies his kernel significant).

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

(Red Hat try not to modify Fedora kernels all that much from upstream - see http://kernelslacker.livejournal.com/85039.html )

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

About the 100% processor usage, I sometimes have also that problem. I have only Firefox, Thunderbird and Rythmbox(playing) on. I think the priority should be higher, I couldn't install it with the livecd, and after I installed it with the alternate CD I had to remove powernowd in the recovery mode before I could properly use the system. But at the Duron, I could install it with the LiveCD, but after a while it began to freeze. A very few times after removing powernowd, it also freezes, but this happens almost never. I can't access the log files at the moment(and I still can't the next three weeks), but if you want them, please ask me.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Can someone test this with a Gutsy beta and see if this is any better?

Revision history for this message
roots (roots) wrote :

hi,

unfortunately, i can confirm lockups with gutsy tribe 5 (32bit) and todays updates, which i could solve by deactivating amd cool'n'quiet in bios.

i've had the lockups with feisty (32bit) before, now switched to gutsy testing.

the lockups occur unpredictably and mostly on an (almost) idle system, eg. right after gutsy finished intall to hdd (still running off the live cd), during gutsy package update, during light web browsing, after running amule for a few minutes etc.
frequency of lockups ranges from within a few minutes to hours. after lockup, my screen is unchanged with the exact content it had before, so no distorted image whatsoever. mouse pointer and keyboard of course are frozen, too. hard reboot is the only way to recover the system. the log files show no entries that could be related to the time of the lockups.

the problem can be solved by deactivating amd cool'n'quit in bios. no other workarounds tried yet.

the lockups do not occur with a well known commercial operating system, where i tested with heavy system load under different software.

my system specs:

amd64 x2 4000+
asus m2n-e with nforce570 ultra
2gb patriot ddr2-800
ati radeon x1950xt
lg cdrw
maxtor 160gb ide hdd
sound blaster audigy
lg l226wtq-sf display

Revision history for this message
roots (roots) wrote :

p.s. let me know if i can assist in debugging!

cheers,
roots.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

roots:
Hmm. Your issue might be Bug #109643 ...

Tim Gardner (timg-tpi)
Changed in linux-source-2.6.17:
assignee: timg-tpi → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-source-2.6.17 (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Sense, now that the 7.10 Gutsy Gibbon release of Ubuntu is out, we were wondering if you can still reproduce this issue. Could you please download and try the new version of Ubuntu from http://www.ubuntu.com/getubuntu/download and report back your results. If the issue is still present in the new release, please attach the following information if you're able to:

* uname -a > uname-a.log
* cat /proc/version_signature > version.log
* dmesg > dmesg.log
* sudo lspci -vvnn > lspci-vvnn.log

Please be sure to attach each file as a separate attachment. For more information regarding the kernel team bug policy, please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we appreciate your help and feedback.

Changed in linux-source-2.6.22:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I can confirm that this bug is still present in Gutsy. It can we solved by removing the package powernowd.
I'll post the log files you requested.
The kern.log and dmesg.log are in the recovery mode with powernowd installed after it froze. The others are before that happened, but I don't think that makes any difference.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

dmesg

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

uname -a

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

version.log

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

kern.log at freeze

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

kern.log after freeze, with powernowd started on boot.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

I've temporarily triaged this against linux-source-2.6.22. However, it is most likely that this will be retargeted towards the Hardy kernel once it is released. I've tagged this as "hardy-kernel-candidate" so that we make sure to retarget this report once the new release is out. However against the linux-source-2.6.20 and previous packages this is being marked as "Won't Fix" as it does not meet the criteria for a stable release update. To learn more about the stable release update process please refer to https://wiki.ubuntu.com/StableReleaseUpdates . Thanks!

Changed in linux-source-2.6.22:
status: Incomplete → Triaged
Changed in linux-source-2.6.20:
status: In Progress → Won't Fix
Changed in linux-source-2.6.17:
status: New → Invalid
Revision history for this message
durilka (durilka) wrote :

amd64 desktop running 32bit mainstream ubuntu, confirmed no hangs after disabling powernowd.
funny enough before disabling that init script, solution would be to go to text console after gdm started, and to type there some meaningless(for this case) commands like ps and ls, probably giving the driver some time to finish initialization or whatever. otherwise computer hangs during the gnome start or just after.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Sense,

The Hardy Heron kernel was recently uploaded for testing. We'd really appreciate it if you could try testing with this newer kernel and verify if this issue still exists. Unfortunately, the Hardy Heron Alpha1 LiveCD was released with the older 2.6.22 kernel. You'll have to manually install the newer Hardy Heron kernel in order to test. This should not be the case for Alpha2. However, here are the instructions to install (if you choose to do so):

1) edit the file /etc/apt/sources.list and add the following line:

deb http://archive.ubuntu.com/ubuntu hardy main restricted

2) sudo apt-get update
3) sudo apt-get install linux-image-2.6.24-1-generic
4) reboot and select the new kernel from the grub menu

After you've tested, please feel free to revert back - ie boot into the old kernel, sudo apt-get remove linux-image-2.6.24-1-generic, and remove the line from /etc/apt/sources.list . Please update this report with your results. Thanks in advance!

Changed in linux:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I don't have these problems at 2.6.24, but I haven't had much time to test because then bug #176503 also appeared in the root account(partially though, I can see the desktop icons). But I waited for a while, the same amount of time it normally takes to freeze.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Sense,

This sounds promising for resolving this bug at least. Just to be sure though I'll ask if you could test with the Hardy Alpha2 LiveCD once it comes out. I'll be sure to update this report when it is available. Thanks!

Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

When I reinstall powernowd I get this error: /etc/init.d/powernowd: 156: cannot create /sys/devices/system/cpu/cpu0//cpufreq/scaling_governor: Directory nonexistent
Maybe it's useful.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hardy Heron Alpha2 was recently released. It contains an updated version of the kernel. You can download and try the new Hardy Heron Alpha2 release from http://cdimage.ubuntu.com/releases/hardy/alpha-2/ . You should be able to then test the new kernel via the LiveCD. If you can, please verify if this bug still exists or not and report back your results. General information regarding the release can also be found here: http://www.ubuntu.com/testing/hardy/alpha2 . Thanks!

Revision history for this message
Gerhard Radatz (gerhard-radatz) wrote :

Hello, I had an issue with very long blocking time after the "kernel alive" message, before the system continued to boot with my amd64 kubuntu 7.10 installation, running on an Intel Core2 Extreme CPU Q6850 inside a VMware workstation 6.0.2 virtual machine.

I tried to install the updated kernel (2.6.24-4-generic by now) as was described by Leann Ogasawara in his post earlier in this thread on 2007-12-04, and this works fine - no more delays!

Thanks a lot

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

I'm marking this report as 'Fix Released' against the actively developed Hardy kernel per the last few sets of comments. Thanks to everyone for testing and your feedback.

Changed in linux:
status: Incomplete → Fix Released
Changed in linux-source-2.6.22:
status: Triaged → Won't Fix
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

The problem was solved after I update the BIOS from my Asus M2NPV-VM, which was from June 2006(version 0303), to the newest available. Now I'm running the LiveCD with powernowd installed for more than an hour without any freezes. The things I had to disable in the BIOS to get the system booting are now also enabled. This problem has probably to do with older BIOSes. Anyway, thank you for your help. The community is one of the things that makes Ubuntu such a great operating system.

Sense Hofstede

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

(A small note: I accidentally installed the 32bit version. When I've got the Hardy CDs I'm going to install amd64 again and tell you if it still works. But I expect it will.)

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

It is also working on amd64 now. I'm using the latest version of Hardy Heron.
(Actually, it worked a lot earlier but I forgot to post a comment earlier. Sorry.)

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.