[Lustre-devel] Query to understand the Lustre request/reply message

Alexey Lyashkov alexey.lyashkov at clusterstor.com
Thu Oct 14 07:40:14 PDT 2010


Andreas,

On Oct 14, 2010, at 17:31, Andreas Dilger wrote:

> On 2010-10-13, at 23:18, Nicolas Williams wrote:
>> On Thu, Oct 14, 2010 at 06:38:16AM +0300, Alexey Lyashkov wrote:
>>> On Oct 14, 2010, at 03:28, Nicolas Williams wrote:
>>>> Yes, it's possible to add buffers to requests.  It's not possible to add
>>>> buffers to _replies_ to existing RPCs unless you know the client expects
>>>> those additional buffers -- existing clients expect a given maxsize for
>>>> each reply, and if your reply is bigger then it will get dropped.
>>> It is wrong for last ~1year.
>>> ~1year ago i add code to ptlrpc layer which a adjust buffer for reply, and resend a request.
>> 
>> Ah, I didn't know that was in 1.8.  Are there interop issues (with older
>> clients) though with sending larger replies than expected?
> 
> Nico, it has always been possible in the past to increase the size of any buffer in a request, or in a reply (if the total reply size will fit into the pre-allocated reply buffer).  An older peer would just ignore the bytes beyond the known part of the buffer.
> 
I think that question don't about rebalance buffers size in message,
i think that sending large reply in smaller reply buffer.
LNet don't able to put large reply to small buffer (without truncate flag, which is not exist in older ptlrpc version).
without that flag you will see messages 
>>
                CERROR("Matching packet from %s, match "LPU64
                       " length %d too big: %d left, %d allowed\n",
                       libcfs_id2str(src), match_bits, rlength,
                       md->md_length - offset, mlength);
>>
and LNet will drop message without notify PtlRPC.


> Is that not true with the 2.x RPC handling?
> 
2.x able to rebalance space between buffers (but looks by hand), and able adjust reply buffer after truncated reply.



--------------------------------------
Alexey Lyashkov
alexey.lyashkov at clusterstor.com







More information about the lustre-devel mailing list