-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use dedicated SLABs #19
Comments
Hi, I am Ayush, an outreachy applicant. I have worked on several patches and got them reviewed as mentioned in project guidelines. I want to work on this issue. Can you please assign it to me and help me get started on the same? |
Hi Ayush! The idea is to replace However, |
I'm assigning this issue to you. Please regularly update it with your progress. This doesn't need to be long but just enough to make sure you are not blocked. |
Thanks a lot @l0kod . Will definitely keep updating progress and seek your guidance if anywhere I feel stuck. |
Hello @l0kod . I have gone through the lsm_file_cache code for reference and tried to use kmem_cache_zalloc( ) for struct landlock_object. Let me share the steps taken, kindly correct me wherever I am wrong:
the problem I am facing is: I am not getting where to call the initialisation function to ensure cache is created only once. could you help me please? @l0kod @AlisonSchofield |
This looks good.
You can call the initialization function from |
Okay. Thanks @l0kod . I am sending the changes for your review. Kindly look into them and instruct me further. Thanks. |
For reference: the related patch. |
Hello @l0kod. |
Hello @l0kod . I sent a V2 of the patch. Could you please look into it and suggest me if any changes have to be done? Thanks |
Hello @l0kod @AlisonSchofield. I have created a complete patch aimed at solving this issue where I have used kmem to replace the kzalloc calls with kmem_cache_zalloc and also have metrics using /proc/slabinfo. Kindly look into it. Thanks |
Hello @l0kod @AlisonSchofield. Kindly look into the patch I created as today is the last date for submitting our final application. |
You can use the link to the latest patch as contribution. I'll review it shortly. |
Ok @l0kod . Thanks. Now I wish to change the calls for struct landlock_ruleset as well and as you mentioned, i have to use kmem_buckets_alloc(). Can you guide me about how to proceed with it? |
It's too soon to work on As suggested in the mailing list, some metrics would be useful to know the impact of |
Hello @l0kod. In my recent patch, I included some metrics from /proc/slabinfo, as that was mentioned in the issue. Any other metrics also needed for the same?? |
By metric I mean to measure the performance impact of such change. This should help: #24 |
I guess @ayush-0110 is not working on this task anymore. Let's close this task until we get the benchmark tools, see #24 and upstream comments. |
Using a
kmem_cache
per Landlock's kernel type could improve performance, and it would also be useful to get some metrics via/proc/slabinfo
.One SLAB per:
struct landlock_object
struct landlock_rule
struct landlock_ruleset
struct landlock_hierarchy
The text was updated successfully, but these errors were encountered: