Page 1 of 1

Remove unmounted USB --> 100% Busy CPU, in Tahr64 Puppy

Posted: Tue 09 May 2017, 06:18
by Bushbuck
About one time in 5, when I plug in a USB drive, mount, copy something off, de-mount, and unplug, I get a surge of activity, with all 8 cores reporting 100% in htop -- multiple instances of:

/sbin/udevd --daemon -- resolve-names=early

At first, I thought this was USB3, but I got it with a USB2 device, plugged in a USB2 socket.

Hardware is a new build, Intel i7 4770, 16GB; software Tahr64 Puppy 6.0.5 plus latest upgrades.

One of the side effects of this (maybe) is losing ALSA configuration. I haven't worked out for sure if it's definitely linked.

Meanwhile, copying back the last known good save directory is a good workaround, and this hardware plus Tahr64 Puppy is faster than a scared impala.

Any Ideas? I tried editing /lib/udev/rules.d/69-libmtp.rules, as suggested at
https://unix.stackexchange.com/question ... ing-my-cpu

but the effect came back.

Posted: Tue 09 May 2017, 14:52
by Flash
Does the surge not occur unless you unplug the USB drive?

Posted: Tue 09 May 2017, 14:58
by Bushbuck
Flash wrote:Does the surge not occur unless you unplug the USB drive?
Not as far as I know. I've never seen it on inserting the drive.

Posted: Tue 09 May 2017, 23:53
by Flash
I meant, if you leave the USB drive in after unmounting it, does the surge occur unless you unplug it?

Posted: Wed 10 May 2017, 01:09
by Bushbuck
That's a good question -- I don't think it happens unless I unplug it.

As usual with these intermittent problems, I'm going through a spell of it not happening tonight, even if I try to get it.

I'm starting to think ALSA getting deconfigured might be a different problem that's just showing up at the same time.

(After not seeing a CPU surge, I restarted and got the no-sound symptoms.)

Posted: Fri 19 May 2017, 05:02
by Bushbuck
Got a definite and severe "8 cores mostly 100% busy" example today, after pulling out a de-mounted USB2 MP3 player.

Clicked on the "mount" desktop icon, and it went away! :D

If this always works, I'd call it a good "pragmatic fix". The effect doesn't show up that often, with the adjustment to the config file, but unless you can make it go away, you have to reboot.

I'm going to try running the "mount" GUI program all the time, and see if it's prevention, as well as cure.

Posted: Sun 28 May 2017, 04:27
by Bushbuck
A dull thread, but I think the solution (here, on my hardware) is to always mount and unmount everything via the mount graphical program.

That's looking good.

Thanks, Flash.