Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1276132
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() |
| Date | 2015-11-24 09:10 +0100 |
| Message-ID | <qygPL-5uK-1@gated-at.bofh.it> (permalink) |
| References | <qyd5v-33y-3@gated-at.bofh.it> <qyf7k-4lL-3@gated-at.bofh.it> <qyfTI-4UT-11@gated-at.bofh.it> <qygmK-558-7@gated-at.bofh.it> <qygG6-5c0-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On (11/24/15 16:57), Minchan Kim wrote: [..] > > hm, ok, may be. > > but the question whether we want to waste pages on additional streams > > (especially, e.g. if we already have, say, 10 streams) is still valid. > > a more intuitive here is to release some unneeded streams, not to increase > > our pressure allocating new ones. well, at least it seems to be so. > > those pages can be used by zsmalloc, for example. > > I think your claim make sense if the failure comes from high memory > pressure but order-3 alloc failure even if there are lots of order-0 > free pages in my experience is easy to encouter so I think it doesn't > mean memory pressure but just memory fragmentation. hm, yes, fragmentation can be one of the reasons. > > > > ... and add GFP_NOIO to both kzalloc() and __vmalloc(). > > > > > > I can add it. The harmness is really ignorable but as I mentioned > > > at reply of Andrew, what's the benefit with GFP_NOIO? > > > We couldn't make forward progress with __GFP_RECLAIM in reclaim > > > context. > > > > aha, I probably missed that out. > > (well, and, technically, things can change). > > My speaking came from MM internal knowledge so I accept your concern. > if you prefer like GFP_NOIO, I will use it in next spin which > makes reader less confused. ok, I found your comment : It would be void *most of time* because it is called in reclaim context : and reclaim path bails out to avoid recursion of direct reclaim : by PF_MEMALLOC without trying reclaim. : However, the reason I said *most of time* is we has another context : the funcion could be called. well, we also allocate streams from sysfs store and during 'normal' IO (e.g. from fs). wouldn't GFP_NOIO be helpful there? -ss -- 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 1/3] zram/zcomp: use GFP_NOIO to allocate streams Minchan Kim <minchan@kernel.org> - 2015-11-24 05:10 +0100
[RFC 3/3] zram: pass gfp from zcomp frontend to backend Minchan Kim <minchan@kernel.org> - 2015-11-24 05:10 +0100
[PATCH 2/3] zram: try vmalloc() after kmalloc() Minchan Kim <minchan@kernel.org> - 2015-11-24 05:10 +0100
Re: [PATCH 1/3] zram/zcomp: use GFP_NOIO to allocate streams Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 07:00 +0100
Re: [PATCH 1/3] zram/zcomp: use GFP_NOIO to allocate streams Minchan Kim <minchan@kernel.org> - 2015-11-24 08:20 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 07:20 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 07:50 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Minchan Kim <minchan@kernel.org> - 2015-11-24 08:10 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Minchan Kim <minchan@kernel.org> - 2015-11-24 08:10 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 08:40 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Minchan Kim <minchan@kernel.org> - 2015-11-24 09:00 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 09:10 +0100
Re: [PATCH 2/3] zram: try vmalloc() after kmalloc() Minchan Kim <minchan@kernel.org> - 2015-11-24 09:20 +0100
csiph-web