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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 13 Nov 2009 20:50:57 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	eric.dumazet@...il.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] inetpeer: Optimize inet_getid()

From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 12 Nov 2009 20:33:09 +0100

> While investigating for network latencies, I found inet_getid() was a
> contention point for some workloads, as inet_peer_idlock is shared
> by all inet_getid() users regardless of peers.
> 
> One way to fix this is to make ip_id_count an atomic_t instead
> of __u16, and use atomic_add_return().
> 
> In order to keep sizeof(struct inet_peer) = 64 on 64bit arches
> tcp_ts_stamp is also converted to __u32 instead of "unsigned long".
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>

Applied.
--
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