* Testing server performance
@ 2011-12-09 15:26 Igor Maravić
2011-12-09 17:18 ` Ben Greear
2011-12-12 9:36 ` Eric Dumazet
0 siblings, 2 replies; 6+ messages in thread
From: Igor Maravić @ 2011-12-09 15:26 UTC (permalink / raw)
To: netdev
Hi all,
I'm currently testing how much traffic can I push through my server.
I'm running on Ubuntu 11.10 server with net-next kernel.
I'm using 2 Gbps NICs, Netgear GA311 and D-Link DGE-528T, that use r8169 driver.
I'm generating UDP packets from a router with constant speed.
After I push traffic to my server with max speed, it saturates.
It receives packets at 77MBps and it sends packet with 14MBps.
When there are no incoming traffic, but there are remaining packets in
tx fifo queue, it sends them with 40MBps.
That all wouldn't be strange because my machine isn't any thing special
(AMD Athlon(tm) II X2 240 on 2,8GHz, motherboard ASUS M2N68 PLUS and
2x2GB DDR2 RAM memory on 1066MHz),
but the dstat shows that CPUs are maximally using 6% of their
resources for interrupt handling.
Beside that, nothing else is using CPU time.
Why does it saturate on this values then? Am I doing something wrong?
Any help is appreciated.
BR
Igor
PS. Kernel is SMP enabled and I tried different bit masks for
smp_affinity for my interfaces, but I still got the same result.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Testing server performance
2011-12-09 15:26 Testing server performance Igor Maravić
@ 2011-12-09 17:18 ` Ben Greear
2011-12-12 9:24 ` Igor Maravić
2011-12-12 9:36 ` Eric Dumazet
1 sibling, 1 reply; 6+ messages in thread
From: Ben Greear @ 2011-12-09 17:18 UTC (permalink / raw)
To: igorm; +Cc: netdev
On 12/09/2011 07:26 AM, Igor Maravić wrote:
> Hi all,
> I'm currently testing how much traffic can I push through my server.
> I'm running on Ubuntu 11.10 server with net-next kernel.
> I'm using 2 Gbps NICs, Netgear GA311 and D-Link DGE-528T, that use r8169 driver.
> I'm generating UDP packets from a router with constant speed.
>
> After I push traffic to my server with max speed, it saturates.
> It receives packets at 77MBps and it sends packet with 14MBps.
> When there are no incoming traffic, but there are remaining packets in
> tx fifo queue, it sends them with 40MBps.
>
> That all wouldn't be strange because my machine isn't any thing special
> (AMD Athlon(tm) II X2 240 on 2,8GHz, motherboard ASUS M2N68 PLUS and
> 2x2GB DDR2 RAM memory on 1066MHz),
> but the dstat shows that CPUs are maximally using 6% of their
> resources for interrupt handling.
> Beside that, nothing else is using CPU time.
> Why does it saturate on this values then? Am I doing something wrong?
> Any help is appreciated.
Check the bus speed and width on your NICs. dmesg usually shows this
info when the interfaces are first detected.
If you can, try some Intel NICs..they will usually run wire speed
if the motherboard is reasonably fast.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Testing server performance
2011-12-09 17:18 ` Ben Greear
@ 2011-12-12 9:24 ` Igor Maravić
2011-12-12 17:32 ` Ben Greear
0 siblings, 1 reply; 6+ messages in thread
From: Igor Maravić @ 2011-12-12 9:24 UTC (permalink / raw)
To: Ben Greear; +Cc: netdev
> Check the bus speed and width on your NICs. dmesg usually shows this
> info when the interfaces are first detected.
>
> If you can, try some Intel NICs..they will usually run wire speed
> if the motherboard is reasonably fast.
>
> Thanks,
> Ben
Thanks for the advice.
I' ll see if I can find some Intel NICs.
NIC's specs says that they support 32-bit 33/66MHz clock speed PCI Bus
Master operation.
Should that be enough?
I'll see what dmesg showed tomorow, because I'm not at my computer currently.
BR
Igor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Testing server performance
2011-12-09 15:26 Testing server performance Igor Maravić
2011-12-09 17:18 ` Ben Greear
@ 2011-12-12 9:36 ` Eric Dumazet
2011-12-12 9:45 ` Igor Maravić
1 sibling, 1 reply; 6+ messages in thread
From: Eric Dumazet @ 2011-12-12 9:36 UTC (permalink / raw)
To: igorm; +Cc: netdev
Le vendredi 09 décembre 2011 à 16:26 +0100, Igor Maravić a écrit :
> Hi all,
> I'm currently testing how much traffic can I push through my server.
> I'm running on Ubuntu 11.10 server with net-next kernel.
> I'm using 2 Gbps NICs, Netgear GA311 and D-Link DGE-528T, that use r8169 driver.
> I'm generating UDP packets from a router with constant speed.
>
> After I push traffic to my server with max speed, it saturates.
> It receives packets at 77MBps and it sends packet with 14MBps.
> When there are no incoming traffic, but there are remaining packets in
> tx fifo queue, it sends them with 40MBps.
>
> That all wouldn't be strange because my machine isn't any thing special
> (AMD Athlon(tm) II X2 240 on 2,8GHz, motherboard ASUS M2N68 PLUS and
> 2x2GB DDR2 RAM memory on 1066MHz),
> but the dstat shows that CPUs are maximally using 6% of their
> resources for interrupt handling.
> Beside that, nothing else is using CPU time.
> Why does it saturate on this values then? Am I doing something wrong?
> Any help is appreciated.
>
> BR
> Igor
>
> PS. Kernel is SMP enabled and I tried different bit masks for
> smp_affinity for my interfaces, but I still got the same result.
I have doubts you get such poor performance from your machine.
77Mbps, thats how many packets per second ???
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Testing server performance
2011-12-12 9:36 ` Eric Dumazet
@ 2011-12-12 9:45 ` Igor Maravić
0 siblings, 0 replies; 6+ messages in thread
From: Igor Maravić @ 2011-12-12 9:45 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev
> I have doubts you get such poor performance from your machine.
>
> 77Mbps, thats how many packets per second ???
>
I've got 77MBps not 77Mbps. :)
I was testing with packets of length 1024B
That's about 80000 packets/s
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Testing server performance
2011-12-12 9:24 ` Igor Maravić
@ 2011-12-12 17:32 ` Ben Greear
0 siblings, 0 replies; 6+ messages in thread
From: Ben Greear @ 2011-12-12 17:32 UTC (permalink / raw)
To: igorm; +Cc: netdev
On 12/12/2011 01:24 AM, Igor Maravić wrote:
>> Check the bus speed and width on your NICs. dmesg usually shows this
>> info when the interfaces are first detected.
>>
>> If you can, try some Intel NICs..they will usually run wire speed
>> if the motherboard is reasonably fast.
>>
>> Thanks,
>> Ben
>
> Thanks for the advice.
> I' ll see if I can find some Intel NICs.
>
> NIC's specs says that they support 32-bit 33/66MHz clock speed PCI Bus
> Master operation.
> Should that be enough?
No, probably not. Your motherboard may only be 32/32mhz as well?
You really need pci-e (or high-end pci-x) for good 1Gbps performance.
On any modern system, use pci-e nics if you can.
Thanks,
Ben
>
> I'll see what dmesg showed tomorow, because I'm not at my computer currently.
> BR
> Igor
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-12 17:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 15:26 Testing server performance Igor Maravić
2011-12-09 17:18 ` Ben Greear
2011-12-12 9:24 ` Igor Maravić
2011-12-12 17:32 ` Ben Greear
2011-12-12 9:36 ` Eric Dumazet
2011-12-12 9:45 ` Igor Maravić
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).