You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by jplevyak <gi...@git.apache.org> on 2015/12/05 01:22:22 UTC

[GitHub] trafficserver pull request: TS-4053: Add regression tests for hit ...

GitHub user jplevyak opened a pull request:

    https://github.com/apache/trafficserver/pull/364

    TS-4053: Add regression tests for hit rate and size for the RAM caches,

             Tune up CLFUS.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jplevyak/trafficserver TS-4053

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/364.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #364
    
----
commit 8407d5f56deaf6788cc9c4d089663a11681c1b80
Author: John Plevyak <jp...@apache.org>
Date:   2015-12-03T22:18:52Z

    TS-4053: Add regression tests for hit rate and size for the RAM caches,
             Tune up CLFUS.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4053: Add regression tests for hit ...

Posted by jplevyak <gi...@git.apache.org>.
Github user jplevyak commented on the pull request:

    https://github.com/apache/trafficserver/pull/364#issuecomment-162120619
  
    The upshot is that the two Ram caches use the correct amount of memory (within 2%) and that LRU works better for identically sized objects (because LRU is a very good proxy for hit rate and LRU has less memory overhead) and CLFUS works better for variable/mixed size objects (which is expected since that is what it is trying to do).  Note that for large caches, the cost of CLFUS for fixed size approaches zero as the overhead has less effect but the benefit for variable size objects increases.
    
    The regression tests at 1MB 16MB and 256MB, but with relatively small objects (16KB) so the results should be applicable to more popular production size RAM caches in the GB(s) range.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4053: Add regression tests for hit ...

Posted by jplevyak <gi...@git.apache.org>.
Github user jplevyak commented on the pull request:

    https://github.com/apache/trafficserver/pull/364#issuecomment-162119403
  
    RPRINT ram_cache: RamCache LRU Fixed Size Hit Rate 0.581543
    RPRINT ram_cache: RamCache LRU Variable Size Hit Rate 0.567505
    RPRINT ram_cache: RamCache LRU Nominal Size 1048576 Size 1043072
    RPRINT ram_cache: RamCache CLFUS Fixed Size Hit Rate 0.571777
    RPRINT ram_cache: RamCache CLFUS Variable Size Hit Rate 0.571777
    RPRINT ram_cache: RamCache CLFUS Nominal Size 1048576 Size 1036312
    RPRINT ram_cache: RamCache LRU Fixed Size Hit Rate 0.796661
    RPRINT ram_cache: RamCache LRU Variable Size Hit Rate 0.788216
    RPRINT ram_cache: RamCache LRU Nominal Size 16777216 Size 16710856
    RPRINT ram_cache: RamCache CLFUS Fixed Size Hit Rate 0.798988
    RPRINT ram_cache: RamCache CLFUS Variable Size Hit Rate 0.813202
    RPRINT ram_cache: RamCache CLFUS Nominal Size 16777216 Size 16572376
    RPRINT ram_cache: RamCache LRU Fixed Size Hit Rate 0.922885
    RPRINT ram_cache: RamCache LRU Variable Size Hit Rate 0.917943
    RPRINT ram_cache: RamCache LRU Nominal Size 268435456 Size 267416024
    RPRINT ram_cache: RamCache CLFUS Fixed Size Hit Rate 0.922436
    RPRINT ram_cache: RamCache CLFUS Variable Size Hit Rate 0.927758
    RPRINT ram_cache: RamCache CLFUS Nominal Size 268435456 Size 265258200



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4053: Add regression tests for hit ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/trafficserver/pull/364


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---