From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:35443 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627AbcBOGDQ (ORCPT ); Mon, 15 Feb 2016 01:03:16 -0500 Date: Mon, 15 Feb 2016 14:03:10 +0800 From: Eryu Guan To: Jeff Layton Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" , Jan Kara , Eric Paris Subject: Re: [PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job Message-ID: <20160215060310.GD29898@eguan.usersys.redhat.com> References: <1455495323-29605-1-git-send-email-jeff.layton@primarydata.com> <1455495323-29605-2-git-send-email-jeff.layton@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455495323-29605-2-git-send-email-jeff.layton@primarydata.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Feb 14, 2016 at 07:15:23PM -0500, Jeff Layton wrote: > We don't require a dedicated thread for fsnotify cleanup. Switch it over > to a workqueue job instead that runs on the system_unbound_wq. > > In the interest of not thrashing the queued job too often when there are > a lot of marks being removed, we delay the reaper job slightly when > queueing it, to allow several to gather on the list. > > Cc: Jan Kara > Cc: Eric Paris > Cc: Andrew Morton > Cc: Eryu Guan > Signed-off-by: Jeff Layton With these two patches applied on top of r.5-rc3, the same test passed 2-hour stress run, also survived stress test that forks 5 processes running the same test program for 30 minutes. Thanks for looking into this! Eryu