netdev
[Top] [All Lists]

Re: [Question] SMP for Linux

To: J_Fraser@xxxxxxxxxxx
Subject: Re: [Question] SMP for Linux
From: Nivedita Singhvi <niv@xxxxxxxxxx>
Date: Fri, 18 Oct 2002 17:20:06 -0700
Cc: "'Robert Olsson'" <Robert.Olsson@xxxxxxxxxxx>, netdev@xxxxxxxxxxx
References: <000b01c276fe$46626720$3701020a@CONCORDIA>
Sender: netdev-bounce@xxxxxxxxxxx
Jon Fraser wrote:

>         bound = interrupts for both cards bound to one cpu
>         float   = no smp affinity
>         split = card 0 bound to cpu 0, card 1 bound to cpu 1
> 
> The results, in kpps:
> 
>                   bound   float   split
>                         cpu %    cpu%    cpu%
>                 -----------------------
> 1 flow           290     270     290
>                         99%x1    65%x2   99%x1
> 
> 2 flows          270     380     450
>                  99%x1   82%x2  96%x2


This is approximately what one should expect, correct? If
you have only one task (flow), then the float case will be
slower than the bound/split case (as long as the CPU isnt the
bottleneck), because you'll have an increasing number of 
cacheline misses. When you have two or more flows, the 
general order in which things improve would be the bound, 
float and then split cases. The fact that the float case is 
halfway between the other two is indicative of how expensive
the cacheline being on the other CPU is.

In the float case, it would be nice if we could see the interrupt 
distribution between the CPU's. Would you happen to have the 
/proc/interrupt info?


thanks,
Nivedita


<Prev in Thread] Current Thread [Next in Thread>