[
https://issues.apache.org/jira/browse/HIVE-23476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108779#comment-17108779
]
Gopal Vijayaraghavan commented on HIVE-23476:
---------------------------------------------
I think the prealloc discussion was originally about posix_fallocate(), but
this is fine considering we're mmap'ing and truncating without actually taking
up disk space.
LGTM - +1
> [LLAP] Preallocate arenas for mmap case as well
> -----------------------------------------------
>
> Key: HIVE-23476
> URL: https://issues.apache.org/jira/browse/HIVE-23476
> Project: Hive
> Issue Type: Bug
> Reporter: Prasanth Jayachandran
> Assignee: Prasanth Jayachandran
> Priority: Major
> Attachments: HIVE-23476.1.patch
>
>
> BuddyAllocator pre-allocation of arenas does not happen for mmap cache case.
> Since we are not filling up the mmap'ed buffers the upfront allocations in
> constructor is cheap. This can avoid lock free allocation of arenas later in
> the code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)