LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Question About SMP

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Question About SMP
From: Dusten Splan <Dusten@xxxxxxxxxxxxxxxxxx>
Date: Mon, 12 May 2003 12:31:11 -0700
I have a questions about smp and if LVS is smp aware.  I have a Dell 1650
with dual 1.1Ghz processors, dual 1000BaseT Ethernet, with 2.4.20 compiled
as an smp and with the lvs sources compiled in.  I have it set up as a one
nic one network DR unit with wrr and it is working very nicely. It is
pushing about 50Mb at peek and is only using about 15% on average of the
processing power when doing a vmstat. Now here's the question when doing a
vmstat the numbers look like this:
 0  0  0      0 474252  22496 352428    0    0     0     0 25769  3248  0 11
89
 0  0  0      0 474252  22496 352428    0    0     0     0 25816  3194  0 12
88
 0  0  0      0 474252  22496 352428    0    0     0     0 24526  2772  0 11
89
 0  0  0      0 474252  22496 352428    0    0     0     0 24714  2939  0  9
91
 0  0  0      0 474252  22496 352428    0    0     0     0 25404  3081  0  8
92
 0  0  0      0 474252  22496 352428    0    0     0     0 25238  2996  0 11
89
 0  0  0      0 474252  22496 352428    0    0     0     0 24872  2960  0 10
90
 0  0  0      0 474252  22496 352428    0    0     0     0 24760  2850  0  7
93
 0  0  0      0 474252  22496 352428    0    0     0     0 25341  2984  0 10
90
 0  0  0      0 474252  22496 352428    0    0     0     0 24689  2743  0  8
92

this is a snapshot when we are doing about 30Mb.

now if I look at top I get.
27 processes: 26 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:   0.0% user  20.0% system    0.0% nice   0.0% iowait  80.0%
idle
CPU1 states:   0.1% user   1.0% system    0.0% nice   0.0% iowait  98.4%
idle
Mem:  1032948k av,  558912k used,  474036k free,       0k shrd,   22496k
buff
       188192k active,             189740k inactive
Swap:  522104k av,       0k used,  522104k free                  352428k
cached

When doing more traffic the load on cpu0 increases and nothing is happing on
cpu1. 

My question is why am I not seeing this processor usage distributed over
both processors.  I know that on a Sun box the network card is stuck to a
single processor and will not use the other processors.  

--Dusten

Oh and just for those of you what want to know here is my ipvsadm output.

TCP  XXX.XXX.XXX.X:http wrr
  -> .com:http    Route   35     43         2712      
  -> .com:http    Route   57     46         4462      
  -> .com:http    Route   4      5          329       
  -> .com:http    Route   49     39         3892      
  -> .com:http    Route   34     29         2685      
  -> .com:http    Route   32     25         2501      
  -> .com:http    Route   21     21         1661      
  -> .com:http    Route   19     26         1492      
  -> .com:http    Route   25     20         1977      
  -> .com:http    Route   19     17         1524      
  -> .com:http    Route   35     40         2746      
  -> .com:http    Route   57     48         4511      
  -> .com:http    Route   20     16         1570      
  -> .com:http    Route   22     25         1775      
  -> .com:http    Route   11     6          884       
  -> .com:http    Route   116    87         9116      
  -> .com:http    Route   74     69         5883      
  -> .com:http    Route   162    164        12736     
  -> .com:http    Route   52     45         4027      
  -> .com:http    Route   114    88         9053      
  -> .com:http    Route   119    117        9394      
  -> .com:http    Route   115    104        9063      
  -> .com:http    Route   22     22         1754      
  -> .com:http    Route   35     42         2717      
  -> .com:http    Route   60     50         4685      
  -> .com:http    Route   80     62         6255      
  -> .com:http    Route   86     61         6686      
  -> .com:http    Route   29     28         2266      
  -> .com:http    Route   31     36         2416      
  -> .com:http    Route   36     33         2837      
  -> .com:http    Route   48     55         3734      
  -> .com:http    Route   84     74         6570      
  -> .com:http    Route   35     52         2716      
  -> .com:http    Route   67     59         5234      
  -> .com:http    Route   7      3          554       
  -> .com:http    Route   44     49         3395      
  -> .com:http    Route   29     25         2247      
  -> .com:http    Route   1      0          95        
  -> .com:http    Route   1      0          88        
  -> .com:http    Route   44     36         3436      
  -> .com:http    Route   64     75         5004      
  -> .com:http    Route   105    88         8156      
  -> .com:http    Route   32     36         2483      
  -> .com:http    Route   22     20         1720      
  -> .com:http    Route   95     78         7403      
  -> .com:http    Route   22     13         1774      
  -> .com:http    Route   70     70         5449      
  -> .com:http    Route   68     48         5235      
<Prev in Thread] Current Thread [Next in Thread>