45s login delay
Rob Landley
rob at landley.net
Wed Mar 16 05:25:26 WST 2011
On 03/15/2011 08:02 AM, Magnus Nilsson wrote:
> Sorry, I was unclear - it's only 100% busy during those 45s.
>
> This is what it looks like if I first start the load monitor (-r outputs
> 1 sample/second), then start to log in from a remote ssh client:
> # cpu -r
> CPU: busy 0% (system=0% user=0% nice=0% idle=100%)
> CPU: busy 24% (system=4% user=19% nice=0% idle=75%)
> CPU: busy 100% (system=1% user=98% nice=0% idle=0%)
> CPU: busy 100% (system=0% user=100% nice=0% idle=0%)
> <39 repeats of the above busy 100%>
> CPU: busy 100% (system=2% user=97% nice=0% idle=0%)
> CPU: busy 100% (system=8% user=91% nice=0% idle=0%)
> CPU: busy 100% (system=22% user=77% nice=0% idle=0%)
> CPU: busy 100% (system=0% user=100% nice=0% idle=0%)
> CPU: busy 100% (system=0% user=100% nice=0% idle=0%)
> CPU: busy 67% (system=8% user=58% nice=0% idle=32%)
> CPU: busy 0% (system=0% user=0% nice=0% idle=100%)
>
> Thanks for the tip on prebuilt busybox Rob, but would I need it in flat
> format. I don't think arm-elf-elf2flt can do that without reloc info or?
> And from the above I don't think it would add much info.
>
> My question is:
> Is 45s reasonable on a 192MHz cpu,
No. I had a 200mhz celeron that did 3.2 ssh logins per second ten years
ago. (I did a VPN built on top of ssh, dynamic port forwarding, and
netcat, and had to benchmark it.) Going from i686 to arm could cost you
some performance (ever since the pentium it's had multiple execution
cores, speculative execution, instruction reordering and such), but
there's no _way_ that's more than an order of magnitude in performance.
I could see 4 seconds, but but 45 seconds is pathological. Something
is wrong.
My next step would be "stick printfs in the source code and see where
the big delay is".
Hmmm... Do they still _make_ CPUs with no L1 cache?
Rob
More information about the Dropbear
mailing list