Received: from eggs.gnu.org ([2001:4830:134:3::10]:40005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axpCB-0003ao-7l for qemu-devel@nongnu.org; Wed, 04 May 2016 01:18:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axpBz-00083h-H6 for qemu-devel@nongnu.org; Wed, 04 May 2016 01:17:53 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:33405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axpBy-0007z2-7x for qemu-devel@nongnu.org; Wed, 04 May 2016 01:17:47 -0400 Received: by mail-pf0-x244.google.com with SMTP id y7so3991818pfb.0 for ; Tue, 03 May 2016 22:17:32 -0700 (PDT) Sender: Richard Henderson References: <1461987197-31264-1-git-send-email-cota@braap.org> <1461987197-31264-12-git-send-email-cota@braap.org> From: Richard Henderson Message-ID: <6263d665-e730-645b-ca18-ddc8402079d9@twiddle.net> Date: Tue, 3 May 2016 19:17:23 -1000 MIME-Version: 1.0 In-Reply-To: <1461987197-31264-12-git-send-email-cota@braap.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 11/14] qht: QEMU's fast, resizable and scalable Hash Table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , QEMU Developers , MTTCG Devel Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Peter Crosthwaite , Sergey Fedorov On 04/29/2016 05:33 PM, Emilio G. Cota wrote: > This is a hash table with optional auto-resizing and MRU promotion for > reads and writes. Its implementation goal is to stay fast while > scaling for read-mostly workloads. > > A hash table with these features will be necessary for the scalability > of the ongoing MTTCG work; before those changes arrive we can already > benefit from the single-threaded speedup that qht also provides. > > Signed-off-by: Emilio G. Cota > --- > include/qemu/qht.h | 67 +++++ > util/Makefile.objs | 2 +- > util/qht.c | 722 +++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 790 insertions(+), 1 deletion(-) > create mode 100644 include/qemu/qht.h > create mode 100644 util/qht.c Reviewed-by: Richard Henderson r~