From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757501AbcBSERr (ORCPT ); Thu, 18 Feb 2016 23:17:47 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34963 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757226AbcBSERq (ORCPT ); Thu, 18 Feb 2016 23:17:46 -0500 Date: Fri, 19 Feb 2016 13:19:02 +0900 From: Sergey Senozhatsky To: Sergey Senozhatsky Cc: Joonsoo Kim , Andrew Morton , Minchan Kim , Linux Memory Management List , LKML , Sergey Senozhatsky Subject: Re: [RFC PATCH 3/3] mm/zsmalloc: change ZS_MAX_PAGES_PER_ZSPAGE Message-ID: <20160219041902.GA976@swordfish> References: <1455764556-13979-1-git-send-email-sergey.senozhatsky@gmail.com> <1455764556-13979-4-git-send-email-sergey.senozhatsky@gmail.com> <20160218095536.GA503@swordfish> <20160218101909.GB503@swordfish> <20160219041601.GA820@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160219041601.GA820@swordfish> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (02/19/16 13:16), Sergey Senozhatsky wrote: > # cat /sys/kernel/debug/zsmalloc/zram0/classes > class size huge almost_full almost_empty obj_allocated obj_used pages_used pages_per_zspage > 0 32 0 0 0 0 0 1 > 1 48 0 0 0 0 0 3 > 2 64 3 0 31360 31355 490 1 > 3 80 1 1 62781 62753 1231 1 [..] > 254 4096 Y 0 0 632586 632586 632586 1 > > so BAD classes are 10 times more often than 64 bytes objects for example. and not all of 4096 a typo, ^^^^^ 80 bytes. and 20 times class 64. -ss