Al Boldi wrote:
willem wrote:
well I made 10 copy's of threadbug and run them in parallel. In my case
libpthread does not allocate a 10 Mb memory block, because
the 10 processes should allocate 100Mb of memory  Top does show only a
sligth increase in memory . On my kubuntu there are
145 processes allocated . So i can not reproduce your problem.

I just tried on another distribution, and without WaitFor the leak is still there, but a lot smaller, only ~12kb per thread.

Did you run with or without WaitFor?

How big is the thread overhead?


Thanks!

--
Al

well I modified my threadbug program in a endless repeat  until loop.
I cannot observe memery leaks on my my kubuntu system.
here is is my top output:

top - 08:47:47 up 8 min,  1 user,  load average: 2.13, 1.36, 0.71
Tasks: 147 total,   2 running, 145 sleeping,   0 stopped,   0 zombie
Cpu(s): 56.7%us, 16.6%sy, 0.0%ni, 26.5%id, 0.0%wa, 0.1%hi, 0.0%si, 0.0%st
Mem:   1027068k total,   608716k used,   418352k free,    16276k buffers
Swap:  3004112k total,        0k used,  3004112k free,   295140k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
7246 wli222    25   0 34160  14m  11m R   78  1.5   3:00.55 konsole
7264 wli222    25   0 10600  880  604 S   44  0.1   1:29.93 threadbug
5278 root      15   0  350m  13m 4064 S   18  1.3   0:32.88 Xorg
7044 wli222    15   0 35520  17m  13m S    2  1.7   0:02.41 kicker
7137 wli222    15   0 34260  15m  11m S    1  1.5   0:01.17 konsole
7040 wli222    15   0 30584  11m 9020 S    1  1.1   0:00.89 kwin
7027 wli222    15   0 25980 3156 1764 S    0  0.3   0:00.23 dcopserver
7244 wli222    15   0  2364 1188  884 R    0  0.1   0:00.37 top
2114 root      10  -5     0    0    0 S    0  0.0   0:00.07 ata/0
2314 root      10  -5     0    0    0 S    0  0.0   0:00.11 scsi_eh_6
5293 haldaemo  16   0  3260 1184 1036 S    0  0.1   0:00.08 hald-addon-stor
6235 root      15   0 18188 1060  720 S    0  0.1   0:00.02 webserver
7032 wli222    15   0 37980  18m  14m S    0  1.8   0:01.09 kded
7042 wli222    15   0 32704  13m  10m S    0  1.4   0:02.44 kdesktop
7086 wli222    15   0 46808  25m  18m S    0  2.5   0:05.06 ktorrent

here is my pmap output:

7264:   ./threadbug
08048000    300K r-x--  /home/wli222/thread5/threadbug
08093000    116K rwx--  /home/wli222/thread5/threadbug
080b0000    140K rwx--    [ anon ]
b753d000     40K r-x--  /lib/libgcc_s.so.1
b7547000      4K rwx--  /lib/libgcc_s.so.1
b755b000      4K rwx--    [ anon ]
b755c000      4K -----    [ anon ]
b755d000   8288K rwx--    [ anon ]
b7d75000     80K r-x--  /lib/tls/i686/cmov/libpthread-2.6.1.so
b7d89000      8K rwx--  /lib/tls/i686/cmov/libpthread-2.6.1.so
b7d8b000     12K rwx--    [ anon ]
b7d8e000   1296K r-x--  /lib/tls/i686/cmov/libc-2.6.1.so
b7ed2000      4K r-x--  /lib/tls/i686/cmov/libc-2.6.1.so
b7ed3000      8K rwx--  /lib/tls/i686/cmov/libc-2.6.1.so
b7ed5000     12K rwx--    [ anon ]
b7ed8000      8K r-x--  /lib/tls/i686/cmov/libdl-2.6.1.so
b7eda000      8K rwx--  /lib/tls/i686/cmov/libdl-2.6.1.so
b7edf000     76K rwx--    [ anon ]
b7ef2000    104K r-x--  /lib/ld-2.6.1.so
b7f0c000      8K rwx--  /lib/ld-2.6.1.so
bf9c5000     84K rwx--    [ stack ]
ffffe000      4K r-x--    [ anon ]
total    10608K
[EMAIL PROTECTED]:~$

regards Wim


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to