apache / apache/arrow-java

Use default chunk size as 4 MB than than 16Mb in arrow's rolling policy

未關閉
#1,040 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Type: enhancement
主要語言
Java
星號
94
分支
152
平均合併
3 天 16 小時
30 天內合併 PR
11

描述

### Describe the enhancement requested

Apache Arrow currently calculates chunk sizes based on the assumption that Netty's PooledByteBufAllocatorL uses a 16MB page size. If size is blow 16MB, will use nextPowerOfTwo of requestSize.

```java
public long getRoundedSize(long requestSize) {
return requestSize < chunkSize ? CommonUtil.nextPowerOfTwo(requestSize) : requestSize;
}
```
However, Netty's default maximum buffer size has been reduced from 16MB to 4MB in recent versions (see https://github.com/netty/netty/pull/12108). This mismatch leads to memory inefficiency in scenarios where chunk sizes fall between 4MB and 16MB.

貢獻指南

開啟貢獻指南

研究方向

先找出包含 getRoundedSize 和 chunkSize 預設值的 rolling policy 實作,然後閱讀 CommonUtil.nextPowerOfTwo 的使用方式。將該 policy 與 issue 中描述的 Netty 4 MB 預設值進行比較。當預設值使用 4 MB,且相關測試(如果有)涵蓋 request 大小的現有行為時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
performance
Issue 類型
功能
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。