netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jeremy M. Guthrie" <jeremy.guthrie@berbee.com>
To: netdev@oss.sgi.com
Cc: Robert Olsson <Robert.Olsson@data.slu.se>,
	Stephen Hemminger <shemminger@osdl.org>
Subject: Re: V2.4 policy router operates faster/better than V2.6
Date: Wed, 5 Jan 2005 11:35:00 -0600	[thread overview]
Message-ID: <200501051135.03493.jeremy.guthrie@berbee.com> (raw)
In-Reply-To: <16860.5674.612383.986202@robur.slu.se>

[-- Attachment #1: Type: text/plain, Size: 6120 bytes --]

On Wednesday 05 January 2005 10:30 am, Robert Olsson wrote:
> Jeremy M. Guthrie writes:
>  > Yeah, the load will be high.  I'm expecting this to be watching ~ 750
>  > mbps by next December.  The app profiles all traffic going in and out of
>  > our data centers.
>  BW itself or pps is that not much of challange as handling of concurrent
>  flows.
Roger that.

>  > I'm not showing the /proc/net/rt_cache_stat file.  Was there a kernel
>  > option I need to recompile with for rt_cache_stat to show up in proc?
>
>  No it's there without any options. Would be nice to the output from rtstat
Output from rtstat:
rtstat
fopen: No such file or directory

cd /proc/net/
ls -la
total 0
dr-xr-xr-x   5 root root 0 2005-01-04 08:53 .
dr-xr-xr-x  72 root root 0 2005-01-04 08:53 ..
-r--r--r--   1 root root 0 2005-01-05 10:32 anycast6
-r--r--r--   1 root root 0 2005-01-05 10:32 arp
dr-xr-xr-x   2 root root 0 2005-01-05 10:32 atm
-r--r--r--   1 root root 0 2005-01-05 10:32 dev
-r--r--r--   1 root root 0 2005-01-05 10:32 dev_mcast
dr-xr-xr-x   2 root root 0 2005-01-05 10:32 dev_snmp6
-r--r--r--   1 root root 0 2005-01-04 08:53 if_inet6
-r--r--r--   1 root root 0 2005-01-05 10:32 igmp
-r--r--r--   1 root root 0 2005-01-05 10:32 igmp6
-r--r--r--   1 root root 0 2005-01-05 10:32 ip6_flowlabel
-r--r--r--   1 root root 0 2005-01-05 10:32 ip_mr_cache
-r--r--r--   1 root root 0 2005-01-05 10:32 ip_mr_vif
-r--r--r--   1 root root 0 2005-01-05 10:32 ip_tables_matches
-r--r--r--   1 root root 0 2005-01-05 10:32 ip_tables_names
-r--r--r--   1 root root 0 2005-01-05 10:32 ip_tables_targets
-r--r--r--   1 root root 0 2005-01-05 10:32 ipv6_route
-r--r--r--   1 root root 0 2005-01-05 10:32 mcfilter
-r--r--r--   1 root root 0 2005-01-05 10:32 mcfilter6
-r--r--r--   1 root root 0 2005-01-05 10:32 netlink
-r--r--r--   1 root root 0 2005-01-05 10:32 netstat
-r--r--r--   1 root root 0 2005-01-05 10:32 psched
-r--r--r--   1 root root 0 2005-01-05 10:32 raw
-r--r--r--   1 root root 0 2005-01-05 10:32 raw6
-r--r--r--   1 root root 0 2005-01-05 10:32 route
dr-xr-xr-x   6 root root 0 2005-01-05 10:32 rpc
-r--r--r--   1 root root 0 2005-01-05 10:32 rt6_stats
-r--r--r--   1 root root 0 2005-01-05 10:32 rt_acct
-r--r--r--   1 root root 0 2005-01-05 10:32 rt_cache
-r--r--r--   1 root root 0 2005-01-05 10:32 snmp
-r--r--r--   1 root root 0 2005-01-05 10:32 snmp6
-r--r--r--   1 root root 0 2005-01-05 10:32 sockstat
-r--r--r--   1 root root 0 2005-01-05 10:32 sockstat6
-r--r--r--   1 root root 0 2005-01-05 10:32 softnet_stat
dr-xr-xr-x   2 root root 0 2005-01-05 10:32 stat
-r--r--r--   1 root root 0 2005-01-04 08:53 tcp
-r--r--r--   1 root root 0 2005-01-05 10:32 tcp6
-r--r--r--   1 root root 0 2005-01-05 10:32 tr_rif
-r--r--r--   1 root root 0 2005-01-04 08:53 udp
-r--r--r--   1 root root 0 2005-01-05 10:32 udp6
-r--r--r--   1 root root 0 2005-01-05 10:32 unix
-r--r--r--   1 root root 0 2005-01-05 10:32 wireless

>  > >  Also check that the CPU shares the RX packet load. CPU0 affinty to
>  > > eth0 and CPU1 to eth1 seems to be best. It gives cache bouncing at
>  > > "TX" and slab jobs but we have accept that for now.
>  >
>  > How would I go about doing this?
>
>  Assume you route packets between eth0 <-> eth1
Yup

>  Set eth0 irq to CPU0 and eth1 to CPU1 with /proc/irq/XX/smp_affinity
Done

>  Disable irqbalancer etc.
Done

I'll let you know what I see for stats once I get some collected.

>  > cat /proc/net/softnet_stat
>
>  total    droppped tsquz    Throttl  FR_hit   FR_succe FR_defer FR_def_o
>  cpu_coll
>
>  > 5592c972 00000000 00001fc8 00000000 00000000 00000000 00000000 00000000
>  > 00391c3f
>  > 000f1991 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>  > 001292ba
>
>  See! One line per CPU. So CPU0 is handing almost all packets.
cat /proc/interrupts
           CPU0       CPU1
  0:     674862   93484967    IO-APIC-edge  timer
  1:        564          9    IO-APIC-edge  i8042
  7:          0          0   IO-APIC-level  ohci_hcd
  8:          1          1    IO-APIC-edge  rtc
 12:        268         62    IO-APIC-edge  i8042
 14:          2          0    IO-APIC-edge  ide0
 18: 2105131410    9140835   IO-APIC-level  eth3
 20:       1077  248075156   IO-APIC-level  eth2
 27:     118224          1   IO-APIC-level  eth0
 28:      36298         49   IO-APIC-level  aic7xxx
 30:          0          0   IO-APIC-level  acpi
NMI:          0          0
LOC:   94168097   94168094
ERR:          0
MIS:          0

>  > "%soft"
>  > Show  the percentage of time spent by the CPU or CPUs to service
>  > softirqs.  A softirq (software interrupt) is one  of  up  to  32
>  > enumerated software interrupts which can run on multiple CPUs
>
>  Well yes. I had a more specific question. I'll look into mpstat where do
>  find it? Kernel pacthes?
Sorry about that.  New to the list.  I'm not suggesting anything.  I 
appreciate the help!

Suse listed mpstat as part of sysstat 5.1.2.  I'm running stock 2.6.10.

>  Be also aware that packet forwarding with SMP/NUMA is very much research
>  today it is not that easy or not even possible to get aggregated
> performance from several CPU's. in any setup. Well anyway we are beginning
> to see some benefits now as we better understand the problems.
Understood.  As long as I know this, I can articulate this to my uppers for 
bigger hardware.  My current system is a dual P-III 700mhz.  May be time for 
an upgrade.  However, I figure this may also offer a good environment to help 
provide you guys with a taxed system running an load of flows.  Nothing like 
finding fun stuff while a system is ready to fall over.

Would a single hyper threaded CPU help this or should I default to a normal 
dual-cpu system?

-- 

--------------------------------------------------
Jeremy M. Guthrie        jeremy.guthrie@berbee.com
Senior Network Engineer        Phone: 608-298-1061
Berbee                           Fax: 608-288-3007
5520 Research Park Drive         NOC: 608-298-1102
Madison, WI 53711

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-01-05 17:35 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 20:55 V2.4 policy router operates faster/better than V2.6 Jeremy M. Guthrie
2005-01-03 22:51 ` Stephen Hemminger
2005-01-03 22:56   ` Jeremy M. Guthrie
2005-01-05 13:18     ` Robert Olsson
2005-01-05 15:18       ` Jeremy M. Guthrie
2005-01-05 16:30         ` Robert Olsson
2005-01-05 17:35           ` Jeremy M. Guthrie [this message]
2005-01-05 19:25             ` Jeremy M. Guthrie
2005-01-05 20:22               ` Robert Olsson
2005-01-05 20:52                 ` Jeremy M. Guthrie
2005-01-06 15:26                 ` Jeremy M. Guthrie
2005-01-06 18:15                   ` Robert Olsson
2005-01-06 19:35                     ` Jeremy M. Guthrie
2005-01-06 20:29                       ` Robert Olsson
2005-01-06 20:54                         ` Jeremy M. Guthrie
2005-01-06 20:55                         ` Jeremy M. Guthrie
2005-01-06 21:19                         ` Jeremy M. Guthrie
2005-01-06 21:36                           ` Robert Olsson
2005-01-06 21:46                             ` Jeremy M. Guthrie
2005-01-06 22:11                               ` Robert Olsson
2005-01-06 22:18                                 ` Jeremy M. Guthrie
2005-01-06 22:35                                   ` Robert Olsson
2005-01-07 16:17                                     ` Jeremy M. Guthrie
2005-01-07 19:18                                       ` Robert Olsson
2005-01-07 19:38                                         ` Jeremy M. Guthrie
2005-01-07 20:07                                           ` Robert Olsson
2005-01-07 20:14                                           ` Jeremy M. Guthrie
2005-01-07 20:40                                             ` Robert Olsson
2005-01-07 21:06                                               ` Jeremy M. Guthrie
2005-01-07 21:30                                                 ` Robert Olsson
2005-01-11 15:11                                                   ` Jeremy M. Guthrie
2005-01-07 22:28                                             ` Jesse Brandeburg
2005-01-07 22:50                                               ` Jeremy M. Guthrie
2005-01-07 22:57                                                 ` Stephen Hemminger
2005-01-11 15:17                                                   ` Jeremy M. Guthrie
2005-01-11 16:40                                                     ` Robert Olsson
2005-01-12  1:27                                                       ` Jeremy M. Guthrie
2005-01-12 15:11                                                         ` Robert Olsson
2005-01-12 16:24                                                           ` Jeremy M. Guthrie
2005-01-12 19:27                                                             ` Robert Olsson
2005-01-12 20:11                                                               ` Jeremy M. Guthrie
2005-01-12 20:21                                                                 ` Robert Olsson
2005-01-12 20:30                                                                   ` Jeremy M. Guthrie
2005-01-12 20:45                                                                   ` Jeremy M. Guthrie
2005-01-12 22:02                                                                     ` Robert Olsson
2005-01-12 22:21                                                                       ` Jeremy M. Guthrie
     [not found]                                                                         ` <16869.42247.126428.508479@robur.slu.se>
2005-01-12 22:42                                                                           ` Jeremy M. Guthrie
2005-01-12 22:47                                                                           ` Jeremy M. Guthrie
2005-01-12 23:19                                                                             ` Robert Olsson
2005-01-12 23:23                                                                               ` Jeremy M. Guthrie
2005-01-13  8:56                                                                                 ` Robert Olsson
2005-01-13 19:28                                                                                   ` Jeremy M. Guthrie
2005-01-13 20:00                                                                                     ` David S. Miller
2005-01-13 20:43                                                                                       ` Jeremy M. Guthrie
2005-01-13 23:13                                                                                         ` David S. Miller
2005-01-13 21:12                                                                                     ` Robert Olsson
2005-01-13 22:27                                                                                       ` Jeremy M. Guthrie
2005-01-14 15:44                                                                                         ` Robert Olsson
2005-01-14 14:59                                                                                       ` Jeremy M. Guthrie
2005-01-14 16:05                                                                                         ` Robert Olsson
2005-01-14 19:00                                                                                           ` Jeremy M. Guthrie
2005-01-14 19:26                                                                                             ` Jeremy M. Guthrie
2005-01-16 12:32                                                                                               ` Robert Olsson
2005-01-16 16:22                                                                                                 ` Jeremy M. Guthrie
2005-01-19 15:03                                                                                                 ` Jeremy M. Guthrie
2005-01-19 22:18                                                                                                   ` Robert Olsson
2005-01-20  1:50                                                                                                     ` Jeremy M. Guthrie
2005-01-20 11:30                                                                                                       ` Robert Olsson
2005-01-20 14:37                                                                                                         ` Jeremy M. Guthrie
2005-01-20 17:01                                                                                                           ` Robert Olsson
2005-01-20 17:14                                                                                                             ` Jeremy M. Guthrie
2005-01-20 21:53                                                                                                               ` Robert Olsson
2005-01-21 21:20                                                                                                                 ` Jeremy M. Guthrie
2005-01-21 15:23                                                                                                               ` Robert Olsson
2005-01-21 21:24                                                                                                                 ` Jeremy M. Guthrie
2005-01-31 15:37                                                                                                               ` Jeremy M. Guthrie
2005-01-31 18:06                                                                                                                 ` Robert Olsson
2005-01-12 22:05                                                                     ` Jeremy M. Guthrie
2005-01-12 22:22                                                                       ` Robert Olsson
2005-01-12 22:30                                                                         ` Jeremy M. Guthrie
2005-01-11 17:17                                                     ` Jeremy M. Guthrie
2005-01-11 18:46                                                       ` Robert Olsson
2005-01-12  1:30                                                         ` Jeremy M. Guthrie
2005-01-12 16:02                                                           ` Robert Olsson
2005-01-04 15:07   ` Jeremy M. Guthrie
     [not found] <200501071619.54566.jeremy.guthrie@berbee.com>
2005-01-07 23:23 ` Jesse Brandeburg
2005-01-10 21:11   ` Jeremy M. Guthrie
     [not found] <C925F8B43D79CC49ACD0601FB68FF50C02D39006@orsmsx408>
2005-01-13 22:55 ` Jeremy M. Guthrie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200501051135.03493.jeremy.guthrie@berbee.com \
    --to=jeremy.guthrie@berbee.com \
    --cc=Robert.Olsson@data.slu.se \
    --cc=netdev@oss.sgi.com \
    --cc=shemminger@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).