Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-22 Thread Reid Pinchback
: "user@cassandra.apache.org" Date: Wednesday, April 22, 2020 at 7:23 AM To: "user@cassandra.apache.org" Subject: Re: Impact of setting low value for flag -XX:MaxDirectMemorySize Message from External Sender I am running spark (max heap 4G) and a java application (4G) with my C

Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-22 Thread manish khandelwal
very busy… and if it’s very busy then it’s likely > using it’s buffers as they are intended. > > > > *From: *HImanshu Sharma > *Reply-To: *"user@cassandra.apache.org" > *Date: *Saturday, April 18, 2020 at 2:06 AM > *To: *"user@cassandra.apache.org" &g

Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-21 Thread Reid Pinchback
they are intended. From: HImanshu Sharma Reply-To: "user@cassandra.apache.org" Date: Saturday, April 18, 2020 at 2:06 AM To: "user@cassandra.apache.org" Subject: Re: Impact of setting low value for flag -XX:MaxDirectMemorySize Message from External Sender From th

Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-18 Thread Jeff Jirsa
There are a handful of offheap uses - bloom filters (scale approximately linearly with data size based on your bloom filter false positive ratio) - compression metadata, scales linearly with data size based on your compression chunk size - Partition indexes - Netty For client / server requests.

Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-17 Thread HImanshu Sharma
>From the codebase as much I understood, if once a buffer is being allocated, then it is not freed and added to a recyclable pool. When a new request comes effort is made to fetch memory from recyclable pool and if is not available new allocation request is made. And while allocating a new request

Re: Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-17 Thread Erick Ramirez
Like most things, it depends on (a) what you're allowing and (b) how much your nodes require. MaxDirectMemorySize is the upper-bound for off-heap memory used for the direct byte buffer. C* uses it for Netty so if your nodes are busy servicing requests, they'd have more IO threads consuming memory.

Impact of setting low value for flag -XX:MaxDirectMemorySize

2020-04-17 Thread manish khandelwal
What will be the impact of setting the value of XX:MaxDirectMemorySize to some low value. Currently default value for off heap is equal to heap memory. I saw this open ticket discussing this but could not infer much from it. https://issues.apache.org/jira/browse/CASSANDRA-10930 Regards Manish