git: Remove nearly all MP contention from ip_randomid()

看板DFBSD_commit作者時間16年前 (2009/09/08 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 93992dc9adff19ba1fc7dbc18499aa0f78aba2d5 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Mon Sep 7 19:21:34 2009 -0700 Remove nearly all MP contention from ip_randomid() * Instead of using two global spinlocks split the id space up into ncpus_fit independant sections and shuffle within each section. * Aggregate the random number generation into blocks of 32, on a per-cpu basis, to reduce cpu contention there. Using-test-output-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr> Summary of changes: sys/netinet/ip_id.c | 49 +++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 41 insertions(+), 8 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/93992dc9adff19ba1fc7dbc18499aa0f78aba2d5 -- DragonFly BSD source repository
文章代碼(AID): #1AfS8cCR (DFBSD_commit)