On 14 Aug, Wolfgang Bornath wrote: > Hi, > > Just posting this to give an example for Netscape's still unbelievable > wasting of memory: > > I use MDK 8.0 with Netscape 4.77 as browser. My machine got 256M of > physical ram and a swap partition of 300M. > Now I had Netscape running for 2 days because i kept working on several > translations of MandrakeForum articles. The last one was a piece by > Civileme about what gets testet by Mandrake Q&A. I took some breaks in > between and in the meantime I read and wrote some mails with Mutt and > there was just one console window open and xosview running. All of this > took place on KDE. > At the end my harddisk startet to run frequently and xosview showed that > it startet swapping out. In the end I had a memory assessment of 240M > physical ram (just about 10% of it that was cache) and more than 280M of > swap space was in use. Reaction of the system startet to be sluggish. > > Now I sent the finished translation up to the Forum and when I closed > Netscape xosview showed a memory occupation of 73M of ram and 52 of swap! > That means Netscape has taken more than 380M of memory! > > A similar thing happened when I used to work with tkpppoe, a front end > for pppoe for my DSL connention. This tkpppoe works with wish and when I > saw xosview showing memory useage of more than 400M (ram + swap) I looked > at top and top showed wish using more than 260M of memory. As soon as I > exited tkpppoe those 260M were immediately released. How come wish is > taking so much memory? > > wobo Wish (and Tcl in general) does not release memory to the OS. Instead, when memory is released, it is maintianed in a pool to be reused by the application. Most likely, the Tcl (wish) script you are using is using up a lot of memory and never releasing it. One example is setting a new variable or an array and never unsetting it after it is no longer needed. You have to look at the code for tkpppoe to see where that happens. L -- Laurent Duperval <mailto:[EMAIL PROTECTED]> Bourgeois, ne niez pas: le frisson de l'envie chante au fond de votre prunelle! -Le commer�ant d'Achille Talon
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
