Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#69 closed defect (fixed)

samba-server as PDC - 100% CPU load ~every 1-2 day

Reported by: digi Owned by: Paul Smedley
Priority: critical Milestone: Samba Server for eCS (OS/2) 1.1.0
Component: Samba Server Version: 3.0.32
Keywords: Cc:

Description

PDC, about 100 users

100% CPU load every 1-2 day with smbd.exe process. Logs and config attached.

Attachments (1)

samba-logs.zip (115.0 KB ) - added by digi 16 years ago.
config, log-files

Download all attachments as: .zip

Change History (6)

by digi, 16 years ago

Attachment: samba-logs.zip added

config, log-files

comment:1 by Silvan Scherrer, 16 years ago

i did some analyse to the problem, as a customer of mine has it also. i found out that it looped at read_data, which calls sys_read in system.c. it happened while the system had high cpu usage anyway (mostly tcp/ip traffic). conclusion: high cpu usage and a client connects to samba, samba opens a new PID, but the PID gets in a wait status due to the high cpu usage. now sys_read loops while there is no data and EAGIAN. if another client wants to connect, a new PID is created and also this PID stays in the loop. and so forth with every new connection. samba ends the PID after around 5 minutes, but because there are more then one it will never finish with ending all of them and cpu stays at 100% cpu.

comment:2 by Silvan Scherrer, 16 years ago

this ticket is related to ticket #71

comment:3 by Silvan Scherrer, 16 years ago

Changeset http://svn.netlabs.org/samba/changeset/170 fixes this issue.

final fix after a lot of fiddeling around :)

comment:4 by Silvan Scherrer, 16 years ago

Resolution: fixed
Status: newclosed

comment:5 by Herwig Bauernfeind, 16 years ago

Version: 3.0.32
Note: See TracTickets for help on using tickets.