From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052114; b=SmmKF1U6lbpi7b3BhN4eVfOWyyFTpai8sApEcUF9MBifCqL7y0q/q6KNbWNtT0V0U7Ab SMmOkULeUE9jNFSCMmDiCZsc1U7POdkGZbD6D7oAy4o5neVrhqhwpZ6fXnlYYK014xQlB GA9Rja0zOPL/LSZ0mDz53FVCCn1m6fc0QgVFd+JmflJE/l7DXuCesOPD+WujR+cmFn+lr uCpI9o+MPcBN7b0fKM/NtcaXjFZ5oc+jVI/gTWXdGU6YWIhQT9viir95SSz0n5nGWWr6O vD64wthfBUFEoKHVjgbG6bI0ZBNqBmeqx+DQdD5g6aNogg/BfTyXMgMjVffJIoX//pw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052114; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=dnN69QVSg2lux0FUos1rPcnEjVrcuDiasQbnXYHb08w=; b=GgJL8CgiziUhR62WYpuer55OiJKvdGS2EHGQ9MJ3qNgvWW+WYbKr+bLdjuUjJW9d3zmi qfKYVcTP7uDFYWNgPtOduc9ZTqTsB0oPqCc97lSXt0WWwuD9aTogj1Tg1XVBzCCfK85c5 Em0GgSpsHFT8bqJbYNdyFQARb5K/+fS2yBr1Hwd4pl6k+N9S7WRYzRbAgJVGYyZeBZHvm uplXu5vei01Qqp2dVQ9WI+iDtQCZ06hOrTRDm3wtOa5m7vrO+F0MrbIJAJ9lUhgn5hwZB FHMUZicLFa/SCPL29wAI+QUc9dTDE7gOBWoCmtLvfQVBlRDvWrYkIjcsJGdYvAJMRZQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eus+xZZv; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Lu9Meflt; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D620606A32F for ; Mon, 30 Nov 2026 15:21:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D620606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eus+xZZv; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Lu9Meflt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796052114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dnN69QVSg2lux0FUos1rPcnEjVrcuDiasQbnXYHb08w=; b=eus+xZZv3vu9A6fC7Z9qBLvo9RIibs0+p0+omDX+VBf64h01PjIh9Xxs/LUDJbd82Uwc3k /Vt+QoWkuzYKdjNv23q3LVT/xN5tYkuyRnI+79/okO3qD9vbyIU4Fpu9id5K4pkgPCybkR NKhJDysEkvwBPmcjwmi+WA7nYmLHuYc= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-353-zs5tXqkeO5qPqvzijfLMeQ-1; Mon, 30 Nov 2026 15:21:50 +0000 X-MC-Unique: zs5tXqkeO5qPqvzijfLMeQ-1 X-Mimecast-MFC-AGG-ID: zs5tXqkeO5qPqvzijfLMeQ_1796052109 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c42888c50c4so945144266b.0 for ; Mon, 30 Nov 2026 07:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796052109; x=1796656909; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=dnN69QVSg2lux0FUos1rPcnEjVrcuDiasQbnXYHb08w=; b=Lu9MefltAhcSNUm7tysaXdkVXkoQ/E+GCOosFq76AP+tZYcjGRhQloBa2+tTCa5xW/ lZcBVwJmcAWr79Dc9Ji8Pg/lbKkgmV9Ws++bqQ2im6UTJGjYnO2aOeFZbUeFdZo1hmMb qUkgVHmz/hjraYxbkV9DmvzOU3vBU6slc/6EBOtWZfT0zZEf0MX8iN2VnL0NDecXsK1p yWT0+72dXqRtopUXDQ7UEmGu1a2SeTKYbMo5cx3TCu+hpl8mo8zRxhUhY0s9u3hv7/Ln kTd67tpmNXpje8AcNhuqRqtq/FQ4w9zbqMCxrAUn5+XFru3fXOD5ySs05seNcfPDSaBW rvng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796052109; x=1796656909; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dnN69QVSg2lux0FUos1rPcnEjVrcuDiasQbnXYHb08w=; b=X9X69hav0VCUEuKRMTqvHgiK3Nlr4UD3c4GfyzrmA8rMrNNU1xgzoHnkWZbuAYdQc3 JvZfVaVh70VfZwYvyoJ+IlCfTATErIpuE9RB+pwsK28zExTy6I8M3WveN+GNjbYmrL1S Zo7ibBDce6KHTW1415k2rD1vH5FQlZm8Ujr3CMj4P6bVOQ/JQWTXpBbKefhYOvyEeDHJ 6DlB2eo8TmJv+dhyidwxiHOX62a3dh8TlBDsMEIMbqZrlshBnQJD02bWOjbjsPo0GSPx 0/uEFx+mbkRAKyE2xr3zdHi6Vkpj7j4MwplqPE8d9jtF4rh1j2BHIAU2zmZklo6seMkl El7A== X-Forwarded-Encrypted: i=1; AL+hErFXdWE/Mg8vl3Lcb8TfGosumn8fwKmVoYQXYmk5qTJL9mWgxK+Mlpo2GO9WcHpcfqLCYpFtbtuRmN4thRU=@vger.kernel.org X-Gm-Message-State: APuU4Z9SeQybEqvJfbiVddWme2Mk8kEUQ2EtoIbJ6NCsWpp9F5dIUaXw 2mMQb5FYpIDyOex5P8CvSnafvxsRpamRlpkNrXXNHPwj+NuXuqRWOOXmfyC5p/6ginZkJqNbhz9 0u84sD0PQr5Etd1GuPaHaqYuO10Rq/2Wxy+96r2AzPt10H8vLt85Vf3tCtGYpwtpkaA== X-Gm-Gg: AZFdTZfeTn2pYe4TK2q/sTdhYrwOPVv0dP5DajHwFhJ7oy5O8yRc4wRMaimJu195n2F 0i46L2DKJHbFpq/S7qXObr+p2Zsh4qXmd8yBX12Sv6W0X4G7lS7L5oKzPIYGg06YV5Vx3oTry3Q e3xHOI2Lu1f1MJh8kkNzoG1anuvEeA+tWDzIiUaU2Qo0rakxN3jzsbxlRENrRJweHpiNM8oIOQa p3ktc2WTJR+GiBFJfjKdeQRILYi12bHu7J6KuUpqS4dW2uy9BVtEfvQrjUfYBYJnxWocxslq/Ok 9UEqSHTCXLRJ98rz6VC51uNtDwTJ45iffboxFPmO+B1gYwkfk3LK+Mjh1SEBddJfm4rmQ+taLqJ EFOxTPXTUfTjCc9Zb5nETHiprARs+US4DR3Evc+UA0RYzTXSRiIFxEbcp3C50yRYx+1i8otWqE+ YLhDkMuENksUHco9CRe5EdyzX3Q1dPELD4KKrKbfD5mDkua8930NDA7COewlliU8v1xSdteQt8S uaDon57vaRVV0BrHAZyva8agLwnMSrcKvx2WYUEL+C39P5Xiii5 X-Received: by 2002:a17:907:934c:b0:c51:282b:5489 with SMTP id a640c23a62f3a-c513a4aea3bmr2600259866b.3.1796052109262; Mon, 30 Nov 2026 07:21:49 -0800 (PST) X-Received: by 2002:a17:907:934c:b0:c51:282b:5489 with SMTP id a640c23a62f3a-c513a4aea3bmr2600254566b.3.1796052108671; Mon, 30 Nov 2026 07:21:48 -0800 (PST) Received: from cluster.. (4f.55.790d.ip4.static.sl-reverse.com. [13.121.85.79]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513b00117dsm1161116466b.80.2026.11.30.07.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:21:48 -0800 (PST) From: Alex Markuze To: Daolong Zhang , Ilya Dryomov , Viacheslav Dubeyko Cc: ceph-devel@vger.kernel.org, Jonathan Corbet , Shuah Khan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ceph: add compression_hint mount option Date: Mon, 30 Nov 2026 15:21:46 +0000 Message-Id: <20261130152146.4170099-1-amarkuze@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <1795399963.6B03A118.004.4jXqGK1FBjz36gl@fangwg01> References: <1795399963.6B03A118.004.4jXqGK1FBjz36gl@fangwg01> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Daolong, On the classic replicated OSD path, SETALLOCHINT can create an object before WRITE handles a newer truncate sequence. WRITE then treats the object as already present and can extend it to the truncate boundary before writing the data. For example, after a sparse file is shrunk, an absent object can have a 3 MiB object-local truncate boundary. The code path with the hint can leave that object at 3 MiB after a 4 KiB direct write at the start of the object; without the hint, the same write creates a 4 KiB object. The extra logical bytes count toward the RADOS pool quota, so later CephFS writes can hit ENOSPC sooner. Please preserve the missing-object behavior for WRITE’s truncate handling: the compression hint alone should not make WRITE treat the object as already present. Thanks, Alex