Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1277561
| From | Vladimir Davydov <vdavydov@virtuozzo.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated |
| Date | 2015-11-25 17:30 +0100 |
| Message-ID | <qyL7c-gt-23@gated-at.bofh.it> (permalink) |
| References | <qyKkN-87J-13@gated-at.bofh.it> <qyKuu-8c2-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Nov 25, 2015 at 04:45:13PM +0100, Vlastimil Babka wrote: > On 11/25/2015 04:36 PM, Vladimir Davydov wrote: > > Block device drivers often hand off io request processing to kernel > > threads (example: device mapper). If such a thread calls kmalloc, it can > > dive into direct reclaim path and end up waiting for too_many_isolated > > to return false, blocking writeback. This can lead to a dead lock if the > > Shouldn't such allocation lack __GFP_IO to prevent this and other kinds of > deadlocks? And/or have mempools? Not necessarily. loopback is an example: it can call grab_cache_write_begin -> add_to_page_cache_lru with GFP_KERNEL. > PF_KTHREAD looks like a big hammer to me that will solve only one > potential problem... This problem can result in processes hanging forever. Any ideas how this could be fixed in a better way? Thanks, Vladimir -- 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] vmscan: do not throttle kthreads due to too_many_isolated Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-25 16:40 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Vlastimil Babka <vbabka@suse.cz> - 2015-11-25 16:50 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-25 17:30 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-26 09:20 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Michal Hocko <mhocko@kernel.org> - 2015-11-27 14:00 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-27 14:50 +0100
Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated Michal Hocko <mhocko@kernel.org> - 2015-11-27 16:10 +0100
csiph-web