graphviz cache

57 views
Skip to first unread message

Roger Oberholtzer

unread,
Apr 1, 2010, 6:22:39 AM4/1/10
to trac-...@googlegroups.com
I use trac to edit graphviz charts (don't ask - I haven't found a gui to
simplify this so the wiki is as good a place as any). This results in
the gvcache directory getting larger and larger. I would like to flush
it. Is it ok to simple delete the contents, and the needed graphs will
be made the first time they are needed? Or would doing this cause some
unexpected problems?


--
Roger Oberholtzer

Olemis Lang

unread,
Apr 1, 2010, 1:46:45 PM4/1/10
to trac-...@googlegroups.com

AFAICR there's a config for cache limits , files are deleted on
overflow to make space for new ones . AFAIK you should use that to
tune up cache size (files don't and - should not - live there until
forever, unless you set up «unreachable» bounds ;o)

CMIIW

--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
TracRpc: API v2: Fixed JSON-RPC (multicall & IDs on error). Exception
handling. - http://bitbucket.org/osimons/trac-rpc-mq/changeset/b9552972b5c3/

Roger Oberholtzer

unread,
Apr 8, 2010, 5:20:36 AM4/8/10
to trac-...@googlegroups.com
On Thu, 2010-04-01 at 13:46 -0400, Olemis Lang wrote:
> On Thu, Apr 1, 2010 at 6:22 AM, Roger Oberholtzer
> <roger.ob...@gmail.com> wrote:
> > I use trac to edit graphviz charts (don't ask - I haven't found a gui to
> > simplify this so the wiki is as good a place as any). This results in
> > the gvcache directory getting larger and larger. I would like to flush
> > it. Is it ok to simple delete the contents, and the needed graphs will
> > be made the first time they are needed? Or would doing this cause some
> > unexpected problems?
> >
>
> AFAICR there's a config for cache limits , files are deleted on
> overflow to make space for new ones . AFAIK you should use that to
> tune up cache size (files don't and - should not - live there until
> forever, unless you set up «unreachable» bounds ;o)
>
> CMIIW

This would be a cache only for graphviz? I do not see any settings for
that. I'm confused.

--
Roger Oberholtzer

Olemis Lang

unread,
Apr 8, 2010, 8:44:28 AM4/8/10
to trac-...@googlegroups.com
On Thu, Apr 8, 2010 at 5:20 AM, Roger Oberholtzer

<roger.ob...@gmail.com> wrote:
> On Thu, 2010-04-01 at 13:46 -0400, Olemis Lang wrote:
>> On Thu, Apr 1, 2010 at 6:22 AM, Roger Oberholtzer
>> <roger.ob...@gmail.com> wrote:
>> > I use trac to edit graphviz charts (don't ask - I haven't found a gui to
>> > simplify this so the wiki is as good a place as any). This results in
>> > the gvcache directory getting larger and larger. I would like to flush
>> > it. Is it ok to simple delete the contents, and the needed graphs will
>> > be made the first time they are needed? Or would doing this cause some
>> > unexpected problems?
>> >
>>
>> AFAICR there's a config for cache limits , files are deleted on
>> overflow to make space for new ones . AFAIK you should use that to
>> tune up cache size (files don't and - should not - live there until
>> forever, unless you set up «unreachable» bounds ;o)
>>
>> CMIIW
>
> This would be a cache only for graphviz?

Only for Trac Graphviz plugin ;o)

> I do not see any settings for
> that. I'm confused.
>

AFAICR it's `cache_min_count`; however, if you have installed TracIni
plugin you can take a look at `graphviz` section. AFAICR there you'll
find all the options as well as summary (useful since it *seems* they
are not documented :-/ ).

Cooke, Mark

unread,
Apr 8, 2010, 9:03:01 AM4/8/10
to trac-...@googlegroups.com
> >>
> >> AFAICR there's a config for cache limits , files are deleted on
> >> overflow to make space for new ones . AFAIK you should use that to
> >> tune up cache size (files don't and - should not - live there until
> >> forever, unless you set up <unreachable> bounds ;o)
> >>
> >> CMIIW
> >
> > This would be a cache only for graphviz?
>
> Only for Trac Graphviz plugin ;o)
>
> > I do not see any settings for
> > that. I'm confused.
> >
>
> AFAICR it's `cache_min_count`; however, if you have installed TracIni
> plugin you can take a look at `graphviz` section. AFAICR there you'll
> find all the options as well as summary (useful since it *seems* they
> are not documented :-/ ).
>
As an example, my settings are:

[graphviz]
cache_dir = <path for apache read/write cache>
cache_manager = yes
cache_max_size = 10000000
cache_min_size = 5000000
cache_max_count = 2000
cache_min_count = 1500
Cmd_path = <path for gviz exe>

Note your cache_manager may be 'off'...

~ Mark C

Olemis Lang

unread,
Apr 8, 2010, 9:23:05 AM4/8/10
to trac-...@googlegroups.com

Much more precise info ;o)

> Note your cache_manager may be 'off'...
>

Probably what the OP is looking for ;o) . However beware that if cache
policies are disabled then you might end up cleaning a lot of garbage
and | or outdated graphs; whereas if cache is too small then
performance penalties might occur since graphs need to be generated
more often. Suggestion : *be careful* and choose values considering
server load , mean graph size, disk space, ...

;o)

--
Regards,

Olemis.

Featured article:
Demanda sobre patente impide distribuir Microsoft Word -
http://feedproxy.google.com/~r/simelo-es/~3/DwuBKpveLTg/demanda-sobre-patente-impide-distribuir.html

Roger Oberholtzer

unread,
Apr 8, 2010, 9:29:21 AM4/8/10
to trac-...@googlegroups.com
On Thu, 2010-04-08 at 08:44 -0400, Olemis Lang wrote:


>
> AFAICR it's `cache_min_count`; however, if you have installed TracIni
> plugin you can take a look at `graphviz` section. AFAICR there you'll
> find all the options as well as summary (useful since it *seems* they
> are not documented :-/ ).

TracIni plugin? In the admin interface I can turn on/off components in a
plugin. graphviz can only be enabled/disabled. No cache or anything
else. I seem to be looking under the wrong rock :)


--
Roger Oberholtzer

Olemis Lang

unread,
Apr 8, 2010, 9:39:36 AM4/8/10
to trac-...@googlegroups.com
On Thu, Apr 8, 2010 at 9:29 AM, Roger Oberholtzer
<roger.ob...@gmail.com> wrote:
> On Thu, 2010-04-08 at 08:44 -0400, Olemis Lang wrote:
>
>>
>> AFAICR it's `cache_min_count`; however, if you have installed TracIni
>> plugin you can take a look at `graphviz` section. AFAICR there you'll
>> find all the options as well as summary (useful since it *seems* they
>> are not documented :-/ ).
>
> TracIni plugin?

;o)

.. [1] IniAdminPlugin
(http://trac-hacks.org/wiki/IniAdminPlugin)

--
Regards,

Olemis.

Featured article:
Comparación de sistemas de control de versiones (a.k.a.VCS o SCM) -
http://feedproxy.google.com/~r/simelo-es/~3/FIwvfJbY074/comparacion-de-sistemas-de-control-de.html

Roger Oberholtzer

unread,
Apr 8, 2010, 9:48:43 AM4/8/10
to trac-...@googlegroups.com
On Thu, 2010-04-08 at 14:03 +0100, Cooke, Mark wrote:
> [graphviz]
> cache_dir = <path for apache read/write cache>
> cache_manager = yes
> cache_max_size = 10000000
> cache_min_size = 5000000
> cache_max_count = 2000
> cache_min_count = 1500
> Cmd_path = <path for gviz exe>

This is exactly what I was looking for. I thought this would be on the
wiki page for the plugin. But I found it in the README file that came
with it. I know... RTFM...

--
Roger Oberholtzer

Roger Oberholtzer

unread,
Apr 8, 2010, 9:52:05 AM4/8/10
to trac-...@googlegroups.com
On Thu, 2010-04-08 at 09:39 -0400, Olemis Lang wrote:

> > TracIni plugin?
>
> ;o)
>
> .. [1] IniAdminPlugin
> (http://trac-hacks.org/wiki/IniAdminPlugin)

It is integrated in the Trac I use. Not a plugin. I thought you had a
nifty new ini thing that did magical wonderful things. Anyway, if the
values are not in the ini file in the first place, they don't show up
here. As I wrote in a different response in this thread, I found the
info in the README file, not on the TracHack site where the GraphViz
plugin is distributed. The values are in place. I will see how the usage
goes.

I think I have the answer to my question.

Thanks all for the help.


--
Roger Oberholtzer

Olemis Lang

unread,
Apr 8, 2010, 10:04:09 AM4/8/10
to trac-...@googlegroups.com
On Thu, Apr 8, 2010 at 9:52 AM, Roger Oberholtzer
<roger.ob...@gmail.com> wrote:
> On Thu, 2010-04-08 at 09:39 -0400, Olemis Lang wrote:
>
>> > TracIni plugin?
>>
>> ;o)
>>
>> .. [1] IniAdminPlugin
>>          (http://trac-hacks.org/wiki/IniAdminPlugin)
>
> It is integrated in the Trac I use.

oops ! didn't know
:S

>
> I think I have the answer to my question.
>
> Thanks all for the help.
>

:)

--
Regards,

Olemis.

Featured article:
On adding Hessian (RPC) support for Trac -
http://feedproxy.google.com/~r/simelo-en/~3/Vit6dRudChU/on-adding-hessian-rpc-support-for-trac.html

Reply all
Reply to author
Forward
0 new messages