From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA652C33CB1 for ; Wed, 15 Jan 2020 09:55:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 979DB207FF for ; Wed, 15 Jan 2020 09:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729625AbgAOJzK (ORCPT ); Wed, 15 Jan 2020 04:55:10 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55114 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729504AbgAOJzJ (ORCPT ); Wed, 15 Jan 2020 04:55:09 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00F9rAgZ040719; Wed, 15 Jan 2020 04:54:57 -0500 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com with ESMTP id 2xhbprykn9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Jan 2020 04:54:56 -0500 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 00F9pgxS030824; Wed, 15 Jan 2020 09:54:56 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma03wdc.us.ibm.com with ESMTP id 2xhmf9mpcu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Jan 2020 09:54:56 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 00F9ss7X38404384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 09:54:54 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AA9AAAC05B; Wed, 15 Jan 2020 09:54:54 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 58FDDAC059; Wed, 15 Jan 2020 09:54:53 +0000 (GMT) Received: from [9.152.96.154] (unknown [9.152.96.154]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTPS; Wed, 15 Jan 2020 09:54:53 +0000 (GMT) Subject: Fwd: Re: [PATCH v4] btrfs: Use larger zlib buffer for s390 hardware compression References: <20200114161857.GD3929@suse.cz> To: Andrew Morton From: Zaslonko Mikhail Cc: Chris Mason , Josef Bacik , David Sterba , Richard Purdie , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Eduard Shishkin , Ilya Leoshkevich , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org X-Forwarded-Message-Id: <20200114161857.GD3929@suse.cz> Message-ID: Date: Wed, 15 Jan 2020 10:54:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200114161857.GD3929@suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-15_01:2020-01-15,2020-01-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 adultscore=0 spamscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001150084 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Andrew, Could you please pick this V4 btrfs patch and the other five patches from V3 patch set (https://lkml.org/lkml/2020/1/3/568). Older patches can be dropped from linux-next: * ac2aeaa0f4d3 btrfs: use larger zlib buffer for s390 hardware compression * ac19f15aea33 lib/zlib: add zlib_deflate_dfltcc_enabled() function * 3447c9a51196 s390/boot: add dfltcc= kernel command line parameter * 890060df4401 lib/zlib: add s390 hardware support for kernel zlib_inflate * 148f7d060405 s390/boot: rename HEAP_SIZE due to name collision * bfbef17740fd lib/zlib: add s390 hardware support for kernel zlib_deflate Thanks, Mikhail. -------- Forwarded Message -------- Subject: Re: [PATCH v4] btrfs: Use larger zlib buffer for s390 hardware compression Date: Tue, 14 Jan 2020 17:18:57 +0100 From: David Sterba Reply-To: dsterba@suse.cz To: Mikhail Zaslonko CC: Andrew Morton , Chris Mason , Josef Bacik , David Sterba , Richard Purdie , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Eduard Shishkin , Ilya Leoshkevich , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, Jan 08, 2020 at 11:51:03AM +0100, Mikhail Zaslonko wrote: > In order to benefit from s390 zlib hardware compression support, > increase the btrfs zlib workspace buffer size from 1 to 4 pages (if > s390 zlib hardware support is enabled on the machine). This brings up > to 60% better performance in hardware on s390 compared to the PAGE_SIZE > buffer and much more compared to the software zlib processing in btrfs. > In case of memory pressure, fall back to a single page buffer during > workspace allocation. > The data compressed with larger input buffers will still conform to zlib > standard and thus can be decompressed also on a systems that uses only > PAGE_SIZE buffer for btrfs zlib. > > Signed-off-by: Mikhail Zaslonko Reviewed-by: David Sterba