You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Brian Moseley <bc...@osafoundation.org> on 2005/11/12 00:45:58 UTC

cosmo resource usage notes

i've been keeping notes on the analysis i've been performing of cosmo's 
disk and memory usage. some of you might find them interesting:

<http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051111>
<http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051112>

basically, i'm finding that storing nodes even with relatively few 
properties causes an absurd amount of disk usage:

not counting blobs, just the workspace's data dir, 2135 nodes are 
persisted using 12,265 files and requiring 49,116kb of disk space.

this is using ObjectPersistenceManager. i haven't been able to test with 
any other PMs yet.

anyway, the notes at the above urls may not make complete sense - they 
assume some amount of familiarity with the cosmo project 
(<http://wiki.osafoundation.org/bin/view/Projects/CosmoHome>) and/or 
webdav and caldav in general - but i think the data and conclusions are 
pretty understandable.

i'd love to hear comments on what i've done. i'm not at all confident in 
my methodology and would be happy to hear critiques, as well as 
suggestions on how to improve my situation :)

thanks!

Re: cosmo resource usage notes

Posted by Brian Moseley <bc...@osafoundation.org>.
Stefan Guggisberg wrote:

> the benefit of storing blobs in the file system is improved read/write
> performance,
> the drawback is that it is non transactional.
> 
> the exact opposite is true for storing the blobs in the db...

got it. thanks!

Re: cosmo resource usage notes

Posted by Stefan Guggisberg <st...@gmail.com>.
On 11/14/05, Brian Moseley <bc...@osafoundation.org> wrote:
> Stefan Guggisberg wrote:
>
> > i'd suggest you give DerbyPersistenceManager a try.
>
> is there a best practice wrt storing blobs, either in the db or externally?

the benefit of storing blobs in the file system is improved read/write
performance,
the drawback is that it is non transactional.

the exact opposite is true for storing the blobs in the db...

cheers
stefan

Re: cosmo resource usage notes

Posted by Brian Moseley <bc...@osafoundation.org>.
Stefan Guggisberg wrote:

> i'd suggest you give DerbyPersistenceManager a try.

is there a best practice wrt storing blobs, either in the db or externally?

Re: cosmo resource usage notes

Posted by Stefan Guggisberg <st...@gmail.com>.
On 11/14/05, Brian Moseley <bc...@osafoundation.org> wrote:
> Stefan Guggisberg wrote:
>
> > i'd suggest you give DerbyPersistenceManager a try.
>
> fyi, this resulted in massive disk savings. see
> <http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051114>
> for details. thanks for the suggestion!
>

great, i am looking forward to the results of your performance tests!

cheers
stefan

Re: cosmo resource usage notes

Posted by Brian Moseley <bc...@osafoundation.org>.
Stefan Guggisberg wrote:

> i'd suggest you give DerbyPersistenceManager a try.

fyi, this resulted in massive disk savings. see 
<http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051114> 
for details. thanks for the suggestion!

Re: cosmo resource usage notes

Posted by Brian Moseley <bc...@osafoundation.org>.
Stefan Guggisberg wrote:

> i'd suggest you give DerbyPersistenceManager a try.

i will do that. thanks!

Re: cosmo resource usage notes

Posted by Stefan Guggisberg <st...@gmail.com>.
hi brian

On 11/12/05, Brian Moseley <bc...@osafoundation.org> wrote:
> i've been keeping notes on the analysis i've been performing of cosmo's
> disk and memory usage. some of you might find them interesting:
>
> <http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051111>
> <http://wiki.osafoundation.org/bin/view/Journal/BrianMoseley20051112>
>
> basically, i'm finding that storing nodes even with relatively few
> properties causes an absurd amount of disk usage:
>
> not counting blobs, just the workspace's data dir, 2135 nodes are
> persisted using 12,265 files and requiring 49,116kb of disk space.
>
> this is using ObjectPersistenceManager. i haven't been able to test with
> any other PMs yet.

i'd suggest you give DerbyPersistenceManager a try.

cheers
stefan

>
> anyway, the notes at the above urls may not make complete sense - they
> assume some amount of familiarity with the cosmo project
> (<http://wiki.osafoundation.org/bin/view/Projects/CosmoHome>) and/or
> webdav and caldav in general - but i think the data and conclusions are
> pretty understandable.
>
> i'd love to hear comments on what i've done. i'm not at all confident in
> my methodology and would be happy to hear critiques, as well as
> suggestions on how to improve my situation :)
>
> thanks!
>