[ 
https://issues.apache.org/jira/browse/CASSANDRA-20491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Konstantinov updated CASSANDRA-20491:
--------------------------------------------
    Description: 
There are many places where Cassandra uses offheap memory and several methods 
to do it, it would be nice to have a summary doc about this usage.

A draft version:
||Case||Off-heap memory type||Way to monitor||Related configuration||
|offheap_buffers memtables|Direct byte buffer| | |
|offheap_object memtables|Native allocator| | |
|Chunk cache| | | |
|Hints| | | |
|Repair Merkle trees| | | |
|Bloom filters|Native allocator| | |
|Index summaries|Native allocator| | |
|Compression metadata|Native allocator| | |
|Direct IO commitlog | | | |
|Compression| | | |
|Netty PooledByteBufAllocator|Unsafe.allocateMemory| | |
| | | | |
| | | | |

Off-heap memory types:

 
||Type||Allocation logic||Monitoring||Limit||
|Direct byte buffer| ByteBuffer.allocateDirect(size)|JMX: 
java.nio:name=direct,type=BufferPool|-XX:MaxDirectMemorySize|
|Native allocator|org.apache.cassandra.utils.memory.MemoryUtil#allocate
com.sun.jna.Native#malloc| | |
|Unsafe.allocateMemory|Unsafe.allocateMemory| | |

 

  was:
There are many places where Cassandra uses offheap memory and several methods 
to do it, it would be nice to have a summary doc about this usage.

A draft version:
||Case||Off-heap memory type||Way to monitor||Related configuration||
|offheap_buffers memtables|Direct buffer| | |
|offheap_object memtables|Native allocator| | |
|Chunk cache| | | |
|Hints| | | |
|Repair Merkle trees| | | |
|Bloom filters|Native allocator| | |
|Index summaries|Native allocator| | |
|Compression metadata|Native allocator| | |
|Direct IO commitlog | | | |
|Compression| | | |
|Netty PooledByteBufAllocator|Unsafe.allocateMemory| | |
| | | | |
| | | | |


> Document offheap memory used by Cassandra
> -----------------------------------------
>
>                 Key: CASSANDRA-20491
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20491
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Dmitry Konstantinov
>            Priority: Normal
>
> There are many places where Cassandra uses offheap memory and several methods 
> to do it, it would be nice to have a summary doc about this usage.
> A draft version:
> ||Case||Off-heap memory type||Way to monitor||Related configuration||
> |offheap_buffers memtables|Direct byte buffer| | |
> |offheap_object memtables|Native allocator| | |
> |Chunk cache| | | |
> |Hints| | | |
> |Repair Merkle trees| | | |
> |Bloom filters|Native allocator| | |
> |Index summaries|Native allocator| | |
> |Compression metadata|Native allocator| | |
> |Direct IO commitlog | | | |
> |Compression| | | |
> |Netty PooledByteBufAllocator|Unsafe.allocateMemory| | |
> | | | | |
> | | | | |
> Off-heap memory types:
>  
> ||Type||Allocation logic||Monitoring||Limit||
> |Direct byte buffer| ByteBuffer.allocateDirect(size)|JMX: 
> java.nio:name=direct,type=BufferPool|-XX:MaxDirectMemorySize|
> |Native allocator|org.apache.cassandra.utils.memory.MemoryUtil#allocate
> com.sun.jna.Native#malloc| | |
> |Unsafe.allocateMemory|Unsafe.allocateMemory| | |
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to