Skip to content
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

[v8_engine]: Add settings for max_old_gen_size #3167

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

VadimPlh
Copy link
Contributor

@VadimPlh VadimPlh commented Dec 6, 2021

In old v8 versions it was self calculated params, but in new v8 versions we need to use ConfigureDefaultsFromHeapSize together with set_max_old_generation_size_in_bytes.

Need to understand limits before data-policy release
#3166

Without set_max_old_generation_size_in_bytes tests for v8_engine fail with new v8 version.
Fix for llvm, seastar, v8 update https://github.com/vectorizedio/vtools/pull/316

@@ -44,6 +45,7 @@ class script_exception final : public std::exception {
class script {
// Timeout for run script in first time for initialization
static constexpr std::chrono::milliseconds _first_run_timeout_ms{500};
static constexpr uint64_t _max_old_gen_size{10_MiB};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this value chosen? Should it be configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this value test works.
I want to return to this settings in data_policy testing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Ben is asking why 10MiB? Was this the value older versions of v8 were using before it was exposed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My ans is It is the most smallest value when test works(can create local context for v8).

In old v8 versions it was self calculated params, but in new
v8 versions we need to use ConfigureDefaultsFromHeapSize together
with set_max_old_generation_size_in_bytes.

Need to understand limits before data-policy release
redpanda-data#3166
@@ -44,6 +45,7 @@ class script_exception final : public std::exception {
class script {
// Timeout for run script in first time for initialization
static constexpr std::chrono::milliseconds _first_run_timeout_ms{500};
static constexpr uint64_t _max_old_gen_size{10_MiB};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stylistically we generally don't prefix _ on configuration options like this even though they are technically private members.

@dotnwat dotnwat merged commit 2a3c004 into redpanda-data:dev Dec 8, 2021
@gousteris gousteris mentioned this pull request Oct 27, 2022
6 tasks
yokofly added a commit to timeplus-io/proton that referenced this pull request May 14, 2024
as the redpanda-data/redpanda#3167
we need set both old_gen and default_heap.

also close #574 (is this issue description too boring?)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants