-
Notifications
You must be signed in to change notification settings - Fork 579
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
Conversation
@@ -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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
ca62737
to
4705e45
Compare
@@ -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}; |
There was a problem hiding this comment.
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.
as the redpanda-data/redpanda#3167 we need set both old_gen and default_heap. also close #574 (is this issue description too boring?)
In old v8 versions it was self calculated params, but in new v8 versions we need to use
ConfigureDefaultsFromHeapSize
together withset_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