From: "Jörn Engel" <joern@purestorage.com>
To: Toshi Kani <toshi.kani@hp.com>
Cc: Spencer Baugh <sbaugh@catern.com>,
Andrew Morton <akpm@linux-foundation.org>,
Fengguang Wu <fengguang.wu@intel.com>,
Joern Engel <joern@logfs.org>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Mel Gorman <mgorman@suse.de>,
Johannes Weiner <hannes@cmpxchg.org>,
Michal Hocko <mhocko@suse.cz>,
Shachar Raindel <raindel@mellanox.com>,
Boaz Harrosh <boaz@plexistor.com>,
Andy Lutomirski <luto@amacapital.net>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Andrey Ryabinin <a.ryabinin@samsung.com>,
Roman Pen <r.peniaev@gmail.com>,
Andrey Konovalov <adech.fo@gmail.com>,
Eric Dumazet <edumazet@google.com>,
Dmitry Vyukov <dvyukov@google.com>,
Rob Jones <rob.jones@codethink.co.uk>,
WANG Chao <chaowang@redhat.com>,
open list <linux-kernel@vger.kernel.org>,
"open list:MEMORY MANAGEMENT" <linux-mm@kvack.org>,
Spencer Baugh <Spencer.baugh@purestorage.com>
Subject: Re: [PATCH] mm: add resched points to remap_pmd_range/ioremap_pmd_range
Date: Fri, 24 Jul 2015 10:00:35 -0700 [thread overview]
Message-ID: <20150724170035.GB3458@Sligo.logfs.org> (raw)
In-Reply-To: <1437694323.3214.353.camel@hp.com>
On Thu, Jul 23, 2015 at 05:32:03PM -0600, Toshi Kani wrote:
> On Thu, 2015-07-23 at 14:54 -0700, Spencer Baugh wrote:
> > From: Joern Engel <joern@logfs.org>
> >
> > Mapping large memory spaces can be slow and prevent high-priority
> > realtime threads from preempting lower-priority threads for a long time.
>
> Yes, and one of the goals of large page ioremap support is to address such
> problem.
Nice! Once we upgrade we should retest this one then.
> > ------------[ cut here ]------------
> > WARNING: at arch/x86/kernel/irq.c:182 do_IRQ+0x126/0x140()
> > Thread not rescheduled for 95 jiffies
> > CPU: 14 PID: 6684 Comm: foo Tainted: G W O 3.10.59+
> > 0000000000000009 ffff883f7fbc3ee0 ffffffff8163a12c ffff883f7fbc3f18
> > ffffffff8103f131 ffff887f48275ac0 000000000000002f 000000000000007c
> > 0000000000000000 00007fadd1e00000 ffff883f7fbc3f78 ffffffff8103f19c
> > Call Trace:
> > <IRQ> [<ffffffff8163a12c>] dump_stack+0x19/0x1b
> > [<ffffffff8103f131>] warn_slowpath_common+0x61/0x80
> > [<ffffffff8103f19c>] warn_slowpath_fmt+0x4c/0x50
> > [<ffffffff810bd917>] ? rcu_irq_exit+0x77/0xc0
> > [<ffffffff8164a556>] do_IRQ+0x126/0x140
> > [<ffffffff816407ef>] common_interrupt+0x6f/0x6f
> > <EOI> [<ffffffff81640483>] ? _raw_spin_lock+0x13/0x30
> > [<ffffffff8111b621>] __pte_alloc+0x31/0xc0
> > [<ffffffff8111feac>] remap_pfn_range+0x45c/0x470
>
> remap_pfn_range() does not have large page mappings support yet. So, yes,
> this can still take a long time at this point. We can extend large page
> support for this interface if necessary.
A cond_resched() is enough to solve the latency impact. But I suspect
large pages will perform better as well, so having that support would be
appreciated.
> > [<ffffffffa007f1f8>] vfio_pci_mmap+0x148/0x210 [vfio_pci]
> > [<ffffffffa0025173>] vfio_device_fops_mmap+0x23/0x30 [vfio]
> > [<ffffffff81124ed8>] mmap_region+0x3d8/0x5e0
> > [<ffffffff811253e5>] do_mmap_pgoff+0x305/0x3c0
> > [<ffffffff8126f3f3>] ? call_rwsem_down_write_failed+0x13/0x20
> > [<ffffffff81111677>] vm_mmap_pgoff+0x67/0xa0
> > [<ffffffff811237e2>] SyS_mmap_pgoff+0x272/0x2e0
> > [<ffffffff810067e2>] SyS_mmap+0x22/0x30
> > [<ffffffff81648c59>] system_call_fastpath+0x16/0x1b
> > ---[ end trace 6b0a8d2341444bde ]---
Jorn
--
A defeated army first battles and then seeks victory.
-- Sun Tzu
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-07-24 17:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 21:54 Spencer Baugh
2015-07-23 23:32 ` Toshi Kani
2015-07-24 17:00 ` Jörn Engel [this message]
2015-07-24 7:04 ` Michal Hocko
2015-07-24 16:56 ` Jörn Engel
2015-07-27 7:08 ` Michal Hocko
2015-07-27 8:29 ` Mike Galbraith
2015-07-27 15:18 ` Jörn Engel
2015-07-28 13:32 ` Michal Hocko
2015-07-28 17:08 ` Jörn Engel
2015-07-29 9:54 ` Michal Hocko
2015-07-30 15:22 ` Mike Galbraith
2015-07-30 16:58 ` Jörn Engel
2015-07-30 18:55 ` Mike Galbraith
2015-08-09 9:25 ` [hack] sched: create PREEMPT_VOLUNTARY_RT and some RT specific resched points Mike Galbraith
2015-08-09 10:51 ` Mike Galbraith
2015-08-06 8:55 ` [PATCH] mm: add resched points to remap_pmd_range/ioremap_pmd_range Mike Galbraith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150724170035.GB3458@Sligo.logfs.org \
--to=joern@purestorage.com \
--cc=Spencer.baugh@purestorage.com \
--cc=a.ryabinin@samsung.com \
--cc=adech.fo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=boaz@plexistor.com \
--cc=chaowang@redhat.com \
--cc=dvyukov@google.com \
--cc=edumazet@google.com \
--cc=fengguang.wu@intel.com \
--cc=hannes@cmpxchg.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=joern@logfs.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@amacapital.net \
--cc=mgorman@suse.de \
--cc=mhocko@suse.cz \
--cc=r.peniaev@gmail.com \
--cc=raindel@mellanox.com \
--cc=rob.jones@codethink.co.uk \
--cc=sbaugh@catern.com \
--cc=toshi.kani@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox