Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758223AbcK3UaV (ORCPT ); Wed, 30 Nov 2016 15:30:21 -0500 Received: from mail-yw0-f193.google.com ([209.85.161.193]:34756 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753898AbcK3UaO (ORCPT ); Wed, 30 Nov 2016 15:30:14 -0500 Date: Wed, 30 Nov 2016 15:30:11 -0500 From: Tejun Heo To: Linus Torvalds Cc: Marc MERLIN , Kent Overstreet , Jens Axboe , Michal Hocko , Vlastimil Babka , linux-mm , LKML , Joonsoo Kim , Greg Kroah-Hartman Subject: Re: 4.8.8 kernel trigger OOM killer repeatedly when I have lots of RAM that should be free Message-ID: <20161130203011.GB15989@htj.duckdns.org> References: <20161123063410.GB2864@dhcp22.suse.cz> <20161128072315.GC14788@dhcp22.suse.cz> <20161129155537.f6qgnfmnoljwnx6j@merlins.org> <20161129160751.GC9796@dhcp22.suse.cz> <20161129163406.treuewaqgt4fy4kh@merlins.org> <20161129174019.fywddwo5h4pyix7r@merlins.org> <20161130174713.lhvqgophhiupzwrm@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 20 Hello, On Wed, Nov 30, 2016 at 10:14:50AM -0800, Linus Torvalds wrote: > Tejun/Kent - any way to just limit the workqueue depth for bcache? > Because that really isn't helping, and things *will* time out and > cause those problems when you have hundreds of IO's queued on a disk > that likely as a write iops around ~100.. Yeah, easily. I'm assuming it's gonna be the bcache_wq allocated in from bcache_init(). It's currently using 0 as @max_active and it can set to be any arbitrary number. It'd be a very crude way to control what looks like a buffer bloat with IOs tho. We can make it a bit more granular by splitting workqueues per bcache instance / purpose but for the long term the right solution seems to be hooking into writeback throttling mechanism that block layer just grew recently. Thanks. -- tejun