mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
af_unix: Remove unix_table_locks.
unix_table_locks are to protect the global hash table, unix_socket_table. The previous commit removed it, so let's clean up the unnecessary locks. Here is a test result on EC2 c5.9xlarge where 10 processes run concurrently in different netns and bind 100,000 sockets for each. without this series : 1m 38s with this series : 11s It is ~10x faster because the global hash table is split into 10 netns in this case. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cf2f225e26
commit
2f7ca90a01
3 changed files with 9 additions and 42 deletions
|
@ -21,7 +21,6 @@ struct sock *unix_peer_get(struct sock *sk);
|
|||
#define UNIX_HASH_BITS 8
|
||||
|
||||
extern unsigned int unix_tot_inflight;
|
||||
extern spinlock_t unix_table_locks[UNIX_HASH_SIZE];
|
||||
|
||||
struct unix_address {
|
||||
refcount_t refcnt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue