USB device leads to PC freeze

Hi,

michael@linux-qz4c:~> zypper lr -d
# | Alias                                  | Name                        | Enabled | Refresh | Priority | Type   | URI                                                                         | Service
--+----------------------------------------+-----------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------+--------
1 | Updates-for-openSUSE-11.4-11.4-1.36    | openSUSE-11.4-update        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org:80/update/11.4/                                |        
2 | google-earth                           | google-earth                | Yes     | Yes     |   99     | rpm-md | http://dl.google.com/linux/earth/rpm/stable/x86_64                          |        
3 | openSUSE-11.3_libdvdcss                | openSUSE-11.3 libdvdcss     | Yes     | Yes     |   99     | rpm-md | http://www.opensuse-guide.org/repo/11.3/                                    |        
4 | openSUSE-11.4-non-oss                  | openSUSE-11.4-non-oss       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org:80/distribution/11.4/repo/non-oss/             |        
5 | openSUSE-11.4-oss                      | openSUSE-11.4-oss           | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org:80/distribution/11.4/repo/oss/                 |        
6 | openSUSE-11.4_Mozilla                  | openSUSE-11.4 Mozilla       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org:80/repositories/mozilla/openSUSE_11.4/         |        
7 | openSUSE-Packman-Tumbleweed-Essentials | openSUSE-Tumbleweed-Packman | Yes     | Yes     |   99     | rpm-md | http://packman.iu-bremen.de:80/suse/openSUSE_Tumbleweed/Essentials/         |        
8 | openSUSE-Tumbleweed                    | openSUSE-Tumbleweed         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org:80/repositories/openSUSE:/Tumbleweed/standard/ |        
michael@linux-qz4c:~> 

Regards
Michael

Only other idea I have is.
Try switching back to 11.4 proper or at least the kernel
See if that changes anything
I seem to recall this helping someone else, but I can’t recall why.

This would drive me so nuts that I would make a copy of the root partition’s filesystem tree (so I could write it back if I broke it in the next steps). Then I would disable 2, 3 and 6 then add back in the opensuse-11.4-packman then run “zypper dup” to take it right back to pure 11.4. Then I’d test to see if the problem was fixed (likely, except maybe all those kernels look odd). Then I’d hook back in the correct repos exactly and run a simple zypper dup to go forwards to a new Tumbleweed. If that failed to fix it I’d reinstall 11.4 on a formatted partition, hook in the right repos and make a new Tumbleweed from scratch.

Note: I’m not recommending that for you keellambert, just saying I’d be nuts and couldn’t let it ride.

In fact I’m going to do just that cycle – just to see what happens.

There it goes – 502 packages switching. If you don’t hear from me for a couple of days, it crashed LOL

Edit: and couple hours later: been down to 11.4 and back to Tumbleweed again, circa 1000 packages changed during the round trip. No hiccups at all. IMO all that’s needed are the correct repos to go down and the correct repos to go back up.

PS just noticed eugeniak1 sems to have a light on this problem, see end of thread here: Problems with USB after kernel upgrading

Hi,

observation

cpu activity after removal of usb memory stick is :-

- udevd        24%
- udevd         5%
- dbus-daemon   5%
- udisks-daemon 4%
- usb-storage   1%
- total CPU usage after dismounting but before physical removing of usb mem stick 49%
- total CPU usage after physical removing of usb mem stick 68%
- after about 10 minutes total CPU activity drops to <1%

this behaviour is repeatable

is this normal behaviour, related to the OS freeze or related to other issues?

Kernel installed is Linux 2.6.38.6-30-desktop x86_64 : after update of 11/05/22

Regards
michael

We’re up to 2.6.39-30.1. I read somewhere that a later kernel fixed the bug. (but can’t remember that with any clarity at all).

Hi,

More accurately my ‘Installed Version is kernel-desktop 2.6.39-30.1 Sat 21 May 2011 18:34:22 CEST’

I’ve also read that this problem was solved with kernel 2.6.39-29
but it did not solve anything for me

Regards
michael

Hi,

Observation

The following messages still appears if the usb memory stick is removed within about 90 seconds of the umount

michael@linux-qz4c:> 
Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.531589] Oops: 0000 #1] PREEMPT SMP 

Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.531595] last sysfs file: /sys/devices/pci0000:00/0000:00:12.2/usb1/1-6/1-6:1.0/host7/target7:0:0/7:0:0:1/block/sr2/uevent

Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.531783] Stack:

Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.531809] Call Trace:

Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.531999] Code: 48 c7 86 98 00 00 00 00 00 00 00 31 c0 48 83 c4 08 c3 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 08 48 8b 47 18 48 8b 00 

Message from syslogd@linux-qz4c at May 27 17:12:57 ...
 kernel: 7065.532003] CR2: 0000000000000068
michael@linux-qz4c:

Regards
michael

Hi,

Lock-up and usb problems solved???

Found only hal-32bit was installed.

After hal installed all symptoms have disappeared.

Early days yet!

Regards
michael

Great news!

Hi,

With haldaemon enabled in 'System Services (Runlevel): Services: Simple Mode
usb access is now ok.

CPU usage now drops to <1% within 20-30 second after physical removal of usb
memory stick. From then on any new usb device is recognised.

No more OS lock-ups encountered with quick exchanges of usb memory devices.

Any ideas on why hal was not installed on update to openSUSE11.4/Tumbleweed or
why it was not recognised as needed dependency is Yast?

Regards
michael

Hi,

With today’s update of KDE to 4.6.4 (4.6.4) “release 4”, the
–usb memory stick problems and
–PC freeze
appear to be fixed.

Now the CPU usage,
-jumps by 20% when a usb memory stick is inserted and mounted
-momentarily jumps by another 20% when the usb memory stick is removed
-and returns by to normal after the stick is removed, within 15-20sec.

Regards
michael (much happier)

NB: have not yet removed hal as Gimp and gstream seem to depend on it.

Hi,

OS still ok after deleting packages hal, gimp-module-hal, gstreamer-0_10-plugin-hal.
Did not delete hal-32bit due to wine dependencies.
OS details as follows for first mounting of usb memory stick after booting.
On subsequent usb memory u/mounts, recovery time significantly shorter.

after start-up and set-up
=======================
top - 14:19:25 up 16 min,  3 users,  load average: 0.00, 0.04, 0.08
Tasks: 157 total,   1 running, 156 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.9%us,  0.7%sy,  0.1%ni, 96.0%id,  1.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3797276k total,  1486608k used,  2310668k free,    57920k buffers
Swap:  2104476k total,        0k used,  2104476k free,   698764k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                        
 1542 root      20   0  297m 141m  23m S    4  3.8   0:31.32 Xorg                                                                                                                                                                           
 2133 michael   20   0  386m  24m  16m S    2  0.7   0:19.12 ksysguard                                                                                                                                                                      
 2897 michael   20   0 1858m 157m  84m S    2  4.3   0:08.06 soffice.bin                                                                                                                                                                    
 2960 michael   20   0  8712 1116  780 R    2  0.0   0:00.01 top                                                                                                                                                                            
    1 root      20   0 12460  792  648 S    0  0.0   0:00.93 init                                                                                                                                                                           
    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                                                                                                                                                                       
    3 root      20   0     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0                                                                                                                                                                    
    6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                                                                                                                                                                    
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                                                                                                                                     
    8 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1                                                                                                                                                                    
   10 root      20   0     0    0    0 S    0  0.0   0:00.01 ksoftirqd/1                                                                                                                                                                    
   12 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1

after mounting usb memory stick (ext4)
======================================
top - 14:28:26 up 25 min,  3 users,  load average: 1.22, 0.84, 0.42
Tasks: 170 total,   1 running, 169 sleeping,   0 stopped,   0 zombie
Cpu(s): 12.1%us,  9.5%sy,  0.4%ni, 73.8%id,  3.9%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:   3797276k total,  1523704k used,  2273572k free,    59476k buffers
Swap:  2104476k total,        0k used,  2104476k free,   702960k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                        
 1219 messageb  20   0 28336 1748  820 S   11  0.0   0:39.31 dbus-daemon                                                                                                                                                                    
  432 root      16  -4 43596  22m  472 S    9  0.6   0:16.00 udevd                                                                                                                                                                          
 1941 root      20   0  124m 3964 2980 S    8  0.1   0:31.44 udisks-daemon                                                                                                                                                                  
 1264 root      18  -2 21548 1404  492 S    7  0.0   0:23.79 udevd                                                                                                                                                                          
 2970 root      20   0     0    0    0 S    3  0.0   0:09.92 usb-storage                                                                                                                                                                    
 1883 michael   20   0  549m  27m  17m S    2  0.7   0:07.49 kded4                                                                                                                                                                          
 1961 michael   20   0  673m  35m  19m S    2  1.0   0:07.22 knotify4                                                                                                                                                                       
 1964 michael   20   0  729m  47m  27m S    2  1.3   0:12.85 plasma-desktop                                                                                                                                                                 
 2104 michael   20   0  668m  38m  24m S    2  1.1   0:08.59 krunner                                                                                                                                                                        
 2133 michael   20   0  386m  24m  16m S    2  0.7   0:30.98 ksysguard                                                                                                                                                                      
 2593 michael   20   0  468m  32m  21m S    2  0.9   0:13.10 dolphin                                                                                                                                                                        
 1542 root      20   0  299m 144m  23m S    2  3.9   0:46.00 Xorg   

after umounting and removal of usb memory stick (ext4)
=======================================================
top - 14:29:59 up 27 min,  3 users,  load average: 0.85, 0.80, 0.44
Tasks: 166 total,   1 running, 165 sleeping,   0 stopped,   0 zombie
Cpu(s): 26.5%us, 19.2%sy,  0.0%ni, 54.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3797276k total,  1530256k used,  2267020k free,    58564k buffers
Swap:  2104476k total,        0k used,  2104476k free,   703352k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                        
  432 root      16  -4 48612  27m  472 S   27  0.7   0:28.73 udevd                                                                                                                                                                          
 1219 messageb  20   0 29060 2260  820 S   19  0.1   0:49.67 dbus-daemon                                                                                                                                                                    
 1264 root      18  -2 21548 1408  496 S   15  0.0   0:30.84 udevd                                                                                                                                                                          
 1941 root      20   0  124m 4028 2984 S   13  0.1   0:39.68 udisks-daemon                                                                                                                                                                  
 1961 michael   20   0  673m  35m  19m S    5  1.0   0:09.21 knotify4                                                                                                                                                                       
 1964 michael   20   0  729m  47m  27m S    5  1.3   0:15.21 plasma-desktop                                                                                                                                                                 
 2132 michael   20   0  458m  23m  15m S    4  0.6   0:08.04 kmix                                                                                                                                                                           
 2150 michael   20   0  356m  19m  14m S    4  0.5   0:08.23 knetworkmanager                                                                                                                                                                
 1883 michael   20   0  549m  27m  17m S    4  0.7   0:09.47 kded4                                                                                                                                                                          
 2104 michael   20   0  668m  38m  24m S    4  1.1   0:10.61 krunner                                                                                                                                                                        
 2593 michael   20   0  468m  32m  21m S    4  0.9   0:16.71 dolphin                                                                                                                                                                        
 1542 root      20   0  299m 144m  23m S    3  3.9   0:49.22 Xorg 
                                                                                                                                                                           
system back to normal (~120sec later)
=====================
top - 14:32:12 up 29 min,  3 users,  load average: 0.41, 0.64, 0.43
Tasks: 158 total,   2 running, 156 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.9%us,  0.2%sy,  0.0%ni, 98.6%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3797276k total,  1514308k used,  2282968k free,    58724k buffers
Swap:  2104476k total,        0k used,  2104476k free,   701312k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                        
 2133 michael   20   0  386m  24m  16m S    2  0.7   0:35.49 ksysguard                                                                                                                                                                      
 1542 root      20   0  299m 144m  23m S    1  3.9   0:53.50 Xorg                                                                                                                                                                           
 2152 michael   20   0  8816 1088  772 S    1  0.0   0:06.62 ksysguardd                                                                                                                                                                     
11759 michael   20   0  8716 1140  800 R    1  0.0   0:00.03 top                                                                                                                                                                            
 1512 root      20   0 10376 4480  140 S    0  0.1   0:01.76 haveged                                                                                                                                                                        
 1961 michael   20   0  673m  35m  19m S    0  1.0   0:14.35 knotify4                                                                                                                                                                       
 2104 michael   20   0  668m  38m  24m S    0  1.1   0:15.47 krunner                                                                                                                                                                        
    1 root      20   0 12460  792  648 S    0  0.0   0:00.94 init                                                                                                                                                                           
    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                                                                                                                                                                       
    3 root      20   0     0    0    0 S    0  0.0   0:04.37 ksoftirqd/0                                                                                                                                                                    
    6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                                                                                                                                                                    
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0

Regards
michael

The CPU increased power useage,
multiple usb memory mounting / dismounting,
problems seem to be now to be resolved.

Was this due to the,

  • kernel-desktop-3.0.1-40.1.x86_64 update?
    or
  • filesystem-12.1-29.1.x86_64 update?

OS: AMD Phenom™ II X4 940 Processor, 3,2 GHz
Linux 3.0.1-40-desktop x86_64, openSUSE 11.4 (x86_64) + Tumbleweed, KDE 4.7.0 release 10
ATI Radeon HD 3200 Graphics, 2D driver: fglrx 3D driver: ATI (11.7)