From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 4 15:17:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 611F916A417; Thu, 4 Oct 2007 15:17:57 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 973BD13C4AA; Thu, 4 Oct 2007 15:17:56 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l94FFjiB014021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 4 Oct 2007 18:16:05 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l94FFO6l006829; Thu, 4 Oct 2007 18:15:42 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l94FFLBj006828; Thu, 4 Oct 2007 18:15:21 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 4 Oct 2007 18:15:21 +0300 From: Giorgos Keramidas To: Vlad GALU Message-ID: <20071004151520.GB6684@kobe.laptop> References: <012101c804e5$efa7e9c0$b6db87d4@multiplay.co.uk> <86abr1yb68.fsf@ds4.des.no> <86641pyanc.fsf@ds4.des.no> <86wsu5wuz3.fsf@ds4.des.no> <20071004144315.GA6377@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.978, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.42, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Dag-Erling Sm?rgrav , gepu@flow.rdsnet.ro, Steven Hartland , freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: How to enable more than 256 pty's? 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: Thu, 04 Oct 2007 15:17:57 -0000 On 2007-10-04 18:05, Vlad GALU wrote: >On 10/4/07, Giorgos Keramidas wrote: >>On 2007-10-02 15:41, Vlad GALU wrote: >>>On 10/2/07, Dag-Erling Sm?rgrav wrote: >>>>"Vlad GALU" writes: >>>>> The symptoms were exhibited even with rev. 1.16. I've CC'ed him so >>>>> he can catch up with the thread. >>>> >>>> Which symptoms? I can no longer reproduce the hang-on-close bug. >>> >>> Strangely enough, me neither. In his case, allocated pts' wouldn't >>> get deallocated once the sessions ended. >> >> There was an old bug, which caused pts consumers to get stuck in >> "devdrn". This has been fixed, AFAICT, a long time ago. At least, I >> can't reproduce it any more with the usual tests: >> >> * Closing xterm windows. >> >> * Closing telnet sessions. >> >> * Exiting from screen(1) windows. > > Weird. 3 people on this thread already saw the symptoms :( It must be a different problem, then. I used to have a local patch which reverted the devdrn wait in kern_conf.c:destroy_devl() near the lines: 753 while (dev->si_threadcount != 0) { 754 /* Use unique dummy wait ident */ 755 msleep(&csw, &devmtx, PRIBIO, "devdrn", hz / 10); 756 } but the original problem I was seeing seems to have been fixed. At least, I can't reproduce it was easily anymore...