From owner-freebsd-bugs Sun Aug 13 11:20: 3 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A42EF37B538 for ; Sun, 13 Aug 2000 11:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA24931; Sun, 13 Aug 2000 11:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sun, 13 Aug 2000 11:20:01 -0700 (PDT) Message-Id: <200008131820.LAA24931@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: misc/20555: 3C509 driver performance problem Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/20555; it has been noted by GNATS. From: Bruce Evans To: xyf@stocke.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/20555: 3C509 driver performance problem Date: Mon, 14 Aug 2000 04:19:48 +1000 (EST) On Fri, 11 Aug 2000 xyf@stocke.com wrote: > ab -c 10 -n 10000 http://192.168.1.27/index.html > > they both give me good performance, the result is almost same, but ... > FreeBSD uses more CPU time than Linux, FreeBSD CPU idle is 40%, > Linux CPU idle is 60%, almost 20% CPU lost in FreeBSD! > > I use "top" command and see FreeBSD cost 34% of CPU time in interrupt > handling, the system time is good, only 12%, my net card is old 3COM 3C509, my question is: > > is this the problem of 3C509 driver in FreeBSD or just is more serious FreeBSD design problem? I dodn't see any problem here, except missing accounting for interrupt time in Linux. I think Linux still counts interrupt time against whatever process (including the idle "process") happens to be running when the interrupt occurs. FreeBSD's idle time of 40% is actually the idle time (modulo jitter in the measurement). Linux's idle time of 60% may be mostly spent handling interrupts. Similarly for system and user times. System and user times under Linux are normally larger than under FreeBSD, because parts of them are actually interrupt times. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message