|
|
14f8ab |
From 2bbb097d087bb5ef142775500708f11ccd31bac0 Mon Sep 17 00:00:00 2001
|
|
|
14f8ab |
From: Liguang Li <liguang.lee6@gmail.com>
|
|
|
14f8ab |
Date: Fri, 21 Jun 2019 12:18:58 +0800
|
|
|
14f8ab |
Subject: [PATCH 254/255] Detach iot_worker to release its resources
|
|
|
14f8ab |
|
|
|
14f8ab |
When iot_worker terminates, its resources have not been reaped, which
|
|
|
14f8ab |
will consumes lots of memory.
|
|
|
14f8ab |
|
|
|
14f8ab |
Detach iot_worker to automically release its resources back to the
|
|
|
14f8ab |
system.
|
|
|
14f8ab |
|
|
|
14f8ab |
> upstream patch : https://review.gluster.org/#/c/glusterfs/+/22918/
|
|
|
14f8ab |
|
|
|
14f8ab |
>fixes: bz#1729107
|
|
|
14f8ab |
>Change-Id: I71fabb2940e76ad54dc56b4c41aeeead2644b8bb
|
|
|
14f8ab |
>Signed-off-by: Liguang Li <liguang.lee6@gmail.com>
|
|
|
14f8ab |
|
|
|
14f8ab |
BUG:1729108
|
|
|
14f8ab |
Change-Id: I71fabb2940e76ad54dc56b4c41aeeead2644b8bb
|
|
|
14f8ab |
Signed-off-by: Liguang Li <liguang.lee6@gmail.com>
|
|
|
14f8ab |
Reviewed-on: https://code.engineering.redhat.com/gerrit/176106
|
|
|
14f8ab |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
14f8ab |
Reviewed-by: Ravishankar Narayanankutty <ravishankar@redhat.com>
|
|
|
14f8ab |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
14f8ab |
---
|
|
|
14f8ab |
xlators/performance/io-threads/src/io-threads.c | 1 +
|
|
|
14f8ab |
1 file changed, 1 insertion(+)
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
|
|
|
14f8ab |
index 060d923..1d96691 100644
|
|
|
14f8ab |
--- a/xlators/performance/io-threads/src/io-threads.c
|
|
|
14f8ab |
+++ b/xlators/performance/io-threads/src/io-threads.c
|
|
|
14f8ab |
@@ -835,6 +835,7 @@ __iot_workers_scale(iot_conf_t *conf)
|
|
|
14f8ab |
ret = gf_thread_create(&thread, &conf->w_attr, iot_worker, conf,
|
|
|
14f8ab |
"iotwr%03hx", conf->curr_count & 0x3ff);
|
|
|
14f8ab |
if (ret == 0) {
|
|
|
14f8ab |
+ pthread_detach(thread);
|
|
|
14f8ab |
conf->curr_count++;
|
|
|
14f8ab |
gf_msg_debug(conf->this->name, 0,
|
|
|
14f8ab |
"scaled threads to %d (queue_size=%d/%d)",
|
|
|
14f8ab |
--
|
|
|
14f8ab |
1.8.3.1
|
|
|
14f8ab |
|