From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dcvr.yhbt.net (dcvr.yhbt.net [173.255.242.215]) by sourceware.org (Postfix) with ESMTPS id BEA863858D28 for ; Wed, 18 Jan 2023 20:06:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BEA863858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yhbt.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 82F8F1F47C; Wed, 18 Jan 2023 20:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yhbt.net; s=selector1; t=1674072377; bh=ytFRurdIzS2DwBJS8J8ldFBcQeCbZU68EqDS1s5zYIE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m4bMjJi8xhZdOHmLMRYAWW1ZVt1jQcdT70ruKjaGHQ0G/4jnHd9lDcU+aqj2XAFRm PDsS69tZh+/y0zECBIGc7gkV/uoXp4sfnUDDAanJLQqUuiWoOngYlf3ICd8wYS0v5J 9AFjLq4TVPVqo11cbhQmgWQsUvrL74Mff0cpgj/w= Date: Wed, 18 Jan 2023 20:05:58 +0000 From: Eric Wong To: Mathieu Desnoyers Cc: Carlos O'Donell , libc-alpha@sourceware.org Subject: Re: [RFC/PoC] malloc: use wfcqueue to speed up remote frees Message-ID: <20230118200558.M990202@dcvr> References: <20180731084936.g4yw6wnvt677miti@dcvr> <0cfdccea-d173-486c-85f4-27e285a30a1a@redhat.com> <20180731231819.57xsqvdfdyfxrzy5@whir> <20230117064251.M336757@dcvr> <20230118191248.M142069@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Mathieu Desnoyers wrote: > On 2023-01-18 14:12, Eric Wong wrote: > > Mathieu Desnoyers via Libc-alpha wrote: > > > Here is a PoC implementing liburcu wfcqueue with C11 atomics: > > > > > > https://review.lttng.org/c/userspace-rcu/+/9271 PoC: wfcqueue: remove dependencies on liburcu headers > > > > > > Feedback is welcome! > > > > Is there a non-JavaScript version or an address to git clone? I can't view it > > (I use w3m and do all my work from an ancient machine or via ssh||mosh) > > git clone https://review.lttng.org/userspace-rcu > cd userspace-rcu > git fetch https://review.lttng.org/userspace-rcu refs/changes/71/9271/3 && git checkout FETCH_HEAD Thanks. (Fwiw, I prefer `git show --color-words -W refs/changes/71/9271/3') It looks fine to me, but I'm no expert on this stuff and just getting my feet wet with C11... The busy wait / cpu_relax path isn't needed for malloc, at least.