This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 42082 - Use java.nio mmaped file for btree storage
Summary: Use java.nio mmaped file for btree storage
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on: 51707
Blocks: 40618 51715
  Show dependency tree
 
Reported: 2004-04-16 15:19 UTC by Jaroslav Tulach
Modified: 2005-01-20 16:12 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-04-16 15:19:59 UTC
As discussed at 
http://www.netbeans.org/servlets/ReadMsg?msgId=735498&listName=nbdev
the MDR btree storage would profit from using
memory mapped file instead of random access one.
By doing that all occurences of byte[] would be
replaced by ByteBuffer and the MDRCache which
keeps some Pages in memory could be deleted as
that kind of caching would be handled by operating
system itself.

It is understood that btree storage is kind of
code that nobody wants to touch and that is the
reason this is just advice, but it is expected
that it will become request for some future release.
Comment 1 Martin Matula 2004-04-16 19:12:23 UTC
I should clarify that the b-tree is a code that noone wants to touch
at this point of time (not generally) such a short time before the
feature freeze with low resources on the team and so many other tasks
with a higher priority, with uncertain (performance) outcomes of such
a rewrite. I am not sure why this is a defect. At this point it seems
to me more like a hypothesis (RFE/TASK?).
Comment 2 Petr Nejedly 2004-11-11 13:32:04 UTC
Note: By using mmap instead of RandomAccessFile, you also save a file
descriptor (at least on linux), so you won't run out of them on large
number of opened projects (like nbbuild/misc).
Comment 3 Martin Matula 2005-01-20 16:12:40 UTC
We prototyped usage of java.nio by the b-tree and decided to not
switch. See issue 50085 for more info.