Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757272AbYHZJvp (ORCPT ); Tue, 26 Aug 2008 05:51:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752886AbYHZJvd (ORCPT ); Tue, 26 Aug 2008 05:51:33 -0400 Received: from ey-out-2122.google.com ([74.125.78.24]:58955 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752200AbYHZJvc (ORCPT ); Tue, 26 Aug 2008 05:51:32 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:in-reply-to:user-agent; b=XbUdGnc80aUVHw5Rf0CUN94UNxQrGPpkmTiCyaI8PsT+SH+3j+jni3ohMmH/5823KJ fnIdydwWn/V2CXzroPuEA6Bgty0OLz/wbfFyAFI62F+Bi015nb1lG5+bq4wbh63gWlih YpEzlw1I8lVuuLKjiA8EJs6N2bhJldw/8Udnk= Date: Tue, 26 Aug 2008 09:51:26 +0000 From: Jarek Poplawski To: Denys Fedoryshchenko Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: loaded router, excessive getnstimeofday in oprofile Message-ID: <20080826095126.GA2609@ff.dom.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808220457.40892.denys@visp.net.lb> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1781 Lines: 37 On 22-08-2008 03:57, Denys Fedoryshchenko wrote: > I have loaded router (~650 Mbps In+Out), based on 2xAMD Opteron 248, Sun Fire > X4100. HPET timer available (TSC seems not available on this platform). > Network interfaces is onboard, connected over PCI-X. > > Right now i am using only one processor, cause using only one interface and > interrupts stick to it. Other is almost not used. > At peak time i notice in mpstat, that this processor is almost "dead", and if > i run minor application consuming resources - ping over this router will be > terrible. For me it is clear - system overloaded. I did oprofile, and here is > result (at low load time, but at peak time it is very similar). ... > CPU: AMD64 processors, speed 2193.74 MHz (estimated) > Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit > mask of 0x00 (No unit mask) count 100000 > samples % symbol name > 1031727 37.1736 getnstimeofday > 230457 8.3035 __napi_schedule > 122154 4.4013 __do_softirq > 110036 3.9647 dev_queue_xmit ... > What is bothering me, why getnstimeofday called so much? Even i remove HTB > shaper, it still takes 30-40% of whole vmlinux time. From other > applications - only zebra is running. > Any ideas? This function is really used in many places, and these profiles are not enough at least to me, but it seems you could have a lot of softirqs (and probably hrtimers) scheduling, so maybe you should try if e.g. disabling hrtimers or changing kernel HZ makes any difference. Jarek P. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/