[LU-12330] Support per-session JOBID without using the environment Created: 23/May/19  Updated: 07/Feb/24  Resolved: 25/Nov/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0

Type: Improvement Priority: Minor
Reporter: Neil Brown Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-4186 Change lustre_get_jobid to read from ... Resolved
Related
is related to LU-10698 Specify complex JobIDs for Lustre Resolved
is related to LU-12511 Prepare lustre for adoption into the ... Open
is related to LU-17512 add conditional operator for 'jobid_n... Open
Rank (Obsolete): 9223372036854775807

 Description   

Reading from the environment of a process is something only that process should do. The current jobid code does this in the kernel and there is good reason to expect resistance to this when we resubmit the code for upstream inclusion.

So we need a different way to provide a job-id which is common to all tasks in a job across a cluster, but not necessarily all tasks on any given node.

A proposed way to do this is to leverage the "session-id" concept (see setsid(1)).

If we can associate a jobid with a session-id, then every session servicing a given job can be given the same jobid. The kernel can easily get the session-id for a process, and can then use an internal mapping to map this to the correct jobid.

 



 Comments   
Comment by Gerrit Updater [ 30/May/19 ]

Neil Brown (neilb@suse.com) uploaded a new patch: https://review.whamcloud.com/34995
Subject: LU-12330 obdclass: allow per-session jobids.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ab6c92bd296dd6f7f89261b66df216604ca9a03b

Comment by Gerrit Updater [ 25/Jun/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34995/
Subject: LU-12330 obdclass: allow per-session jobids.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a32ce8f50ecafa4fd44732023cc1d45f57cd56bd

Comment by James A Simmons [ 25/Jun/19 ]

Shall we add addition test or just close this ticket?

Comment by James A Simmons [ 15/Jul/19 ]

Looks like documentation for this work was added with https://review.whamcloud.com/#/c/35503

All that is left is adding test for this.

Comment by Gerrit Updater [ 12/Aug/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/39656
Subject: LU-12330 jobid: enhance tests to check per-session jobids.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fe17add71e164c461a85efdfbd0b19d46490faf1

Generated at Sat Feb 10 02:51:37 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.