loaded router, excessive getnstimeofday in oprofile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Denys Fedoryshchenko
Date: Thursday, August 21, 2008 - 6:57 pm

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
CPU_CLK_UNHALT...|
  samples|      %|
------------------
  2679376 71.9851 vmlinux
   287212  7.7163 e1000
   278674  7.4870 ip_tables
   259923  6.9832 nf_conntrack
    29699  0.7979 iptable_nat
    26752  0.7187 nf_nat
    26093  0.7010 nf_conntrack_ipv4
    16525  0.4440 iptable_mangle
    14988  0.4027 oprofiled


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
88800     3.1995  net_rx_action
71163     2.5640  ip_route_input
52232     1.8819  local_bh_enable
43804     1.5783  get_next_timer_interrupt
43387     1.5633  ip_forward
35501     1.2791  nf_iterate
35212     1.2687  __slab_alloc
34652     1.2485  default_idle
32375     1.1665  kfree
28127     1.0134  kmem_cache_alloc

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?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 21, 6:57 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 21, 7:23 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 2:51 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 3:29 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 3:47 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 3:49 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:07 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:15 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 4:16 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 4:32 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:32 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Tue Aug 26, 1:14 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Tue Aug 26, 1:44 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Tue Aug 26, 1:51 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Wed Aug 27, 5:09 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Wed Aug 27, 5:36 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Wed Aug 27, 7:00 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Wed Aug 27, 7:23 am)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Wed Aug 27, 9:17 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Wed Aug 27, 10:14 am)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Wed Aug 27, 10:27 am)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 2:34 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 3:18 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 5:48 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Jason Uhlenkott, (Wed Aug 27, 7:39 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 8:10 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Wed Aug 27, 8:35 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Joe Malicki, (Wed Aug 27, 11:28 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 1:49 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 8:02 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 9:48 am)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Thu Aug 28, 11:57 am)
Re: loaded router, excessive getnstimeofday in oprofile, Ilpo Järvinen, (Thu Aug 28, 12:01 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:25 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:31 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:36 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Thu Aug 28, 12:37 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:42 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:55 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:59 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 1:32 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 1:47 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Fri Aug 29, 8:43 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Fri Aug 29, 1:43 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Valdis.Kletnieks, (Sun Aug 31, 7:39 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Sun Aug 31, 8:51 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Valdis.Kletnieks, (Sun Aug 31, 9:08 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Sun Aug 31, 9:10 pm)