PlatformLab / HomaModule

A Linux kernel module that implements the Homa transport protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homa's Maximum Message Length Modification

amjal opened this issue · comments

The maximum length of a message in Homa is set by the HOMA_MAX__MESSAGE_LENGTH macro defined in homa.h. In previous builds of the module, particularly for kernel version 5.17.7, I could just change the macro value, and it worked with larger messages.

With the newest build, however, there is an assertion error I get from this line:

#if !defined(__cplusplus)
_Static_assert(sizeof(struct homa_recvmsg_args) >= 96,
        "homa_recvmsg_args shrunk");
_Static_assert(sizeof(struct homa_recvmsg_args) <= 96,
        "homa_recvmsg_args grew");
#endif

I appreciate it if you explain to me why this limit is there in the first place. Is this an implementation limitation? Or is just placed for performance optimization? What is a safe way of modifying it? If these are answered somewhere in the documentation, please just direct me towards them. Thanks.

Thanks for the explanation. Commenting out the assertion and recompiling works.