Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by kanga.kvack.org (Postfix) with ESMTP id 9BC966B0253 for ; Tue, 28 Jul 2015 09:33:01 -0400 (EDT) Received: by wibxm9 with SMTP id xm9so157555324wib.0 for ; Tue, 28 Jul 2015 06:33:01 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com. [209.85.212.175]) by mx.google.com with ESMTPS id wd10si37130948wjc.201.2015.07.28.06.32.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 06:32:59 -0700 (PDT) Received: by wibud3 with SMTP id ud3so159764334wib.0 for ; Tue, 28 Jul 2015 06:32:58 -0700 (PDT) Date: Tue, 28 Jul 2015 15:32:55 +0200 From: Michal Hocko Subject: Re: [PATCH] mm: add resched points to remap_pmd_range/ioremap_pmd_range Message-ID: <20150728133254.GI24972@dhcp22.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150727151814.GR9641@Sligo.logfs.org> Sender: owner-linux-mm@kvack.org List-ID: To: =?iso-8859-1?Q?J=F6rn?= Engel Cc: 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 On Mon 27-07-15 08:18:14, Jorn Engel wrote: > On Mon, Jul 27, 2015 at 09:08:42AM +0200, Michal Hocko wrote: > > On Fri 24-07-15 09:56:27, Jorn Engel wrote: > > > On Fri, Jul 24, 2015 at 09:04:21AM +0200, Michal Hocko wrote: > > > > On Thu 23-07-15 14:54:33, Spencer Baugh wrote: > > > > > From: Joern Engel > > > > > > > > > > Mapping large memory spaces can be slow and prevent high-priority > > > > > realtime threads from preempting lower-priority threads for a long time. > > > > > > > > How can a lower priority task block the high priority one? Do you have > > > > preemption disabled? > > > > > > Yes. > > We have kernel preemption disabled. A lower-priority task in a system > call will block higher-priority tasks. This is an inherent problem of !PREEMPT, though. There are many loops which can take quite some time but we do not want to sprinkle cond_resched all over the kernel. On the other hand these io/remap resp. vunmap page table walks do not have any cond_resched points AFAICS so we can at least mimic zap_pmd_range which does cond_resched. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org