Skip to content
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

NSFS endpoint should set its process/threads name in the OS to be identified accurately #8049

Closed
guymguym opened this issue May 15, 2024 · 5 comments · Fixed by #8095 or #8116
Closed
Labels
NS-FS Type:Enhancement New suggestions for behaviours
Milestone

Comments

@guymguym
Copy link
Member

Is your feature request related to a problem? Please describe.
We want GPFS to identify the noobaa endpoint processes so that it can assist with #8039.

Describe the solution you'd like
Use one of https://linux.die.net/man/2/prctl or pthread_setname_np or setprocname or setproctitle (need to figure out which one) in order to set the process name to "noobaa".

Describe alternatives you've considered
We considered adding a special libgpfs library call that will set the calling process attributes, but setting the name is less coupled.

@guymguym guymguym added Type:Enhancement New suggestions for behaviours NS-FS labels May 15, 2024
@guymguym guymguym added this to the 5.16.z milestone May 15, 2024
@guymguym
Copy link
Member Author

CC @eshelmarc @romayalon

@nimrod-becker nimrod-becker modified the milestones: 5.16.z, 5.15.5 May 22, 2024
@romayalon romayalon self-assigned this May 23, 2024
@romayalon
Copy link
Contributor

@eshelmarc Should I set the process title (setproctitle) ? this is the property you will get?

@romayalon
Copy link
Contributor

re-opening based on @eshelmarc check, setting the process/thread title seems to be not enough, calling gpfs_ganesha() might do the trick.

@rkomandu
Copy link
Collaborator

rkomandu commented Jun 6, 2024

if we don't enable Ganesha in the CES env, does the code path can be reached ?

@eshelmarc
Copy link
Contributor

eshelmarc commented Jun 8, 2024

we don't need to enable Ganesha to use this interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NS-FS Type:Enhancement New suggestions for behaviours
Projects
None yet
5 participants