[SLL] limit on number of files in a directory and hashed dir vs. flat dir file access time
Robert Woodcock
rcw at blarg.net
Wed Nov 7 16:04:28 PST 2007
On Wed, Nov 07, 2007 at 07:51:48AM -0800, Chuck Wolber wrote:
> There are two kinds of reboots. For this test, you need the power reset
> kind. A soft reboot is all you have available to you in software.
Oh, ok.
If you have a managed UPS you can dedicate to the task, you could set up NUT
on it and then use a command like 'upsmon -c fsd' to interrupt power and
bring it back.
Otherwise, you're gonna have to find a hardware output line (probably on the
serial/parallel port) that boots up in a known state (preferably low until
used), and I can see where Chuck is going with the relay and capacitor
(modify a power cord so the hot wire goes through the common and normally
connected pins, and put the capacitor across the relay coil so it takes some
time to discharge, keeping the relay on and the power off for a second or two)
although every time I've tried driving a relay through an I/O line, I've
used a transistor such as a 2N3904/2N3906 with a 10k resistor to limit
current from the I/O line to the base pin, and used the transistor to switch
current from 12VDC across the relay coil to ground.
Maybe for an alternate approach, turn the PC off using ACPI, feed the relay
coil using the 12VDC line off the power supply, and have the relay's normally
connected and common lines feed to the motherboard's power on pins. Power
goes off, relay makes continuity between the power on pins, power comes on,
relay breaks continuity between the power on pins (just like you'd pressed
and released the power button). Putting a small-value (say, 100 ohm)
resistor in series with the relay coil and a capacitor in parallel with the
coil would provide some time delay here.
--
Robert Woodcock - rcw at blarg.net
"Obviously some modifications are going to be made in order to make sure
that national security is intact" -- Andy Radlow, Vodafone AirTouch
More information about the linux-list
mailing list