Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1274592
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc |
| Date | 2015-11-21 03:20 +0100 |
| Message-ID | <qx5Wq-7lt-1@gated-at.bofh.it> (permalink) |
| References | <qwQNI-5O7-23@gated-at.bofh.it> <qx5Wq-7lt-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On (11/21/15 11:10), Sergey Senozhatsky wrote: > Cc Andrew > > On (11/20/15 19:02), Kyeongdon Kim wrote: > > When we're using LZ4 multi compression streams for zram swap, > > we found out page allocation failure message in system running test. > > That was not only once, but a few(2 - 5 times per test). > > Also, some failure cases were continually occurring to try allocation > > order 3. > > > > In order to make parallel compression private data, we should call > > kzalloc() with order 2/3 in runtime(lzo/lz4). But if there is no order > > 2/3 size memory in that time, page allocation fails. > > This patch makes to use vmalloc() as fallback of kmalloc(), this > > prevents page alloc failure warning. > > > > After this, we never found warning message in running test, also > > It could reduce process startup latency about 60-120ms in each case. > > Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > with the only nit that the subject should be "try kmalloc() before vmalloc()" or similar, not "prevent page allocation failure", I think. -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 v2] zram: Prevent page allocation failure during zcomp_strm_alloc Kyeongdon Kim <kyeongdon.kim@lge.com> - 2015-11-20 11:10 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-21 03:20 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2015-11-21 10:40 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-21 03:20 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Minchan Kim <minchan@kernel.org> - 2015-11-23 03:20 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-23 04:20 +0100
Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-23 04:40 +0100
csiph-web