Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Very slow response for `eject cd0' command



On Tue, Sep 01, 2009 at 12:54:43PM +0100, Iain Hibbert wrote:
> On Tue, 1 Sep 2009, Nicolas Joly wrote:
> 
> > I do see the problem on at least 3 of my amd64 machines where `eject
> > cd0' takes about 4 min to succeed ... Result does not change if there
> > is a disk in the drive.
> > [...]
> > Anyone else ?
> 
> yes, running 5.99.15 with i386 (dual core)
> 
>   galant: {3} time eject cd0
>   0.0u 0.0s 4:00.89 0.0% 0+0k 1+0io 0pf+0w
>   galant: {4} /usr/bin/time eject cd0
>         240.66 real         0.00 user         0.00 sys
> 
> it seems to spend its time in select() according to top but I don't see
> any select in the source. I also see this on the console just before it
> does eject

A further look show that problems comes from amd(8) support for this
command... Recompiling it with `AMD_SUPPORT=no' make it works fast
again.

njoly@lanfeust [usr.bin/eject]> make cleandir
[...]
njoly@lanfeust [usr.bin/eject]> make dependall AMD_SUPPORT=no
[...]
njoly@lanfeust [usr.bin/eject]> time ./obj.amd64/eject cd0
./obj.amd64/eject cd0  0.00s user 0.00s system 0% cpu 3.274 total
njoly@lanfeust [usr.bin/eject]> time ./obj.amd64/eject -l cd0
./obj.amd64/eject -l cd0  0.00s user 0.00s system 0% cpu 6.664 total

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index