[LU-8956] Improve create performance with SELinux enabled Created: 19/Dec/16  Updated: 18/Oct/17  Resolved: 29/May/17

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

Type: Improvement Priority: Minor
Reporter: Sebastien Buisson (Inactive) Assignee: Sebastien Buisson (Inactive)
Resolution: Fixed Votes: 0
Labels: cea, patch, sec

Attachments: JPEG File selinux_create_optim.jpg    
Issue Links:
Related
is related to LU-10130 mkdir returns -95 EOPNOTSUPP with 2.1... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

In order to save a getxattr request at create time, we put inside the inode the security context information we got from security_dentry_init_security().

Without this optimisation, the create performance drops by 35% when enabling SELinux. With the optimisation, the performance drops by only 5%.



 Comments   
Comment by Gerrit Updater [ 19/Dec/16 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/24426
Subject: LU-8956 llite: put security context into inode
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 25882d652bc6ac97068929926a8d9e9aa2c49baf

Comment by Gerrit Updater [ 29/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/24426/
Subject: LU-8956 llite: set sec ctx on client's inode at create time
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1d44980bcbd10f35b522acc4543a44dcea62eb72

Comment by Peter Jones [ 29/May/17 ]

Landed for 2.10

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