lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 28 Apr 2010 16:34:03 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	hadi@...erus.ca
Cc:	David Miller <davem@...emloft.net>, xiaosuo@...il.com,
	therbert@...gle.com, shemminger@...tta.com, netdev@...r.kernel.org,
	Eilon Greenstein <eilong@...adcom.com>,
	Brian Bloniarz <bmb@...enacr.com>
Subject: Re: [PATCH net-next-2.6] net: speedup udp receive path

Le mercredi 28 avril 2010 à 16:19 +0200, Eric Dumazet a écrit :

> I forgot to say that with my previous DDOS test/bench (16 cpus trying to
> feed one udp socket), my receiver can now process 420.000 pps instead of
> 200.000 ;)

And perf top of the cpu dedicated to the thread doing the recvmsg() is :
(after patch)

----------------------------------------------------------------------------------------------------------------------------------------------
   PerfTop:    1001 irqs/sec  kernel:98.0% [1000Hz cycles],  (all, cpu: 1)
----------------------------------------------------------------------------------------------------------------------------------------------

             samples  pcnt function                      DSO
             _______ _____ _____________________________ ____________________________

             5463.00 45.5% _raw_spin_lock_bh             vmlinux                     
              761.00  6.3% copy_user_generic_string      vmlinux                     
              662.00  5.5% sock_recv_ts_and_drops        vmlinux                     
              645.00  5.4% kfree                         vmlinux                     
              568.00  4.7% _raw_spin_lock                vmlinux                     
              494.00  4.1% __skb_recv_datagram           vmlinux                     
              488.00  4.1% skb_copy_datagram_iovec       vmlinux                     
              467.00  3.9% __slab_free                   vmlinux                     
              176.00  1.5% udp_recvmsg                   vmlinux                     
              168.00  1.4% ia32_sysenter_target          vmlinux                     
              161.00  1.3% kmem_cache_free               vmlinux                     
              161.00  1.3% _raw_spin_lock_irqsave        vmlinux                     
              151.00  1.3% memcpy_toiovec                vmlinux                     
              131.00  1.1% fget_light                    vmlinux                     
              130.00  1.1% sock_rfree                    vmlinux                     
              104.00  0.9% inet_recvmsg                  vmlinux                     
               99.00  0.8% dst_release                   vmlinux                     
               98.00  0.8% skb_release_head_state        vmlinux                     
               83.00  0.7% __sk_mem_reclaim              vmlinux                     
               75.00  0.6% sys_recvfrom                  vmlinux                     
               61.00  0.5% sysexit_from_sys_call         vmlinux                     
               59.00  0.5% fput                          vmlinux                     
               56.00  0.5% schedule                      vmlinux                     
               56.00  0.5% sock_recvmsg                  vmlinux                     
               54.00  0.4% move_addr_to_user             vmlinux                     
               51.00  0.4% compat_sys_socketcall         vmlinux                     
               48.00  0.4% _raw_spin_unlock_bh           vmlinux                    


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ