From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wiki.archlinuxcn.org (wiki.archlinuxcn.org [104.245.9.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1659322A; Sun, 13 Apr 2025 04:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=104.245.9.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744517270; cv=none; b=OA3j/oob21QXt632Qc+MDO9dhnk8Xn2eyNadw9YwdfgvodxlEH9jCl7JoWge+xzofgzrwjtGJ8nPJxjBJldREDvZncvtbZ8cAlFx31PjZU5QShGnzAReflm/9agR/ZhvDlE9kCEF3Ya4NITU6i4LEai+5okjQKKx8A2Uf+rqPEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744517270; c=relaxed/simple; bh=xEz793w2M0kSImdcADaQSBCkIeRk63K3BR/qu/F3SEI=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=Ibvl8mj+6rEiTF0BAjiT77VpJz4K4/qpVyU/szOp8NMsim7osidmqt/u7IgG5HvYI7KglNJqiBpiXmi+3zeKP+/6EP9WvDtwl6zvtB0oRNhPSPRbtUOVFor/GOaJ6SljtkLM2Fdz3EkTvogf6PqPGFD65LjFPCNcbQCbe+Xi8/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=archlinuxcn.org; spf=pass smtp.mailfrom=archlinuxcn.org; dkim=pass (2048-bit key) header.d=archlinuxcn.org header.i=@archlinuxcn.org header.b=kKUVsq34; arc=none smtp.client-ip=104.245.9.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=archlinuxcn.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=archlinuxcn.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=archlinuxcn.org header.i=@archlinuxcn.org header.b="kKUVsq34" DKIM-Signature: a=rsa-sha256; bh=v0PyADkNvrOo96Mgb/IdXo5AW/uvVk3HKxrReDz3oFw=; c=relaxed/relaxed; d=archlinuxcn.org; h=Subject:Subject:Sender:To:To:Cc:Cc:From:From:Date:Date:MIME-Version:MIME-Version:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@archlinuxcn.org; s=default; t=1744517251; v=1; x=1744949251; b=kKUVsq34RF3aJ+3fgDtEVCk7tqlO245HSpfQBJd48VVxpekJKiPkq6z2yjK9FSVzmYuwwgzP f3OxK494RKwO77Mx7nnAfhP4HQVJpDI+KHrXWHLboNEYW2QacWTCcLbKR/8fugonEbcpXOlaRY5 ChE010Ud/Qg07r4hd41dV6ajq9hXMVk2KC8vH6fGKlfZrDwUpdSx28GpDjCIrsOzcPJfL6pGQQW pX+/Tn0bV59bb0GegJ1QW9X6XZ3sk6Wdw8gG8W3xg6Hy9MilL8rde5MMrwNFb2VDNtPXO8AE0Eq 4zO/i+VczMLe0+bqDri/8t+EbRdU2p+nMaOJd4dSr4VlA== Received: by wiki.archlinuxcn.org (envelope-sender ) with ESMTPS id e161c20b; Sun, 13 Apr 2025 12:07:31 +0800 Message-ID: <8c2e5d04-dbda-4b12-992e-34f0e70c7218@archlinuxcn.org> Date: Sun, 13 Apr 2025 12:07:26 +0800 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org From: Integral Subject: Maybe we can set default zstd compression level to 1 when SSD detected? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, When SSD is detected, maybe we can set default zstd compression level to 1. Current default compression level for zstd is 3, which is not optimal for SSDs. This GitHub Gist [1] can serve as a reference. An example is Fedora Workstation [2], which uses `zstd:1` as default compression option. [1] Link: https://gist.github.com/braindevices/fde49c6a8f6b9aaf563fb977562aafec [2] Link: https://fedoraproject.org/wiki/Changes/BtrfsTransparentCompression Sincerely, Integral