The only issue I have, and it's been there for years is the CD-Rom give issues at time, so I just unplug them after the install and a very minor thing that really doesn't do much, but there is a off by one in the USB code somewhere that makes the kernel try to reinitialize the USB all the time and will have the code rerun. For this, I simply disable the USB at the boot -c prompt and it's been great.

You can see it by the load on the server always being 1.10, to 1.40 because of the USB code there, when you just disable it, it's stable at 0.03 to 0.07.

One out of 10 you will reboot the server if you don't disable the USB and it will run normally, meaning, load at 0.04 or so with the USB enable. But this is much more viseable on the V100 then the V120 however.

Hi,

As I had to install a new one today, I thought to send you the steps I do to take care of this USB issue and to eliminate this endless retry by the kernel to configure the USB device and just add to the load of the system at no end.

Without it, you will always have the kernel trying to do configure the USB. Something like:

# uptime
 9:13PM  up 5 mins, 1 user, load averages: 1.08, 0.77, 0.37

The load will never go under 1.08 to 1.10 on a totally idle system.

You simply needs to disable the USB, as long as you don't use it obviously, or connect a USB device to it permanently, or do this to get it to very low load:

# uptime
 9:18PM  up 11 mins, 1 user, load averages: 1.18, 1.02, 0.60
# config -e -u -o /nbsd /bsd
OpenBSD 4.5 (GENERIC) #1898: Sat Feb 28 17:42:44 MST 2009
    dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
History is empty
Enter 'help' for information
ukc> disable 240
240 usb* disabled
ukc> quit
Saving modified kernel.
# rm /obsd ; ln /bsd /obsd && mv /nbsd /bsd
# reboot

The extra steps for copying over the primary kernel: those are done to ensure that there is always a valid copy of the kernel on the disk that the system can boot from should there be a really badly timed power outage or system crash. The idea is not from me, but Nick and you can see it here too: http://openbsd.org/faq/upgrade44.html#upgrade And it does keep an original copy of the kernel should you ever need it in the future and you forgot that you disable the USB device and want it back.

The obsd is untouched and the original one.

Then reboot and the new disable USB in the kernel will not give you more load on your system. Not a big deal really, just one small thing that annoy me some and that I looked at fixing in the kernel, but it's over my head. May be one day I will find a solution, but so far didn't.

Then after the reboot and the system run for the same amount of time, you will never see this load > 1.xx anymore due to the USB part.

# uptime
 9:28PM  up 9 mins, 1 user, load averages: 0.07, 0.12, 0.08

Best,

Daniel

Reply via email to