Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7123324rwb; Wed, 23 Nov 2022 02:27:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7D9OE2xcv5YiC1LYZf4kZUh+11KUZ3i4n3mONNNuS66aqDLBX/G5C48I9BA+HoCgF0We5S X-Received: by 2002:a17:902:7445:b0:186:b5c8:4c8f with SMTP id e5-20020a170902744500b00186b5c84c8fmr8627160plt.124.1669199247612; Wed, 23 Nov 2022 02:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669199247; cv=none; d=google.com; s=arc-20160816; b=CNm7JnrsAzhRqZGMYJIqasPvU5YAs1m/8thNxlUtzTRhavHcQli103PvaTy1bc5eZV +yrUWgrw7inLQqB8JvbgiB3BMN4vQPY3sjef/WOExu7SZQyh4E0LyPcVJbDANgZXGHmO 3l228qATOab/iBl4rRi88tNGoAeKEWQ7uskTi6AyTrMI9lkV2xtYqzfSNj40Rz3c1yOa bkaizOM50ZWb6T2uLJdv0soNy1A6fJDV1h8PtWV8IllpweW3cser2lt0Vcqhy0zQ3i2f iv608JbonB408evZfTr0TSrRgOYqY9KfcSHW9DE+M3ODJ7fk3AA1tsTVdvLJj+eNv/FP FD3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=xF2LqQnAmt9x2NwV89/RQYiuJ8szJL/yCkefPCbEAkg=; b=C5PuUCrBo7L616Wn3JRweFjEHNi0S5Yph9ObicQndm6nMb7gxBXW+gg+ameoDP/+az FdExZxutShMLe/r2s9va2LEgRnTAyInrPjL629ohSlquvBXcuM7ZfxTX51BhfSIe6bdy Jlke92dH8G05BoOzuIvCj8sZco/C/HPGGJyJtMC32aWUJh9ccnB0fPc3fM9gkfslGDak ovB/GQ0bOxQ+/eLv50B0GFF/SuTFrfwZUwn3lV2+sieug+hW8xZv9KP8FgK9mRLuRE6n y8r+gOm4CF6gzuTVM7KOx4tFW5VD0RXm5Doqwk13e38Uc0vgiQalPLrc3fOFcXwcpEjk TZlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=dTX0CzUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a627905000000b0056bb63ab519si14861906pfc.310.2022.11.23.02.27.15; Wed, 23 Nov 2022 02:27:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=dTX0CzUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237123AbiKWJIK (ORCPT + 88 others); Wed, 23 Nov 2022 04:08:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237117AbiKWJHo (ORCPT ); Wed, 23 Nov 2022 04:07:44 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22418634E for ; Wed, 23 Nov 2022 01:07:43 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 58CFE5FD05; Wed, 23 Nov 2022 12:07:41 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1669194461; bh=xF2LqQnAmt9x2NwV89/RQYiuJ8szJL/yCkefPCbEAkg=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=dTX0CzUQjFUGbZD15aRoquNKkkaEASXHDIVpsmg6jI7nmBLLH0kg+LovniGLl+af0 xNFv1aHqOqU3TEoibDolerwkyGmyJ7HD7gk8HkkPZo4XZrWlIjaRW8IQEftWNax9hM lzJ3Oeu8WgUigSi8xmZxnslXqn5eDWeftQpJxnb6GRrq+WUHAiSL4jwb413iCEwGiq cyrhG+24QjmX02wVEin+VepOi0DxWI04D9AXc/btHWvOGmxT3SeVgJ+arEEKsH8ete UHJLn73CAn2BVCdJi64BRK1MW5/jprQTiYnz0zLnfqYDZur/hTP9kTpO4Zv+c8O8kp DqOA4Fsdjp+rA== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 23 Nov 2022 12:07:41 +0300 (MSK) From: Aleksey Romanov To: Sergey Senozhatsky CC: Johannes Weiner , "minchan@kernel.org" , "ngupta@vflare.org" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , kernel , "Dmitry Rokosov" Subject: Re: [RFC PATCH v1 0/4] Introduce merge identical pages mechanism Thread-Topic: [RFC PATCH v1 0/4] Introduce merge identical pages mechanism Thread-Index: AQHY/duSaivivX4eVEi4n5R4teXteK5JpjKAgABo/ACAAAH8AIAAmLKAgAEMI4CAAFIJAA== Date: Wed, 23 Nov 2022 09:07:40 +0000 Message-ID: <20221123090732.7aktww2jk6axdrld@cab-wsm-0029881.lan> References: <20221121190020.66548-1-avromanov@sberdevices.ru> <20221122121413.ssieckg523urj37h@cab-wsm-0029881.lan> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="us-ascii" Content-ID: <2068E6DE403ECC48BB19CC683B9416B6@sberdevices.ru> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/11/23 05:15:00 #20600357 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LOTS_OF_MONEY,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 01:13:55PM +0900, Sergey Senozhatsky wrote: > On (22/11/22 12:14), Aleksey Romanov wrote: > > > IIRC that was patent in question: > > >=20 > > > https://patentimages.storage.googleapis.com/e2/66/9e/0ddbfae5c182ac/U= S9977598.pdf > >=20 > > I think the patent is talking about "mapping the virtual address" (like > > in KSM). But zram works with the "handle" abstraction, which is a boxed > > pointer to the required object. I think my implementation and the paten= t > > is slightly different.=20 > >=20 > > Also, the patent speaks of "compressing" pages. In this case, we can ad= d > > zs_merge() function (like zs_compact()), that is, remove the merge logi= c > > at the allocator level. zsmalloc doesn't say anything about what object= s > > it can work with. Implementation at the zsmalloc level is possible, > > though more complicated that at the zram level.=20 > >=20 > > I believe that we can implement at least one of the options I proposed. > >=20 > > What do you think? >=20 > Oh, yeah, I'm not saying that we cannot have something like that > in zram/zsmalloc, just wanted to give some historical retrospective > on this and point at some implementation details that should be > considered. Okay, in this case, can you review my patches please? --=20 Thank you, Alexey=