> You don't have unlimited virtual memory This (new) router has 256 Mb ram and no swap space (it has only a flash disk that I don't want to use for swap).
I seem to remember reading that the kernel allows programs to allocate more virtual memory than what is available as ram and swap, and will then start killing random programs if they ever actually use all the allocated memory. I have not noticed any programs getting killed on the router. So maybe I have more than 256 Mb virtual memory even on this small box, as long as the memory is only allocated and not really used. But still 108 Mb for just linux-igd has me a bit worried. > First question - does the virtual memory usage increase with time, or is > it fairly static once the daemon has been running for a while ? It seems that it grabs a lot of memory at the start, and then it increases slowly. I've seen virtual memory use of up to around 140 Mb when the router has been running a week or so. The memory use seems to have gotten a bit worse with the new versions; here is "top" from an older, very busy router running etch and the old linux-igd version 1.0 from José Fonseca: top - 20:15:33 up 19 days, 4:00, 1 user, load average: 0.29, 0.15, 0.04 Tasks: 68 total, 2 running, 66 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 98.3%id, 0.0%wa, 0.0%hi, 1.7%si, 0.0%st Mem: 248188k total, 243952k used, 4236k free, 74280k buffers Swap: 3903672k total, 88k used, 3903584k free, 32332k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5546 root 15 0 85196 1392 656 S 0.0 0.6 1069:07 upnpd > I would not be surprised to learn that libupnp3 still has memory leaks, > but the important question is, are they sufficient to cause a problem. Actually, I think that linux-igd _is_ causing me problems, but not so much its memory consumption as its CPU use. As you can see just above, upnpd has used 1069 CPU-minutes in 19 days (on a 1,6 GHz system) on the old router. Worse, I've seen upnpd use 100% cpu time on my new router, and I believe that it coincides with the times that the router is running badly. However, I guess that I should file another bug report for that... Rune -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

