From owner-freebsd-stable@FreeBSD.ORG Tue Sep 25 08:11:01 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EFDB16A468 for ; Tue, 25 Sep 2007 08:11:01 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 37C1213C461 for ; Tue, 25 Sep 2007 08:11:01 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id 9884E14213D; Tue, 25 Sep 2007 10:51:48 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.3 Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 1E01F14208A; Tue, 25 Sep 2007 10:51:26 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-stable@freebsd.org Date: Tue, 25 Sep 2007 10:48:20 +0300 User-Agent: KMail/1.9.1 References: <01ae01c7fd3e$e6ff28f0$0c00a8c0@Artem> <001301c7fed4$7e5f38c0$0c00a8c0@Artem> In-Reply-To: <001301c7fed4$7e5f38c0$0c00a8c0@Artem> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709251048.20808.nvass@teledomenet.gr> Cc: Artem Kuchin Subject: Re: device polling and weird timer interrupt count from vmstat X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 08:11:01 -0000 On Monday 24 September 2007 20:58, Artem Kuchin wrote: > > What i don't understand is why timer rate on each cpu is 1995? I have > > set it to 1000, not 1995 or 2000. I have seen it showing 2000 on > > another box. > > So > > 1) why not 1000? I can only make assumptions about the doubling, and I don't want to. FreeBSD is not a RTOS and some milliseconds variation is understandable. > > 2) if it is supposed to be doubled (why?) when why not 2000? I can only make assumptions about the doubling, and I don't want to. FreeBSD is not a RTOS and some milliseconds variation is understandable. > > 3) Is timer int really generated on each cpu? Apparently, why do you doubt it? > > Am i really wasting cpu > > time on ~4000 ints per second? You can lower it you know, if you feel that you are waisting that much resources. Ofcourse you'll break your traffic flow that way, since latency will increase. You seem very upset about it, are you sure you want to use polling(4)? it uses much more resources than interrupts. > > 4) does twe driver use polling? whay about twa? how to check it in > > the sources? Polling is only used on some network interface drivers. Polling(4) does not offer generic device-polling facilities. By the way, you know your post has an aggressive sense, don't you? Please don't do this when asking questions and want replies. Such technical comments are not useful to anybody. HTH Nikos