From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 20 20:05:28 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3B1C106566C; Tue, 20 Sep 2011 20:05:28 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2C5138FC14; Tue, 20 Sep 2011 20:05:27 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so1082971bkb.13 for ; Tue, 20 Sep 2011 13:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=sgUcdFTFJMRmgON8kmnyi122Lx2waymVM5Q8T72Owno=; b=JME+Xbnr4Wu39hyagOJEBcY1om1uMT2r9veF1iHABrRqFxrMs2eQ4cBYxHg3RsgzAJ 3TIgyvZToLv3WJ7iQ8tmX4+XhAAMWv4+v4BfMzTIaFBGn166EMpNr3uwPIT1e9Suv43Y x7izH7ZggQXsn8XC6W67iguClLsrP8LN9bX1E= Received: by 10.204.132.89 with SMTP id a25mr896588bkt.185.1316549127204; Tue, 20 Sep 2011 13:05:27 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id m18sm2508127bkt.12.2011.09.20.13.05.24 (version=SSLv3 cipher=OTHER); Tue, 20 Sep 2011 13:05:25 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E78F1E7.7020502@FreeBSD.org> Date: Tue, 20 Sep 2011 23:04:55 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110910 Thunderbird/6.0.2 MIME-Version: 1.0 To: Andriy Gapon References: <4E78E755.8050404@FreeBSD.org> In-Reply-To: <4E78E755.8050404@FreeBSD.org> X-Enigmail-Version: undefined Content-Type: text/plain; charset=x-viet-vps Content-Transfer-Encoding: 7bit Cc: hackers@FreeBSD.org Subject: Re: SW_WATCHDOG vs new eventtimer code 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: Tue, 20 Sep 2011 20:05:28 -0000 Hi. On 20.09.2011 22:19, Andriy Gapon wrote: > just want to check with you first if the following makes sense. > I use SW_WATCHDOG on one of the test machines, which was recently updated to > from stable/8 to head. Now it seems to get seemingly random watchdog events. > My theory is that this is because of the eventtimer logic. > If during idle period we accumulate enough timer ticks and then run all those > ticks very rapidly, then the SW_WATCHDOG code may get an impression that it was > not patted for many real ticks. > Not sure what would be the best way to make SW_WATCHDOG happier/smarter. Eventtimer code now set to generate interrupts at least 4 times per second for each CPU. As soon as SW_WATCHDOG only handles periods more then one second, I would say it should not be hurt. I would try to add some debug there to see what's going on (how big the tick busts are). I'll try it to do it tomorrow. -- Alexander Motin