RE: enabling changes cache

95 views
Skip to first unread message

Lundh, Gustaf

unread,
Apr 24, 2013, 11:21:38 AM4/24/13
to Will DeBerry, repo-d...@googlegroups.com

It should be “memoryLimit” not “size”.

 

The documentation could be a bit clearer. I’ll push a fix.

 

/G

 

 

From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com] On Behalf Of Will DeBerry
Sent: den 24 april 2013 16:34
To: repo-d...@googlegroups.com
Subject: enabling changes cache

 

Just wanted to make sure I am doing this right as I am not seeing any information in show-caches for the changes cache.

 

In my gerrit.conf I have the following for cache:

 

[cache]

        directory = cache

[cache "changes"]

        diskLimit = 4294967296

        size = 1024

[cache "web_sessions"]

        diskLimit = 1073741824

 

Web sessions is working fine, but changes is not being cached at all. Is there another option I am missing or is the size option just wrong in general?

 

 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Will DeBerry

unread,
Apr 25, 2013, 1:46:11 PM4/25/13
to repo-d...@googlegroups.com, Will DeBerry
So added that to make my cache section look like:

[cache "changes"]
        diskLimit = 4294967296
        memoryLimit = 1024

Not showing anything when I do a show-caches though. What can I do to force changes to be used so I know for sure that the cache is working properly? Should it be triggered on an upload?

On Wednesday, April 24, 2013 11:39:59 AM UTC-4, Will DeBerry wrote:
Awesome, thanks.

Yea, the comment about Default size is 0, is what led me down the path of using size as the option. Couldn't find anything in the docs either to say otherwise.

Thanks again!

Lundh, Gustaf

unread,
Apr 30, 2013, 5:00:09 AM4/30/13
to Will DeBerry, repo-d...@googlegroups.com
Works fine for me @master

gerrit.config:
[cache "changes"]
memoryLimit = 4096

Run a few ls-remote against a Git that has changes:


Name |Entries | AvgGet |Hit Ratio|
| Mem Disk Space| |Mem Disk|
--------------------------------+---------------------+---------+---------+
accounts | 1 | 2.8ms | 95% |
accounts_byemail | | | |
accounts_byname | 1 | | |
adv_bases | | | |
changes | 1 | 2.0ms | 66% |

Will DeBerry

unread,
Apr 30, 2013, 11:24:03 AM4/30/13
to repo-d...@googlegroups.com, Will DeBerry
So I am stumped at this point then. Went ahead and just used your section of the config to make sure I wasn't messing it somehow with the diskLimit. 

[cache "changes"]
        memoryLimit = 4096

Ran a few ls-remote on a couple projects: git ls-remote gerrit:/AOKP/vendor_asus, git ls-remote gerrit:/AOKP/vendor_motorola...
Run show-caches and still not seeing anything...I am starting to feel stupid here as this should be working lol..always have the oddball issues it seems :-/

 Name                          |Entries              |  AvgGet |Hit Ratio|
                                |   Mem   Disk   Space|         |Mem  Disk|
--------------------------------+---------------------+---------+---------+
  accounts                      |    37               |  17.0ms | 91%     |
  accounts_byemail              |    24               |   7.1ms | 92%     |
  accounts_byname               |    37               |         |100%     |
  adv_bases                     |                     |         |         |
  changes                       |                     |         |         |
  groups                        |    11               |  31.3ms | 45%     |

Lundh, Gustaf

unread,
May 2, 2013, 10:39:51 AM5/2/13
to Will DeBerry, repo-d...@googlegroups.com

Strange indeed.

 

Sorry for asking, but are you sure those projects actually have changes? (and are not just imported projects)

 

Which version are you running on?

Will DeBerry

unread,
May 4, 2013, 12:11:11 AM5/4/13
to repo-d...@googlegroups.com, Will DeBerry
Shows changes when I run ls-remote on the project. Never imported a project, always have created one and pushed to the branch directly to fill it up. Currently on version 2.6-rc1-377-gb6bbacf

[rainbow gerrit]$ git ls-remote gerrit:/AOKP/vendor_asus                                        
35ba2b05702fe1a8845c836caf90fbc458b5dae0        refs/changes/10/710/1
b205797dd7402a78b38c2b2d6eed2742f0221929        refs/changes/11/511/1
5f5dde168beba6997f99f459ba88db29e0f22f99        refs/changes/21/1821/1
0e0e589abca953f259071b7c29e365fd3328a87e        refs/changes/23/6723/1
b1d3bb145a17ae3367d86aa9c607af1851eb6df2        refs/changes/23/6723/2
396b8ad6be773617cf46a70e8fa2b55d2992258e        refs/changes/42/842/1
e88564a29b6833977eb048b82c7d23513e708ac8        refs/changes/62/1362/1
92c2af0775d2fcb524d077c65609a96de4a5bfce        refs/changes/67/3667/1
56797dcd7ecc8c8d7286e58e7c62c2d063f214ea        refs/changes/70/3970/1
9c0955f9a66dc8c63df78cda497a4f11ec6963d1        refs/changes/80/2280/1
ba0543bfed27fd83b57fb56fd0e4f716ed780964        refs/changes/80/4980/1
3eab7459ca96260aaa5a769d3dd2b7e2a16067ab        refs/changes/81/2281/1
bfb80ce84cd5d79d8e193c3254c15f8260f67aa6        refs/changes/82/3982/1
79225aaa4ab92d9daa3f6235b76dea6d45c49d22        refs/changes/92/992/1
1b54d9757ab674f4f425a16341df537c56fd7ae6        refs/changes/93/993/1
46adbbfdd3e55de1f84fd35c2cbcf146135da9c1        refs/changes/98/698/1
e88564a29b6833977eb048b82c7d23513e708ac8        refs/heads/ics
bfb80ce84cd5d79d8e193c3254c15f8260f67aa6        refs/heads/jb
b1d3bb145a17ae3367d86aa9c607af1851eb6df2        refs/heads/jb-mr1
7cb1b257634c00486f9a8de1e98f99f9d9d43729        refs/meta/config
d65d3741d04e4f902b1264fdb0f1b57a8238e484        refs/notes/review
17b99f022d0d827568e33e93c171f5473bf739c7        refs/tags/Build-2
3eab7459ca96260aaa5a769d3dd2b7e2a16067ab        refs/tags/Build-2^{}
d02056cf92ab5f80b1d35ccde7afc215eae9c91f        refs/tags/Build-3
3eab7459ca96260aaa5a769d3dd2b7e2a16067ab        refs/tags/Build-3^{}
adba585f2207c579b203cf9cb6e49e0a9b1a3a2e        refs/tags/Build-4
92c2af0775d2fcb524d077c65609a96de4a5bfce        refs/tags/Build-4^{}
4ab87aa8bec4c0fc70b97c4c685cf67c9ff9a3fb        refs/tags/Build-5
bfb80ce84cd5d79d8e193c3254c15f8260f67aa6        refs/tags/Build-5^{}
75c8718ee1cb60fe1fcdd20f881c049f917ed7e1        refs/tags/Milestone-1
bfb80ce84cd5d79d8e193c3254c15f8260f67aa6        refs/tags/Milestone-1^{}
0f36b6fca4ca7bb1e5962ea117ed2884b00a8c96        refs/tags/jb-mr1_build-1
ccf6e5516fb3c514493565f36e01adef0e51bddd        refs/tags/jb-mr1_build-1^{}
0ad42572c1c2f450169d1c160a6f3705b50d8db6        refs/tags/jb-mr1_build-4
b1d3bb145a17ae3367d86aa9c607af1851eb6df2        refs/tags/jb-mr1_build-4^{}
3efe4aac747f799446562e21bdbbfd99f655d7d4        refs/tags/jb-mr1_build-6
b1d3bb145a17ae3367d86aa9c607af1851eb6df2        refs/tags/jb-mr1_build-6^{}
b700b5203b7eeac534c8140f8600aa4d8e5a82dc        refs/tags/jb-mr1_milestone-1
b1d3bb145a17ae3367d86aa9c607af1851eb6df2        refs/tags/jb-mr1_milestone-1^{}
Reply all
Reply to author
Forward
0 new messages