[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 10/164: Fixed bug in perfomance forking
From: |
gnunet |
Subject: |
[gnunet] 10/164: Fixed bug in perfomance forking |
Date: |
Fri, 30 Jul 2021 15:31:16 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 617dbf66bb22465d1bf897be77274d09aaa89b5e
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Sat Apr 3 22:13:26 2021 +0200
Fixed bug in perfomance forking
---
src/setu/perf_setu_api.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 14a96f782..e40170cd3 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -425,14 +425,13 @@ static void run_petf_thread(int total_runs) {
//Father code (before child processes start)
for (int processed = 0; processed < total_runs;) {
for (int id = 0; id < core_count; id++) {
-
if(processed >= total_runs) break;
if ((child_pid = fork()) == 0) {
- perf_thread();
+ //perf_thread();
exit(0);
}
- processed=+1;
+ processed += 1;
}
while ((wpid = wait(&status)) > 0);
}
@@ -470,7 +469,7 @@ static void execute_perf() {
GNUNET_ERROR_TYPE_ERROR,
_("Failed to write subsystem default identifier map to
`%s'.\n"),
setu_cfg);
- run_petf_thread(100);
+ run_petf_thread(1000);
}
}
return 0;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (e8eb1ecc0 -> 24bc8b102), gnunet, 2021/07/30
- [gnunet] 06/164: added thread lib to setu perf, gnunet, 2021/07/30
- [gnunet] 07/164: Fixed, gnunet, 2021/07/30
- [gnunet] 08/164: Fixed some stack smashing error ;-), gnunet, 2021/07/30
- [gnunet] 10/164: Fixed bug in perfomance forking,
gnunet <=
- [gnunet] 01/164: Working, gnunet, 2021/07/30
- [gnunet] 03/164: Added multitreading, gnunet, 2021/07/30
- [gnunet] 14/164: Increased set difference for test by x10, gnunet, 2021/07/30
- [gnunet] 17/164: Perf test with bytes send/resived per ibf, gnunet, 2021/07/30
- [gnunet] 09/164: Added forking to perf test, gnunet, 2021/07/30
- [gnunet] 15/164: Perf run to test with bigger element set, gnunet, 2021/07/30
- [gnunet] 33/164: Make 5000 elements perftest for perftest, gnunet, 2021/07/30
- [gnunet] 16/164: Perf run to test with bigger element set smaller set, gnunet, 2021/07/30
- [gnunet] 25/164: Simulation with 10x less elements & Removed some debuging statements, gnunet, 2021/07/30
- [gnunet] 35/164: Add total bytes transmitted to perf, gnunet, 2021/07/30