lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shay Banon (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5373) Lucene42DocValuesProducer.ramBytesUsed is over-estimated
Date Thu, 19 Dec 2013 18:25:08 GMT


Shay Banon commented on LUCENE-5373:

as someone who found this issue, on top of the wrong computation, its also very expensive.
This call should be lightweight and hopefully not use sizeOf at all... . At the very least,
if possible, the result of it should be cached? Maybe even introduce size caching on a higher
level (calling code) if possible.

> Lucene42DocValuesProducer.ramBytesUsed is over-estimated
> --------------------------------------------------------
>                 Key: LUCENE-5373
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
> Lucene42DocValuesProducer.ramBytesUsed uses {{RamUsageEstimator.sizeOf(this)}} to return
an estimation of the memory usage. One of the issues (there might be other ones) is that this
class has a reference to an IndexInput that might link to other data-structures that we wouldn't
want to take into account. For example, index inputs of a {{RAMDirectory}} all point to the
directory itself, so {{Lucene42DocValuesProducer.ramBytesUsed}} would return the amount of
memory used by the whole directory.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message