100% CPU load

Stefan (metze) Metzmacher metze at samba.org
Thu Jan 7 09:41:37 MST 2010


Rusty Russell schrieb:
> On Sat, 19 Dec 2009 02:49:51 am Stefan (metze) Metzmacher wrote:
>> Hi Ronnie,
>>
>> I've found another problem with ctdbd spinning
>> with 100% CPU load reading 0 bytes from the log child.
>>
>> ctdb_log_handler()
>>
>> gets n = 0 from read and log is log_state.
>>
>> I think it's wrong that we don't test for n <= 0 and not error out.
>>
>> I don't understand the code enough to fix it for the log == log_state.

I've found the bugs.

See
http://gitweb.samba.org/?p=metze/ctdb/wip.git;a=shortlog;h=refs/heads/master-backtrace

I'll clean this up tomorrow.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100107/b1a82ad7/attachment.pgp>


More information about the samba-technical mailing list