[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150728170844.GY9641@Sligo.logfs.org>
Date: Tue, 28 Jul 2015 10:08:44 -0700
From: Jörn Engel <joern@...estorage.com>
To: Michal Hocko <mhocko@...nel.org>
Cc: Spencer Baugh <sbaugh@...ern.com>, Toshi Kani <toshi.kani@...com>,
Andrew Morton <akpm@...ux-foundation.org>,
Fengguang Wu <fengguang.wu@...el.com>,
Joern Engel <joern@...fs.org>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Mel Gorman <mgorman@...e.de>,
Johannes Weiner <hannes@...xchg.org>,
Shachar Raindel <raindel@...lanox.com>,
Boaz Harrosh <boaz@...xistor.com>,
Andy Lutomirski <luto@...capital.net>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Andrey Ryabinin <a.ryabinin@...sung.com>,
Roman Pen <r.peniaev@...il.com>,
Andrey Konovalov <adech.fo@...il.com>,
Eric Dumazet <edumazet@...gle.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Rob Jones <rob.jones@...ethink.co.uk>,
WANG Chao <chaowang@...hat.com>,
open list <linux-kernel@...r.kernel.org>,
"open list:MEMORY MANAGEMENT" <linux-mm@...ck.org>,
Spencer Baugh <Spencer.baugh@...estorage.com>
Subject: Re: [PATCH] mm: add resched points to
remap_pmd_range/ioremap_pmd_range
On Tue, Jul 28, 2015 at 03:32:55PM +0200, Michal Hocko wrote:
> >
> > 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.
Even for !PREEMPT we don't want infinite scheduler latencies. Real
question is how much we are willing to accept and at what point we
should start sprinkling cond_resched. I would pick 100ms, but that is
just a personal choice. If we decide on 200ms or 500ms, I can live with
that too.
But whatever value we pick, I suspect these resched points need to go in
eventually. As memory sizes grow, people will also start mapping bigger
regions and the scheduler latency will eventually exceed whatever value
we picked.
Jörn
--
Fools ignore complexity. Pragmatists suffer it.
Some can avoid it. Geniuses remove it.
-- Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists