-
Notifications
You must be signed in to change notification settings - Fork 255
chore: Follow-on PR to fully enable onheap memory usage #1210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
76dfffe
fa69e89
9acf9f5
8dc2c5d
499c8bd
19b0491
1a967d3
63b55a5
44332fb
4643ad6
eb5d4d0
9c1fa49
d0a5bf3
da53af3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,7 +162,6 @@ pub unsafe extern "system" fn Java_org_apache_comet_Native_createPlan( | |
| memory_pool_type: jstring, | ||
| memory_limit: jlong, | ||
| memory_limit_per_task: jlong, | ||
| memory_fraction: jdouble, | ||
| task_attempt_id: jlong, | ||
| debug_native: jboolean, | ||
| explain_native: jboolean, | ||
|
|
@@ -208,7 +207,6 @@ pub unsafe extern "system" fn Java_org_apache_comet_Native_createPlan( | |
| memory_pool_type, | ||
| memory_limit, | ||
| memory_limit_per_task, | ||
| memory_fraction, | ||
| )?; | ||
| let memory_pool = | ||
| create_memory_pool(&memory_pool_config, task_memory_manager, task_attempt_id); | ||
|
|
@@ -281,14 +279,13 @@ fn parse_memory_pool_config( | |
| memory_pool_type: String, | ||
| memory_limit: i64, | ||
| memory_limit_per_task: i64, | ||
| memory_fraction: f64, | ||
| ) -> CometResult<MemoryPoolConfig> { | ||
| let memory_pool_config = if use_unified_memory_manager { | ||
| MemoryPoolConfig::new(MemoryPoolType::Unified, 0) | ||
| } else { | ||
| // Use the memory pool from DF | ||
| let pool_size = (memory_limit as f64 * memory_fraction) as usize; | ||
| let pool_size_per_task = (memory_limit_per_task as f64 * memory_fraction) as usize; | ||
|
Comment on lines
-290
to
-291
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If memory_fraction is not used here, we can remove the configuration option My understanding is that |
||
| let pool_size = memory_limit as usize; | ||
| let pool_size_per_task = memory_limit_per_task as usize; | ||
| match memory_pool_type.as_str() { | ||
| "fair_spill_task_shared" => { | ||
| MemoryPoolConfig::new(MemoryPoolType::FairSpillTaskShared, pool_size_per_task) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.