I'm on Mac OS X 10.4.3 and using

    Lftp | Version 3.1.0 | Copyright (c) 1996-2004 Alexander V. Lukyanov


and I enter

lftp

hit enter

and get the lftp prompt.. that's all. When I check my activity monitor lftp
is using an entire CPU (99%) and I have a 4-way!  I assume it's just waiting
for command input so the question is.. is there a cheaper way to do so?


Here's the sample trace
from the Apple activity monitor

Analysis of sampling pid 764 every 10.000000 milliseconds
Call graph:
    294 Thread_100f
      294 start
        294 _start
          294 main
            294 WaitDone(CmdExec*)
              294 SMTask::Schedule()
                294 CmdExec::Do()
                  294 ReadlineFeeder::NextCmd(CmdExec*, char const*)
                    294 lftp_readline
                      294 readline
                        294 readline_internal
                          294 readline_internal_charloop
                            294 readline_internal_char
                              294 rl_read_key
                                294 lftp_rl_getc(__sFILE*)
                                  210 SMTask::Schedule()
                                    198 CharReader::Do()
                                      137 fcntl
                                        137 fcntl
                                      59 read
                                        59 read
                                      2 PollVec::AddFD(int, int)
                                        2 PollVec::AddFD(int, int)
                                    8 SMTask::Schedule()
                                    2 SMTask::Enter(SMTask*)
                                      2 SMTask::Enter(SMTask*)
                                    1 LsCache::ExpireHelper::Do()
                                      1 TimeDiff::Seconds() const
                                        1 TimeDiff::Seconds() const
                                    1 Time::SetToCurrentTime()
                                      1 xgettimeofday(long*, int*)
                                        1 dyld_stub_gettimeofday
                                          1 dyld_stub_gettimeofday
                                  79 poll
                                    79 poll
                                  2 LsCache::ExpireHelper::Do()
                                    2 LsCache::ExpireHelper::Do()
                                  1 0x0
                                    1 DummyProto::Do()
                                      1 DummyProto::Do()
                                  1 CharReader::Do()
                                    1 CharReader::Do()
                                  1 StatusLine::Do()
                                    1 StatusLine::Do()

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        fcntl        137
        poll        79
        read        59
        SMTask::Schedule()        8
Sample analysis of process 764 written to file /dev/stdout
Sampling process 764 each 10 msecs 300 times


Reply via email to