Den 09-01-2015 kl. 15:15 skrev Joe Taylor:
Hi all,
A long time ago -- 2008, I believe -- we fixed a pthreads-related memory
leak that affected Linux (and probably other *nixes) but not Windows.
It seems that the pthreads implementation in Windows is different in the
way things are cleaned up (or not) after a thread exits.
Anyway, at some later time a change was made in start_threads.c for
testing purposes. This change broke the memory-leak fix that was
required on *nix platforms. The test code has remained in place ever
since. It worked fine in Windows, but it re-introduced the memory leak
on *nix platforms.
I have reverted the relevant code to more or less its 2008 state.
Revision 4889 of WSPR 4.0 seems to run properly on both Windows and
Linux, without evident memory leaks.
If you were experiencing the problem discussed here, please test r4889
and report back.
-- Joe, K1JT
OK, challenge accepted. I've checked out and rebuilt WSPR (r4889).
Running on my Mint Cinnamon 17.1 Rebecca, 32-bit machine Virt now crawls
up and down a bit, but essentially stays the same over the interval
tested (I'll let it run for a few hours just to make sure).
Two top snapshots have been attached.
--
Vy 73 de OZ1PIF/5Q2M, Peter
******************************************
** If it sounds too good to be true -- **
** it is! **
** If it sounds about right -- make **
** sure you can afford to be wrong! **
** **
** -- Robert Heinlein: **
** "Time enough for love" **
******************************************
email: peter(no-spam filler)@frenning.dk
http://www.frenning.dk/oz1pif.htm
Ph. +45 4619 3239/ +45 2332 9464
Snailmail:
Peter Frenning
Ternevej 23
DK-4130 Viby Sj.
Denmark
******************************************
******************************************************************
WSPR Version 4.0 r4889, by K1JT
Run date: Fri Jan 9 15:43:59 2015 UTC
******************************************************************
pif@Quad-Mint ~ $ top
top - 16:46:17 up 6:43, 3 users, load average: 0,12, 0,21, 0,19
Tasks: 165 total, 2 running, 163 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2,1 us, 0,6 sy, 0,0 ni, 97,3 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 4135188 total, 2146920 used, 1988268 free, 136356 buffers
KiB Swap: 4193276 total, 0 used, 4193276 free. 1032564 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2344 pif 20 0 590568 246668 62400 S 4,0 6,0 15:38.67 cinnamon
2590 pif 20 0 988244 224188 60536 S 2,0 5,4 9:24.18 skype
1566 root 20 0 180268 88468 50948 S 1,7 2,1 6:23.27 Xorg
12220 pif 20 0 209776 21820 13488 S 0,7 0,5 0:00.21 gnome-term+
1597 mysql 20 0 326536 39196 5752 S 0,3 0,9 0:07.74 mysqld
2361 pif 20 0 255856 43768 28212 S 0,3 1,1 0:04.83 nemo
12138 pif 20 0 222884 95400 12860 S 0,3 2,3 0:07.38 python3
1 root 20 0 4740 2772 1472 S 0,0 0,1 0:01.42 init
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 1:25.45 ksoftirqd/0
5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0,0 0,0 0:06.80 rcu_sched
8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0,0 0,0 0:00.20 migration/0
10 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/0
11 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/1
12 root rt 0 0 0 0 S 0,0 0,0 0:00.24 migration/1
**********************************************************************************
pif@Quad-Mint ~ $ top
top - 17:00:35 up 6:58, 3 users, load average: 0,04, 0,10, 0,13
Tasks: 163 total, 2 running, 161 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,9 us, 1,2 sy, 0,0 ni, 96,9 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 4135188 total, 2152576 used, 1982612 free, 136888 buffers
KiB Swap: 4193276 total, 0 used, 4193276 free. 1032604 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2344 pif 20 0 591816 247932 62400 S 4,3 6,0 16:01.77 cinnamon
1566 root 20 0 180268 88468 50948 S 2,3 2,1 6:30.43 Xorg
2590 pif 20 0 988244 224188 60536 S 2,3 5,4 9:43.87 skype
12220 pif 20 0 209996 21980 13532 S 1,3 0,5 0:01.04 gnome-term+
12138 pif 20 0 223040 95680 12908 S 1,0 2,3 0:43.67 python3
23 root 20 0 0 0 0 S 0,3 0,0 0:59.65 ksoftirqd/3
1437 root 20 0 2196 644 508 S 0,3 0,0 0:04.09 acpid
9095 root 20 0 0 0 0 R 0,3 0,0 0:01.84 kworker/2:0
9737 root 20 0 0 0 0 S 0,3 0,0 0:00.55 kworker/1:1
12255 pif 20 0 6900 1388 1008 R 0,3 0,0 0:01.57 top
1 root 20 0 4740 2772 1472 S 0,0 0,1 0:01.42 init
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 1:26.16 ksoftirqd/0
5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0,0 0,0 0:06.85 rcu_sched
8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0,0 0,0 0:00.20 migration/0
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel