From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 21 08:16:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFF0316A41F for ; Mon, 21 Nov 2005 08:16:32 +0000 (GMT) (envelope-from kprokazov@s-v-r.net) Received: from globalmail.svr.net.ua (globalmail.svr.net.ua [212.113.40.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8840F43D4C for ; Mon, 21 Nov 2005 08:16:31 +0000 (GMT) (envelope-from kprokazov@s-v-r.net) Received: from [10.1.2.12] (helo=svr012) by globalmail.svr.net.ua with smtp (Exim 4.52) id 1Ee6qk-0006y4-DY for freebsd-hackers@freebsd.org; Mon, 21 Nov 2005 10:16:30 +0200 Message-ID: <0a7a01c5ee75$b300b700$0c02010a@svr012> From: "Konstantin Prokazoff" To: Date: Mon, 21 Nov 2005 10:29:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 X-Mailman-Approved-At: Mon, 21 Nov 2005 12:30:11 +0000 Subject: poll()/select() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 08:16:33 -0000 Welcome everybody, have a strange issue under 5.x/6.x (checked). When using a poll()/select() mechanism, which in kernel based on selrecord/selwakeup (pollscan, kern_select) functions, we have deadlock on sellock mutex on heavy load (recursive lock on non-recursive mutex). Have anyone seen this? Deadlock can be reached only if kernel w'be compiled with debugger, because in different case system locks, your can't login, etc. Maybe one path to resolve - change behavour of sched_lock & sellock mutexes block/unblock order. Thnx in advance & for comments. Best regards, Konstantin Prokazoff Center Of Excellence, S_V_R Ltd., Kyiv HQs, Ukraine Official business-partner & DevConnect member of Avaya Inc. Regional development & support center of Digium Inc. Tel. +38 044 244 1181, ext. 1038 Fax. +38 044 234 0455