High load and extremely unresponsive system

Bug #102498 reported by ChristofferS
6
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Invalid
Medium
Unassigned
linux-source-2.6.22 (Baltix)
Invalid
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-2.6.20-13-generic

Using latest feisty.

I have problems with very high loads which makes my system unresponsive and the disk usage is very heavy.

This problem can be reproduced in two ways:

1) Having firefox open, run aptitude dist-upgrade
2) Copy an ISO file to a USB stick (my laptop is using USB 1.1)

It started one week or so ago. It happened with 2.6.20-12-generic also.

This is a IBM Thinkpad T23 with 256 mb ram.

Some of my log files (like kern.log) are screwed up.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :
Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Couldn't upload the kern.log

cp /var/log/kern.log /tmp/
cp: reading `/var/log/kern.log': Input/output error

Maybe caused by an disk error?

Revision history for this message
Mark Reitblatt (mark-reitblatt) wrote :

Please, if you can, attach the output of:
dmesg
lspci -vv
lspci -vvn

That's a rather old laptop. Memory/HDD problems are quite possible. Try running the memcheck app included on the install CD to rule out memory problems.

Changed in linux-source-2.6.20:
assignee: nobody → mark-reitblatt
status: Unconfirmed → Needs Info
Revision history for this message
ChristofferS (ubuntu-curo) wrote :
Revision history for this message
ChristofferS (ubuntu-curo) wrote :
Revision history for this message
ChristofferS (ubuntu-curo) wrote :
Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I corrected the disk errors by running fsck.

I will try to run my edubuntu 6.10 install to see if it behaves the same way.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I've run a memcheck, no errors reported.

I've tried to copy files from NTFS and etx3 partitions in edgy. The load was very high also, but that may be caused by using USB 1.1

Anyway, on edgy the system was responsive, with occasional mouse pointer lockups.

So I think the load is not a problem, I just thought it was.

Like I said the problem on feisty is new. I have been running feisty for a long time. It is has been rock solid, until recently.

Revision history for this message
Mark Reitblatt (mark-reitblatt) wrote :

I'm going to confirm since this doesn't seem to be caused by faulty HW.

Changed in linux-source-2.6.20:
assignee: mark-reitblatt → ubuntu-kernel-team
importance: Undecided → Medium
status: Needs Info → Confirmed
Revision history for this message
Marcus Granado (mrc-gran) wrote :

I can confirm this unresponsiveness in feisty under high load.

My system (laptop portege 2010 with 256MB RAM) also starts thrashing without stopping after a few firefox (sometimes only 3 or 4) windows are opened at the same time (e.g.a few slashdot pages), and ps reports firefox using something like 200MB RAM). The mouse stops moving and the GUI stops responding, and I'm unable even to go to tty1 to try to kill processes (tty1+login+bash take half an hour to load - better than waiting forever for gnome-terminal to open). The system grinds to a halt, the only option is hard reset.

This did not happen in Edgy.

As an interesting side node, I did not notice this problem in another laptop with 512MB RAM running feisty.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I experienced this in Gutsy using the 2.6.22 kernel.

It is hard for me to reproduce but upgrading the system sometimes gets the thrashing started.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I've compiled a vanilla 2.6.21.5 kernel using the config from edgy 2.6.17. It was compiled in edgy because it failed in gutsy because of this bug - I think.

I installed the new kernel and tried to do a aptitude install openoffice and other packages (just to not overload the system).

I got the following output:

Unpacking replacement python-uno ...
dpkg: error processing /var/cache/apt/archives/python-uno_2.2.1-2ubuntu1_i386.deb (--unpack):
 fork failed: Cannot allocate memory
dpkg: error while cleaning up:
 fork failed: Cannot allocate memory
dpkg: error while cleaning up:
 fork failed: Cannot allocate memory

Can this be related to this bug?

If dpkg is allocating huge amounts of memory, the system will start to swap and become unresponsive.

Since a kernel compile will bring the system down, there is potentially other memory leaks.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I've found out that my system was running without swap (using 'free').

On a system with 256 MB RAM total, it will result in an unresponsive system pretty quickly.

I think that there is a bug in both the feisty and gutsy kernel: you are allowed to allocate more memory than you have when running without swap.

The vanilla kernel behaves as it should, IMHO.

Changed in linux-source-2.6.22:
status: New → Invalid
Revision history for this message
Phillip Lougher (phillip-lougher) wrote :

Over-committing memory is normal practice. This is the way the virtual memory subsystem in the kernel works.

The feisty and gutsy kernels should behave no differently to the vanilla kernel (we don't and can't change the behaviour in our kernels).

Changed in linux-source-2.6.22:
status: New → Invalid
Changed in linux-source-2.6.20:
status: Confirmed → Invalid
Revision history for this message
ChristofferS (ubuntu-curo) wrote :

The feisty and gutsy kernels are behaving differently than the vanilla kernel.

Using the _vanilla_ kernel:

"Unpacking replacement python-uno ...
dpkg: error processing /var/cache/apt/archives/python-uno_2.2.1-2ubuntu1_i386.deb (--unpack):
 fork failed: Cannot allocate memory"

Using Ubuntu kernels: unresponsive system.

So how can you close this bug?

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.