Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1181140 > unrolled thread
| Started by | Minchan Kim <minchan@kernel.org> |
|---|---|
| First post | 2015-07-10 02:50 +0200 |
| Last post | 2015-07-10 03:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v7 7/7] zsmalloc: use shrinker to trigger auto-compaction Minchan Kim <minchan@kernel.org> - 2015-07-10 02:50 +0200
Re: [PATCH v7 7/7] zsmalloc: use shrinker to trigger auto-compaction Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-07-10 03:00 +0200
| From | Minchan Kim <minchan@kernel.org> |
|---|---|
| Date | 2015-07-10 02:50 +0200 |
| Subject | Re: [PATCH v7 7/7] zsmalloc: use shrinker to trigger auto-compaction |
| Message-ID | <pKuFP-7if-5@gated-at.bofh.it> |
Hi Sergey, On Wed, Jul 08, 2015 at 08:31:53PM +0900, Sergey Senozhatsky wrote: > Perform automatic pool compaction by a shrinker when system > is getting tight on memory. > > User-space has a very little knowledge regarding zsmalloc fragmentation > and basically has no mechanism to tell whether compaction will result > in any memory gain. Another issue is that user space is not always > aware of the fact that system is getting tight on memory. Which leads > to very uncomfortable scenarios when user space may start issuing > compaction 'randomly' or from crontab (for example). Fragmentation > is not always necessarily bad, allocated and unused objects, after all, > may be filled with the data later, w/o the need of allocating a new > zspage. On the other hand, we obviously don't want to waste memory > when the system needs it. > > Compaction now has a relatively quick pool scan so we are able to > estimate the number of pages that will be freed easily, which makes it > possible to call this function from a shrinker->count_objects() callback. > We also abort compaction as soon as we detect that we can't free any > pages any more, preventing wasteful objects migrations. > > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > Suggested-by: Minchan Kim <minchan@kernel.org> Acked-by: Minchan Kim <minchan@kernel.org> Thanks for great work! -- 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/
[toc] | [next] | [standalone]
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Date | 2015-07-10 03:00 +0200 |
| Message-ID | <pKuPv-7lp-1@gated-at.bofh.it> |
| In reply to | #1181140 |
Hello Minchan, On (07/10/15 09:49), Minchan Kim wrote: > > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > > Suggested-by: Minchan Kim <minchan@kernel.org> > Acked-by: Minchan Kim <minchan@kernel.org> > > Thanks for great work! Thanks! -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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web