From: Alex Markuze <amarkuze@redhat.com>
To: Daolong Zhang <dlzhangak@isoftstone.com>,
Ilya Dryomov <idryomov@gmail.com>,
Viacheslav Dubeyko <slava@dubeyko.com>
Cc: ceph-devel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
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 [thread overview]
Message-ID: <20261130152146.4170099-1-amarkuze@redhat.com> (raw)
In-Reply-To: <1795399963.6B03A118.004.4jXqGK1FBjz36gl@fangwg01>
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
prev parent reply other threads:[~2026-11-30 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 2:12 Daolong Zhang
2026-11-30 15:21 ` Alex Markuze [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130152146.4170099-1-amarkuze@redhat.com \
--to=amarkuze@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=dlzhangak@isoftstone.com \
--cc=idryomov@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=slava@dubeyko.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®