Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp695422rbb; Sat, 24 Feb 2024 22:17:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3uauamrbQ/5rVz/BttsWDGBwcA6Ic75V2VQgmCcgdZc9cVS/BliQrmKzqGpAhFLhZ5vkaKeOHqeP5oEVvlptB8Wzo7V7AQy8sgelT0A== X-Google-Smtp-Source: AGHT+IGerL4q11DgySJTMDXUV1wgNf8fcFFYpwuAew2HIR7hsIfkB7QWV7XHhV9dBmodF7/rce0d X-Received: by 2002:a05:6a00:1487:b0:6e5:e06:37a9 with SMTP id v7-20020a056a00148700b006e50e0637a9mr441812pfu.26.1708841859938; Sat, 24 Feb 2024 22:17:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708841859; cv=pass; d=google.com; s=arc-20160816; b=frd3/+kq6gNORzgYU6buRDGYpKC38Cs4vBWc+Kkq1lZmvsTBjYlBAQWM+H/jMeij3q 5mNoohnxGkjs/Qhmg2w80nm1qkliHtCbP6Lk9nVXM+o7HI8P3fFLaIOmBtywuceiudG6 YJvKMqQl9eQ33e8/SnXV7/I83OaZQ1AZi3P1g6nZKIIo5YzZITvn+PxQzYKt3lO2gYz3 zdnv+5UD+qRrsX4S2GD7D1KxYH+Mhlkyk+g2WDy0Ww7b/hUjGWNsh+nxq/1TImrYfdL6 FtpfG+5VIDnThFyNh7J+uMFjSLAMJYCn2ClNNNu0B99ohtUFTMf9U4jgBHfpiUoCs07B Wiyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=q9u4QIhBFW7wZq902rBOO8xbhhCZOIMtmtVvuNPwUck=; fh=qvRb1ZPfjFDAqjD1KqmpIaWC+E0OJZlG6tj0ZJw+68k=; b=Qng6eG5lzq8HOcibqlwFVlqdrHy+I0Zyxw7/SaSxx5Lgic6Y3nxVQpu5exKyHA/YXQ S/5sz9eBkXqyNfw4FzOFT4QNeR9oJjvAf9Wc4Z/EERXsEjj1jRUQOMozppvsiT0gUH1j MKcFvIIpkP6TaP/66mYr/2dco0SPWwURuzSIXs+OzdaXxeW6wg7qZZRS/6OqZ2scW36D 8v6qqxVvrBPUu1xsbKX3gDzPIHYas7do+zr3OgjQEpFoEDesH3xYAHwllChjVsqPs0N1 P7Nv8pPTRTv0DBPU85dWuuKjX3RaWAG8ODsQ1VRFUm1aMivl4eql5yYACJeY2KejKcM5 hGMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-kernel+bounces-79989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=NONE) header.from=apana.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h11-20020a63f90b000000b005dc47b71821si1837409pgi.572.2024.02.24.22.17.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 22:17:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-kernel+bounces-79989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=NONE) header.from=apana.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FC61281C1A for ; Sun, 25 Feb 2024 06:17:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F2E1D271; Sun, 25 Feb 2024 06:17:27 +0000 (UTC) Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25B8028E8; Sun, 25 Feb 2024 06:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708841846; cv=none; b=juB5+3xPwK1o1pk3A32cD3A41Cuqwlha7P4+svxc2xsFKAsK3kgFMf+V17aAZl05Sxrb6TLhtyiDzB8GkF3YCOF8n/nSTu3XEShUCBiFNhPhXzei6X+zvaZXtEydXFYwNQZRNC9AF1N9m07dGDlhDPvkVXvF3fUJ5j37AYDCuYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708841846; c=relaxed/simple; bh=Vet3kNFNvQtLD/iQwxj+UEJSwFYFiQ2CtoXZP3rREUo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XF/FtMeupCcVU4Dd6Rvah1f/ojPNpZjic7ml47KpXikKufZPi+FlchBn7WLFG9FjdMSCD1qo5lw7MkS2ZxGgANcvuXZPj8i2j+m6wYqM9PpP9u092kMgvF4hQXXnEsn3dv/4yTHoszQsCoej/3kJ4Iw9l5Bgce/B6n7zqoJ8soY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1re7ov-00HW18-1n; Sun, 25 Feb 2024 14:17:06 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Sun, 25 Feb 2024 14:17:19 +0800 Date: Sun, 25 Feb 2024 14:17:19 +0800 From: Herbert Xu To: Kent Overstreet Cc: Matthew Wilcox , David Laight , "linux-kernel@vger.kernel.org" , Thomas Graf , "netdev@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "maple-tree@lists.infradead.org" , "rcu@vger.kernel.org" Subject: Re: [PATCH 0/1] Rosebush, a new hash table Message-ID: References: <20240222203726.1101861-1-willy@infradead.org> <4a1416fcb3c547eb9612ce07da6a77ed@AcuMS.aculab.com> <2s73sed5n6kxg42xqceenjtcwxys4j2r5dc5x4fdtwkmhkw3go@7viy7qli43wd> <5p5sypt3y643rr7kp66lhmgksgtuvdgijrryh53mqiiqkrgyty@d4zcnya22owg> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Feb 25, 2024 at 01:14:39AM -0500, Kent Overstreet wrote: > > it's a log curve - Yes it's O(log N/log log N). > chain length of 16 means you picked a bad hash > function. Or that someone is trying to attack you. The number 16 is the cut-off where we decide that someone has discovered our hash secret and can cause a particular to chain to grow without bound. At this point rhashtable will force a rehash with a different secret. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt