lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5373) Lucene42DocValuesProducer.ramBytesUsed is over-estimated
Date Fri, 20 Dec 2013 17:32:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13854233#comment-13854233
] 

ASF subversion and git services commented on LUCENE-5373:
---------------------------------------------------------

Commit 1552753 from [~jpountz] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1552753 ]

LUCENE-5373: Fix memory usage estimation for [Lucene40/Lucene42/Memory/Direct]DocValuesProducer.

> Lucene42DocValuesProducer.ramBytesUsed is over-estimated
> --------------------------------------------------------
>
>                 Key: LUCENE-5373
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5373
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-5373.patch, LUCENE-5373.patch, LUCENE-5373.patch, LUCENE-5373.patch
>
>
> 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
(v6.1.4#6159)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message