Conversation
Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the performance of Nixl within LMCache's multiprocess environment by optimizing file-based storage management. It introduces a mechanism to consolidate multiple L1 memory pages into larger storage files, which streamlines I/O operations and reduces system resource overhead. Additionally, a minor adjustment was made to prevent busy-waiting in a critical lookup path, contributing to overall system efficiency. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a performance improvement for the nixl storage backend by allowing multiple pages to be grouped into a single file, which reduces the number of open file descriptors. The changes are primarily in nixl_store_l2_adapter.py to support a file_size parameter. Additionally, a time.sleep() is added to a busy-wait loop in server.py to reduce CPU consumption.
The overall approach is solid, but I've identified a critical bug in the new implementation within nixl_store_l2_adapter.py where an incorrect variable is passed to a function, which would likely cause transfers to fail. Please see the specific comment for details and a suggested fix.
Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn>
| if found_count is not None: | ||
| break | ||
|
|
||
| time.sleep(0.001) |
There was a problem hiding this comment.
Let's don't have this here but have #2710 merged. That will the problem here
* add file size config Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * fix minor Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * revert some logs Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> --------- Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn>
* add file size config Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * fix minor Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * revert some logs Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> --------- Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> Signed-off-by: shaoxiawjc <wjc2800@163.com>
* add file size config Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * fix minor Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * revert some logs Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> --------- Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> Signed-off-by: Aaron Wu <aaron.wu@dell.com>
* add file size config Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * fix minor Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * revert some logs Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> --------- Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn>
* add file size config Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * fix minor Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> * revert some logs Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn> --------- Signed-off-by: YaoJiayi <120040070@link.cuhk.edu.cn>
What this PR does / why we need it:
Specify file size in nixl backend.
Special notes for your reviewers:
If applicable: