-
Notifications
You must be signed in to change notification settings - Fork 310
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
DAOS-17146 engine: call only pmemobj_close() on stop #16051
base: master
Are you sure you want to change the base?
Conversation
- `dmg system stop` -> SIGINT will trigger a new server stop path which: - stops all the execution streams to stop them from using the PMEM pools - close all the PMEM pools (`pmemobj_close()`) - terminate the `daos_engine` process - `dmg system stop --force` -> SIGKILL remains as the last resort in case the previous one stucks - the graceful teardown process will be unavailable till we fix it (DAOS-XXXX) Priority: 2 Signed-off-by: Jan Michalski <[email protected]>
Ticket title is 'Make sure |
@@ -195,6 +195,8 @@ struct dss_xstream *dss_get_xstream(int stream_id); | |||
int dss_xstream_cnt(void); | |||
void dss_mem_total_alloc_track(void *arg, daos_size_t bytes); | |||
void dss_mem_total_free_track(void *arg, daos_size_t bytes); | |||
void |
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.
Please maintain consistency in formatting.
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 can't. It is what clang-format does. I don't like it either.
* | ||
* \param[in] is_sysdb close sysdb. | ||
*/ | ||
void |
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.
.
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.
.
@@ -622,6 +623,9 @@ int d_uhash_link_insert(struct d_hash_table *htable, struct d_uuid *key, | |||
void *cmp_args, struct d_ulink *ulink); | |||
struct d_ulink *d_uhash_link_lookup(struct d_hash_table *htable, | |||
struct d_uuid *key, void *cmp_args); | |||
typedef int (*d_uhash_traverse_cb_t)(struct d_ulink *link, void *arg); | |||
int |
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.
.
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.
.
dmg system stop
-> SIGINT will trigger a new server stop path which:pmemobj_close()
)daos_engine
processdmg system stop --force
-> SIGKILL remains as the last resort in case the previous one stucksPriority: 2
Steps for the author:
After all prior steps are complete: