From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753604AbbFDOsH (ORCPT ); Thu, 4 Jun 2015 10:48:07 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34451 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbbFDOsD (ORCPT ); Thu, 4 Jun 2015 10:48:03 -0400 Date: Thu, 4 Jun 2015 23:47:30 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Sergey Senozhatsky , Sergey Senozhatsky , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 07/10] zsmalloc: introduce auto-compact support Message-ID: <20150604144730.GA484@swordfish> References: <1432911928-14654-1-git-send-email-sergey.senozhatsky@gmail.com> <1432911928-14654-8-git-send-email-sergey.senozhatsky@gmail.com> <20150604045725.GI2241@blaptop> <20150604053056.GA662@swordfish> <20150604062712.GJ2241@blaptop> <20150604070416.GK2241@blaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150604070416.GK2241@blaptop> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/04/15 16:04), Minchan Kim wrote: [..] > How about using slab shrinker? > If there is memory pressure, it would be called by VM and we will > try compaction without user's intervention and excessive object > scanning should be avoid by your zs_can_compact. hm, interesting. ok, have a patch to trigger compaction from shrinker, but need to test it more. will send the updated patchset tomorrow, I think. -ss > The concern I had about fragmentation spread out all over pageblock > should be solved as another issue. I'm plaing to make zsmalloced > page migratable. I hope we should work out it firstly to prevent > system heavy memory fragmentation by automatic compaction. >