This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash often consume a cpu.


On Sun, Feb 27, 2000 at 04:15:41PM -0500, Chris Faylor wrote:
>On Sat, Feb 26, 2000 at 04:58:24PM +0900, Kazuhiro Fujieda wrote:
>>>>> On Fri, 25 Feb 2000 20:15:06 -0500
>>>>> Chris Faylor <cgf@cygnus.com> said:
>>
>>> I've made a few more changes.  Please try the next snapshot.
>>
>>I tried your fixes through `cvs update'. Unfortunately, the
>>fixes make nothing about the problem, too. I replaced the strace
>>log with one which may be more helpful for your debugging.
>>
>>In the strace log, I executed the bash command without any
>>environment variables nor /etc/{termcap,passwd,group}, and
>>simply typed `a\n' three times. The bash didn't consume a cpu
>>until two times. After I typed three times, it began to do so.
>>
>>Anyway, my NT box has two CPU. Multi-processor systems hit
>>problems about race conditions more often than uni-processor
>>ones.
>
>I do all of my debugging on an NT with two CPUs and I'm not seeing
>this.
>
>Regardless, I think I see the problem.  When things get into this
>state, could you try hitting a "CTRL-C" at the bash prompt and see
>if the CPU utilization goes back down?

FWIW, I've made a few more changes and attempted to eliminate a couple
more races in the signal code.  Please let me know if this changes any
behavior since I can't duplicate what you're seeing.

cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]