You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/07/30 16:11:00 UTC

[jira] [Commented] (GEODE-7004) Optimize ResourcePermission constructor

    [ https://issues.apache.org/jira/browse/GEODE-7004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896274#comment-16896274 ] 

ASF subversion and git services commented on GEODE-7004:
--------------------------------------------------------

Commit 9068b4df997e85b5a5e8ade0470442bbfe35f0b0 in geode's branch refs/heads/develop from Kamilla Aslami
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=9068b4d ]

GEODE-7004: Optimized ResourcePermission constructor (#3839)


Co-authored-by: Kamilla Aslami <ka...@pivotal.io>
Co-authored-by: Jacob Barrett <jb...@pivotal.io>


> Optimize ResourcePermission constructor 
> ----------------------------------------
>
>                 Key: GEODE-7004
>                 URL: https://issues.apache.org/jira/browse/GEODE-7004
>             Project: Geode
>          Issue Type: Improvement
>          Components: security
>            Reporter: Kamilla Aslami
>            Assignee: Kamilla Aslami
>            Priority: Major
>              Labels: performance
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> PartitionedPutBenchmark with Security Manager enabled shows a performance degradation:
> {noformat}
> org.apache.geode.benchmark.tests.PartitionedPutBenchmark
>               average ops/second  Baseline:    313077.71  Test:    303114.88  Difference:   -3.2%
>        ops/second standard error  Baseline:       714.84  Test:       511.86  Difference:  -28.4%
>    ops/second standard deviation  Baseline:     12360.75  Test:      8850.96  Difference:  -28.4%
>       YS 99th percentile latency  Baseline:      2901.00  Test:      2802.00  Difference:   -3.4%
>                   median latency  Baseline:   1586175.00  Test:   1613823.00  Difference:   +1.7%
>          90th percentile latency  Baseline:   2289663.00  Test:   2303999.00  Difference:   +0.6%
>          99th percentile latency  Baseline:   3213311.00  Test:   3289087.00  Difference:   +2.4%
>        99.9th percentile latency  Baseline:  72220671.00  Test:  61636607.00  Difference:  -14.7%
>                  average latency  Baseline:   1838420.24  Test:   1898668.38  Difference:   +3.3%
>       latency standard deviation  Baseline:   3840098.38  Test:   3827737.37  Difference:   -0.3%
>           latency standard error  Baseline:       396.30  Test:       401.43  Difference:   +1.3%
> {noformat}
> In stats, we noticed a higher CPU utilization and less puts.
>  
> When Security Manager is enabled, every put operation calls IntegratedSecurityService.authorize method, which creates new ResourcePermission object. Every execution of ResourcePermission constructor takes 5 ms. With the optimization, ResourcePermission constructor execution takes less than 0.1 ms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)