Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbbG3Q6K (ORCPT ); Thu, 30 Jul 2015 12:58:10 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35628 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750754AbbG3Q6I (ORCPT ); Thu, 30 Jul 2015 12:58:08 -0400 Date: Thu, 30 Jul 2015 09:58:03 -0700 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Mike Galbraith Cc: Michal Hocko , Spencer Baugh , Toshi Kani , Andrew Morton , Fengguang Wu , Joern Engel , "Kirill A. Shutemov" , Mel Gorman , Johannes Weiner , Shachar Raindel , Boaz Harrosh , Andy Lutomirski , Joonsoo Kim , Andrey Ryabinin , Roman Pen , Andrey Konovalov , Eric Dumazet , Dmitry Vyukov , Rob Jones , WANG Chao , open list , "open list:MEMORY MANAGEMENT" , Spencer Baugh Subject: Re: [PATCH] mm: add resched points to remap_pmd_range/ioremap_pmd_range Message-ID: <20150730165803.GA17882@Sligo.logfs.org> References: <1437688476-3399-3-git-send-email-sbaugh@catern.com> <20150724070420.GF4103@dhcp22.suse.cz> <20150724165627.GA3458@Sligo.logfs.org> <20150727070840.GB11317@dhcp22.suse.cz> <20150727151814.GR9641@Sligo.logfs.org> <20150728133254.GI24972@dhcp22.suse.cz> <20150728170844.GY9641@Sligo.logfs.org> <20150729095439.GD15801@dhcp22.suse.cz> <1438269775.23663.58.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1438269775.23663.58.camel@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 28 On Thu, Jul 30, 2015 at 05:22:55PM +0200, Mike Galbraith wrote: > > I piddled about with the thought that it might be nice to be able to > sprinkle cond_resched() about to cut rt latencies without wrecking > normal load throughput, cobbled together a cond_resched_rt(). > > On my little box that was a waste of time, as the biggest hits are block > softirq and free_hot_cold_page_list(). Block softirq is one of our problems as well. It is a bit of a joke that __do_softirq() moves work to ksoftirqd after 2ms, but block softirq can take several 100ms in bad cases. We could give individual softirqs a time budget. If they exceed the budget they should complete, but reassert themselves. Not sure about the rest, but that would be pretty simple to implement for block softirq. J?rn -- Happiness isn't having what you want, it's wanting what you have. -- unknown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/