[LU-15003] use client enc_pool for fscrypt Created: 14/Sep/21  Updated: 23/Sep/22  Resolved: 10/Sep/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.15.2

Type: Improvement Priority: Major
Reporter: Andreas Dilger Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: performance

Issue Links:
Related
is related to LU-12275 Client-side file data encryption Resolved
Rank (Obsolete): 9223372036854775807

 Description   

According to Sebastien's fscrypt presentation at LAD'20, the use of bounce buffers reduces fscrypt performance by up to 30%.

This can be replaced by using preallocated pages in enc_pool from Kerberos, so that pages do not need to be allocated/freed for every RPC.



 Comments   
Comment by Sebastien Buisson [ 14/Sep/21 ]

I think the first step would be to re-run benchmarks with recent Lustre/distro/kernel/cpu in order to confirm the performance drop incurred by client encryption.

Comment by Gerrit Updater [ 26/Apr/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47149
Subject: LU-15003 sec: use enc pool for bounce pages
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: dd3d3cb03ff2eb0d46ed5aca6c9b819708312266

Comment by Gerrit Updater [ 26/Apr/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47150
Subject: LU-15003 sec: test native fscrypt
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 257afdd284be35660d4d1b1373db8de6811dae0d

Comment by James A Simmons [ 26/Apr/22 ]

This looks like an excellent optimization to send upstream.

Comment by Gerrit Updater [ 01/Sep/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47149/
Subject: LU-15003 sec: use enc pool for bounce pages
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f3fe144b8572e9e75bb55076e29057227476ebf5

Comment by Gerrit Updater [ 01/Sep/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48411
Subject: LU-15003 sec: use enc pool for bounce pages
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 59f7bf31f8ff1811f216099cc2e3895eb6c7726e

Comment by Peter Jones [ 10/Sep/22 ]

Landed for 2.15.2 and 2.16

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