Skip to content

[Feat] Mooncake & Mooncake|Posix#945

Open
UESTC-AHao wants to merge 1 commit intoModelEngine-Group:developfrom
UESTC-AHao:dev_fh_mooncake
Open

[Feat] Mooncake & Mooncake|Posix#945
UESTC-AHao wants to merge 1 commit intoModelEngine-Group:developfrom
UESTC-AHao:dev_fh_mooncake

Conversation

@UESTC-AHao
Copy link
Copy Markdown
Contributor

Purpose

UCM + Mooncake & Mooncake|Posix (Ascend 0.18.0)

Modifications

unified-cache-management\examples\ucm_mooncake_config.yaml

Test

master_server_address: "127.0.0.1:50088"
metadata_server: "P2PHANDSHAKE"
protocol: "ascend"
global_segment_size: 32212254720
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explain the meaning of these parameters

return self.store_.Check(task.task_id)

def register_memory(self, base_addr: int, total_size: int) -> None:
self.store_.RegisterMemory(base_addr, total_size)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the return value of RegisterMemory be validated

Comment thread ucm/store/ucmstore_v1.h
* @param total_size Total size of the memory region in bytes.
* @return Status::OK on success, error code on failure.
*/
virtual Status RegisterMemory(void* base_addr, size_t total_size) = 0;
Copy link
Copy Markdown
Contributor

@sumingZero sumingZero May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If RegisterMemory is Mooncake-specific operation, should it be handled internally within MooncakeStore rather than being added as a public interface in StoreV1 base class? The current design forces all other store implementations to provide empty stub methods, violating Interface Segregation Principle.

metadata_server,
protocol,
global_segment_size,
replica_num,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_mooncake_store() is called with an extra argument worker_num, but its function signature does not define worker_num

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants