From: Eric Wong Subject: Re: [LSF/MM TOPIC] epoll topics Date: Mon, 19 Jan 2015 03:50:48 +0000 Message-ID: <20150119035048.GA4533@dcvr.yhbt.net> References: <54B88EC5.9020904@akamai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lsf-pc@lists.linux-foundation.org, "linux-fsdevel@vger.kernel.org" , famz@redhat.com To: Jason Baron Return-path: Received: from dcvr.yhbt.net ([64.71.152.64]:56865 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbbASDus (ORCPT ); Sun, 18 Jan 2015 22:50:48 -0500 Content-Disposition: inline In-Reply-To: <54B88EC5.9020904@akamai.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Jason Baron wrote: > In addition, Eric Wong has proposed a scheme using 'wait free queues' to > improve lock contention between wakeups and event gathering: > https://lkml.org/lkml/2013/3/14/14. Thanks for bringing this up again. wfcqueue for epoll is still on hold until I take care of other problems in userspace. I'd welcome other interested folks to help get it into shape again. > In addition, we've observed some short comings from our production systems. > Because wait queues are woken up in order, we can get unfair loading > across threads, Are you referring to LIFO scheduling of epoll_wait calling __add_wait_queue_exclusive? I always thought LIFO was preferable since it kept the same threads active to reduce cache misses. > and we can also receive unecessary wakeups. It would be > great to discuss these topics further. I'm happy to discuss via email; but I don't travel well.