Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1334766lqt; Tue, 19 Mar 2024 23:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcCCS1VT8G80wiKyv10yMq9G+plNlGJ3szcq4ixga5MLQY0V0UNuNiZEF00cscQEscACBH1okg072NH4dqK1KPqktLddSNgXlCAcoepg== X-Google-Smtp-Source: AGHT+IHmqmp+fVjmW3KOgvB7KN+iFk/5B73pCq6AdNp+2LB3dqY8NWICmw5VNYNDQHD3LMFQsaN3 X-Received: by 2002:a05:6a20:728d:b0:1a3:683a:aeb5 with SMTP id o13-20020a056a20728d00b001a3683aaeb5mr2601336pzk.22.1710917412648; Tue, 19 Mar 2024 23:50:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710917412; cv=pass; d=google.com; s=arc-20160816; b=yiZFJljLtDI70CDV8oJtATOEeHX4UvGMeSCuhF02WoeZWikkOPyFZBBcJJqFouEvas d4nXuAieaLHqvusq5BFr9aV/LB8l3+nGLKxKTvvPlfqEscLOhsMYLquPORAkv3X/bOlC cqomKIPqTvyPkyWwO6FAqkJ/VHl870ugOtGXtr8PiSw2mpFQ+sUoeyhrjjU5ixWR5/Qp aBVgBb38+Z0EvSTCvPnFautuWXAF2JepakrycRx4VWC4yZ6BL4U2JjsbRo3kdbQMrYvl Ww5XlkAgUZ/ZcHzlVhw7zssu8EtdQ1kNGEqB/J7Q6uidrhpkuF+80rordca26/h4BcGa 9Zsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=ylnHj9Vu7UNqVEChYen+LYHjtmtkmgtctfRSqjasIqM=; fh=OC5Sv9EKfDTC4gMkZfAXAne6qiap7+tErfDCWM6xzE0=; b=SQ66QRdJehZfiq9GCcoB3nETIgr7oAA8jxHRTyND3Wovff/C+3kWUQJpXB5Zg2JFpR ZkHRLv+QSDis9Tu6rZ8ZH5KdHtDbdSiFCvongJLGUQmWSG53mPdwurAJFiJT4+q2n3cP YdQHtB2dwlMxSuzhNsswnTmgFOl6au8cAEUkidVgrMs8nbyYT5i/hr1Y9GWUY/fiUDVb +A9RkxlATpOuJzvrUguTEPXj95/HmgRCfRmbgyk91J4A9hIK+9IOdfkG8d0HEV40hZTH N8/poP+5oA0Nbzd++o0olybBZD25/Z8iciUPVLdqztbGu3jNyJ+PZqOYatsrSx7q2CLb MhhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-108508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108508-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c13-20020aa78c0d000000b006e6cf11a823si12034335pfd.255.2024.03.19.23.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 23:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-108508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108508-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5811E283EBD for ; Wed, 20 Mar 2024 06:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0DC537169; Wed, 20 Mar 2024 06:50:04 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93AB936AE4; Wed, 20 Mar 2024 06:49:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710917404; cv=none; b=QafIlcjiI/O0nBA5KN5OBnKvS8Zr8SpPnKU22GE/JO0Q0boT1DEv3rMrfr3sEbF47FTYYmqlPohavuvLFAMops4YgZEUfe0EFjponnKQI5rPDOxOPVbWcuTBi6zKtuV6kawWsfXTfSGkbIrCxsEEomejDZaK7I1a/LPWFRZ2sh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710917404; c=relaxed/simple; bh=qXzaMmUjLgtfU6ksOSl/6Quc/HlC9r7F3efPpkAMX30=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TL2hF0fVxLJ6LdF+kyYYXX1lKhG9JFsmbtIGInVbArToJ2Y2UWp9Eiq+EX9IiUlPuDS65cIXB0LCtOrRdZ26bM+3JVM1AMK4O2vum90zGL1kM4nucjXH8BjUUDezNRwKX+tV9mfIDxnyD3GUwRtr21ihnf2H4iqnEjr9Wfsz+G4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: de7c52fd4db04ec0b22eddd14bf9b6b8-20240320 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:cf5866be-525f-4540-8c20-3d27b7a82ea4,IP:10, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-10 X-CID-INFO: VERSION:1.1.37,REQID:cf5866be-525f-4540-8c20-3d27b7a82ea4,IP:10,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-10 X-CID-META: VersionHash:6f543d0,CLOUDID:6b169d90-e2c0-40b0-a8fe-7c7e47299109,B ulkID:2403201000570FJ81X2B,BulkQuantity:10,Recheck:0,SF:19|44|64|66|24|17| 102,TC:nil,Content:0,EDM:-3,IP:-2,URL:11|1,File:nil,RT:nil,Bulk:40,QS:nil, BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_OBB,TF_CID_SPAM_ULN,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS, TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: de7c52fd4db04ec0b22eddd14bf9b6b8-20240320 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 278497469; Wed, 20 Mar 2024 14:44:25 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id 0C9FCB80758A; Wed, 20 Mar 2024 14:44:25 +0800 (CST) X-ns-mid: postfix-65FA85C8-997272164 Received: from [172.30.60.81] (unknown [172.30.60.81]) by node2.com.cn (NSMail) with ESMTPA id BE370B80758A; Wed, 20 Mar 2024 06:44:21 +0000 (UTC) Message-ID: <021efce7-1e40-43a6-9bfd-0d968bfcd5a8@kylinos.cn> Date: Wed, 20 Mar 2024 14:44:21 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] config/mips: support zswap function Content-Language: en-US To: Yosry Ahmed Cc: tsbogend@alpha.franken.de, geert+renesas@glider.be, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@vger.kernel.org, hannes@cmpxchg.org, nphamcs@gmail.com, chengming.zhou@linux.dev References: <20240126075547.1521556-1-mengfanhui@kylinos.cn> From: mengfanhui In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Zswap and zsmalloc are compression methods, and kernel configuration can = be configured simultaneously. zbud is an algorithm, and users can use that method if they want to use i= t.It won't affect each other. =E5=9C=A8 2024/3/20 14:00, Yosry Ahmed =E5=86=99=E9=81=93: > On Fri, Jan 26, 2024 at 03:55:47PM +0800, mengfanhui wrote: >> Solution /sys/module/zswap/parameters/enabled attribute node >> does not exist issue=EF=BC=8Chandle zpool zbud initialization failed, >> open CONFIG_ZSWAP CONFIG_ZPOOL CONFIG_ZBUD configuration,manual >> zswap function by /sys/module/zswap/parameters/enabled file >> >> Signed-off-by: mengfanhui >> --- >> arch/mips/configs/generic_defconfig | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/mips/configs/generic_defconfig b/arch/mips/configs/g= eneric_defconfig >> index 071e2205c7ed..14884df392f4 100644 >> --- a/arch/mips/configs/generic_defconfig >> +++ b/arch/mips/configs/generic_defconfig >> @@ -13,6 +13,9 @@ CONFIG_CGROUP_DEVICE=3Dy >> CONFIG_CGROUP_CPUACCT=3Dy >> CONFIG_NAMESPACES=3Dy >> CONFIG_USER_NS=3Dy >> +CONFIG_ZSWAP=3Dy >> +CONFIG_ZPOOL=3Dy >> +CONFIG_ZBUD=3Dy >=20 > Any reason for choosing zbud over zsmalloc, the default zswap allocator= ? >=20 >> CONFIG_SCHED_AUTOGROUP=3Dy >> CONFIG_BLK_DEV_INITRD=3Dy >> CONFIG_BPF_SYSCALL=3Dy >> --=20 >> 2.25.1 >>