[LU-1063] speed up kms recalculation Created: 01/Feb/12  Updated: 09/May/14  Resolved: 09/May/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 1.8.x (1.8.0 - 1.8.5)
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Iurii Golovach (Inactive) Assignee: Cliff White (Inactive)
Resolution: Won't Fix Votes: 0
Labels: patch, performance

Story Points: 30
Bugzilla ID: 22,060
Rank (Obsolete): 9733

 Description   

with the patch above the kms value calculated more quickly because of next improvements:
1) interval tree was used for the going through the list of locks instead the direct linked list
search.
2) skip the subtree when maximum value in this subtree is less then new kms
3) kms search stopped when lock with size equal to the old kms value found.

this optimization shows speed increase from 20 to 40% according to the tests results.

https://bugzilla.lustre.org/show_bug.cgi?id=22060 - contains the whole story



 Comments   
Comment by Iurii Golovach (Inactive) [ 01/Feb/12 ]

patch is in reviewboard
git push ssh://USER@review.whamcloud.com:29418/fs/lustre-release HEAD:refs/for/b1_8

Comment by Iurii Golovach (Inactive) [ 01/Feb/12 ]

previous comment is wrong. link on the patch in the reviewboard:
http://review.whamcloud.com/#change,2076

Comment by Peter Jones [ 01/Feb/12 ]

Iurii

Is this change also required for master? If so, we would prefer to land it there first. Could you look into porting it?

Thanks

Peter

Comment by Andreas Dilger [ 17/Feb/12 ]

Iurii,
this feature looks very interesting and useful under some workloads. However, we are not landing features or significant code restructuring onto maintenance branches. New features like this should be targetted at a feature release like the upcoming 2.3 release.

Comment by Iurii Golovach (Inactive) [ 02/Apr/12 ]

there is a kernel panic observed during the port into 2.2
ticket MRP-483 was created to track this issue.

Comment by Keith Mannthey (Inactive) [ 02/Nov/12 ]

Has a Master patch been developed for this? Is this issue abandoned?

Comment by Nathan Rutman [ 21/Nov/12 ]

Xyratex-bug-id: MRP-242

Comment by Keith Mannthey (Inactive) [ 27/Nov/12 ]

Lurii or Nathan, is there going to be a patch for Master?

Comment by Iurii Golovach (Inactive) [ 03/Dec/12 ]

Hi Keith,

I adopted this patch to master, but it fails on few tests. Since the bug (fixed after this optimization) was critical for 1.8 and doesn't exist in 2.x there is no rush with it.

Answer on your question - yes, there will be a patch for master, but since it's minor priority I'll create it when I have a free time for it.

Comment by Cliff White (Inactive) [ 28/Apr/14 ]

If there is not going to be a patch for master, we should close this issue, please advise.

Comment by Cliff White (Inactive) [ 09/May/14 ]

I am going to close this issue for now. If there is a new patch or any further updates please re-open.

Generated at Sat Feb 10 01:13:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.