I have a Linux program that starts out with one thread, and it uses 88 kB of RAM.
It then spawns a 2nd thread for a TCP connection, and a 3rd thread for sending digital audio samples to ALSA.
When the 2nd and 3rd thread start together, the memory usage jumps from 88 kB to 157 MB. I don't know where this extra memory is being allocated.
So next I run my program under Valgrind Massif, but my program no longer spikes from 88 kB to 157 MB. My program runs fine under Valgrind Massif without any memory spike -- it stays constant at about 88 kB.
Anyone seen this kind of thing before?
I have a Linux program that starts out with one thread, and it uses 88 kB of RAM.
I have a Linux program that starts out with one thread, and it uses 88 kB of RAM.[snip]
Anyone seen this kind of thing before?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 81:34:42 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,316 |
Posted today: | 1 |