Re: [expert] Memory Leak in XFree updates
> On Fri, 19 Sep 2003 22:40:47 -0400 > Greg Meyer <[EMAIL PROTECTED]> uttered: > >> Here is some output from top. See how X is using 212M. Way more than >> it used to. Has anybody else experienced anything like this? > > Here's mine. > > 1628 root 14 287m 29m 3732 R 1.3 7.9 1:42.01 X > > I have nothing to compare it to as regards the previous version of X, > but even tho it seems to be using a lot of memory, the thing to keep in > mind is: I think there may be some misconceptions about how much actual physical memory is being used by X, and what the total number there represents. The size you see there is a combination of things such as memory mapped to the video card, shared libraries, and actual physical memory. The mapped video memory, which can be huge depending on the dedicated memory on your video card, does not take up physical RAM. Most of it is just stored on the device itself, but for various reasons, need to be shown as part of memory. A 64M video card would add 64M to the total number, but would use almost no actual system RAM. There are also a bunch of shared libraries that contribute to the total. These include glibc and a bunch of other libraries. You can probably look somewhere in /proc to find the breakdown. In any case, the footprint of X minus shared libs is probably aroud 3-4M. Finally, the actual runtime memory likely depends on things like your choice of desktop background, bit depth, screen resolution, existence of some sort of buffer area for clean redraws, etc.. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak in XFree updates
On Fri, 19 Sep 2003 22:40:47 -0400 Greg Meyer <[EMAIL PROTECTED]> uttered: > Hi. > > Ever since I updated my XFree packages last week, I have been seeing X > use massive amounts of memory and I am concerned there may be a memory > leak or something. > > Here is some output from top. See how X is using 212M. Way more than > it used to. Has anybody else experienced anything like this? Here's mine. 1628 root 14 0 287m 29m 3732 R 1.3 7.9 1:42.01 X I have nothing to compare it to as regards the previous version of X, but even tho it seems to be using a lot of memory, the thing to keep in mind is: is it affecting your overall performance? Personally, I can still mousewheel thru 10 desktops running 10 different apps (including *Galeon*, a memory *hog*) in milliseconds with no delay in response, and my machine is a dinosaur, a P3 866, 392 MB SDRAM (okay, so I have a GF4 Ti). And with all this running, I can still play Wolfenstein without hitches. Linux is a genius when it comes to resource management, so like I say, unless you see an affect on your overall performance, not to worry. You could always switch to a lighter WM, like say, Pekwm? LOL! -- HaywireMac Registered Linux user #282046 Homepage: www.orderinchaos.org ++ Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org ++ In the long run we are all dead. -- John Maynard Keynes Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] Memory Leak in XFree updates
Hi. Ever since I updated my XFree packages last week, I have been seeing X use massive amounts of memory and I am concerned there may be a memory leak or something. Here is some output from top. See how X is using 212M. Way more than it used to. Has anybody else experienced anything like this? top - 22:39:01 up 1 day, 37 min, 1 user, load average: 0.04, 0.06, 0.01 Tasks: 83 total, 1 running, 82 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% user, 0.7% system, 0.0% nice, 99.0% idle Mem:511360k total, 490604k used,20756k free,22984k buffers Swap: 306896k total, 3812k used, 303084k free, 129584k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ Command 15354 greg 11 0 32176 31m 16m S 0.0 6.3 0:02.46 kmail 15428 greg 11 0 28716 28m 11m S 0.0 5.6 0:02.00 opera 15430 greg 8 0 28716 28m 11m S 0.0 5.6 0:00.00 opera 1522 root 5 -10 212m 19m 4652 S 0.0 4.0 2:31.82 X 15376 greg 9 0 17284 16m 15m S 0.0 3.4 0:00.09 kdeinit 14467 greg 15 0 16768 16m 1464 S 0.3 3.3 0:31.20 Xvnc 3948 root 8 0 15472 15m 9812 S 0.0 3.0 0:00.32 kdm_greet 15365 greg 9 0 15312 14m 13m S 0.0 3.0 0:00.15 kdeinit -- /g "Outside of a dog, a man's best friend is a book, inside a dog it's too dark to read" -Groucho Marx Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
On Fri, 5 Jul 2002 22:17:15 -0700 Todd Lyons <[EMAIL PROTECTED]> said with temporary authority > James wrote on Tue, Jul 02, 2002 at 03:36:23PM + : > > > > 98% of my CPU.. > > The program .. VI yep it had been up for about 2 hours and was > > slowly consuming all my cpu power. Has anyone else noticed this or > > better yet can anyone else duplicate it. I'd like to know if this > > is a bug or a one off. > > I can reproduce this since RedHat version 6.2, but only in an error > scenario. > > 1) ssh to a box. Any box, it doesn't matter. 'vi file' > 2) close the window that you ssh'd from (or let it time-out if you > ssh'd to a remote box outside of your firewall, ie not on your local > lan) 3) ssh back to that box and you'll see that it is consuming 99% > CPU > > I don't have a technical reason why it happens, but it does. (seems to > be related to vi losing its controlling terminal). You have to kill > -9 it get rid of it. killall -9 vi works too. > > As for why it did this to you on a still running instance of vi, I'm > not sure. A surefire way of finding this in the future is to do a ps > ax or ps aux and look for a process with a very high CPU time number. Todd- Found out why it was doing it with an "open" window Seems to have been related to my problems with X. It seems that at times windows "appear" to be open but in fact the process controlling them has quietly died without error. Eventually the screen will refresh and the window will disappear. (usually when I come back to that "page" in my wm and try to do something with it.) I know I'm getting a lot of weird errors of late . thanks for being tolerant. This box is as flakey as win95 right now and I can't afford the time to scrub it back to wood and start it over. James > > Blue skies... Todd > -- > Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ > UNIX was not designed to stop you from doing stupid things, because > that would also stop you from doing clever things. -- Doug Gwyn >Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-21mdk > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
On Fri, 5 Jul 2002 22:17:15 -0700 Todd Lyons <[EMAIL PROTECTED]> wrote: > James wrote on Tue, Jul 02, 2002 at 03:36:23PM + : > > > > 98% of my CPU.. > > The program .. VI yep it had been up for about 2 hours and was > > slowly consuming all my cpu power. Has anyone else noticed this or > > better yet can anyone else duplicate it. I'd like to know if this is a > > bug or a one off. > > I can reproduce this since RedHat version 6.2, but only in an error > scenario. > > 1) ssh to a box. Any box, it doesn't matter. 'vi file' > 2) close the window that you ssh'd from (or let it time-out if you ssh'd > to a remote box outside of your firewall, ie not on your local lan) > 3) ssh back to that box and you'll see that it is consuming 99% CPU > > I don't have a technical reason why it happens, but it does. (seems to > be related to vi losing its controlling terminal). You have to kill -9 > it get rid of it. killall -9 vi works too. > > As for why it did this to you on a still running instance of vi, I'm not > sure. A surefire way of finding this in the future is to do a ps ax or > ps aux and look for a process with a very high CPU time number. > > Blue skies... Todd i was able to do this with mcedit as well. sometimes after working with mcedit in a konsole, if i simply close the window without exiting mcedit, it keeps running in the background taking up to 90% of my cpu.. however it doesn't happen every time and i have to try several times to reproduce it. Damian Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
James wrote on Tue, Jul 02, 2002 at 03:36:23PM + : > > 98% of my CPU.. > The program .. VI yep it had been up for about 2 hours and was > slowly consuming all my cpu power. Has anyone else noticed this or > better yet can anyone else duplicate it. I'd like to know if this is a > bug or a one off. I can reproduce this since RedHat version 6.2, but only in an error scenario. 1) ssh to a box. Any box, it doesn't matter. 'vi file' 2) close the window that you ssh'd from (or let it time-out if you ssh'd to a remote box outside of your firewall, ie not on your local lan) 3) ssh back to that box and you'll see that it is consuming 99% CPU I don't have a technical reason why it happens, but it does. (seems to be related to vi losing its controlling terminal). You have to kill -9 it get rid of it. killall -9 vi works too. As for why it did this to you on a still running instance of vi, I'm not sure. A surefire way of finding this in the future is to do a ps ax or ps aux and look for a process with a very high CPU time number. Blue skies... Todd -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-21mdk msg56067/pgp0.pgp Description: PGP signature
Re: [expert] Memory Leak?
On Tue, 2 Jul 2002 20:52:35 -0700 (PDT) [EMAIL PROTECTED] (dfox) said with temporary authority > > The program .. VI yep it had been up for about 2 hours and was > > slowly consuming all my cpu power. Has anyone else noticed this or > > vi? I find that odd. Was it related to the size of the file you were > editing? > > > > James Taking an earlier suggestion i wackes ,vimrc and have been unable to recreate the problem since Don't know what the corruption was but I can't create it now. ... scared the heck outa me... I'd be lost without VI oh and the file that was open lilo.conf. James > > > > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
> The program .. VI yep it had been up for about 2 hours and was > slowly consuming all my cpu power. Has anyone else noticed this or vi? I find that odd. Was it related to the size of the file you were editing? > James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
James wrote: >All, > > In my continuing effort to solve other problems on my box I found >something interesting. for the first time the box had started to >slow down. Dramatically. So I checked the term window running top and >sure enough a program that I had running in a tty window was now using >98% of my CPU.. > >The program .. VI yep it had been up for about 2 hours and was >slowly consuming all my cpu power. Has anyone else noticed this or >better yet can anyone else duplicate it. I'd like to know if this is a >bug or a one off. > > >James > > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com > Hmmm, my VI has been up for about 2 months on one box--no problem. I tend to use emacs a lot more, but vi and visudo are still very important to me. I have not had a problem with vi grabbing CPU ever. It is a nice lightweight editor with a neat way of keeping hands on keyboard. jabberd has given problems (eating available RAM) on every single box where I tried it and I tried it on all just to verify that it is most probably a memory leak. I will be campaigning for its removal next distro unless it gets fixed. Civileme Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
On Tue, 2 Jul 2002 18:38:58 -0400 (EDT) [EMAIL PROTECTED] said with temporary authority > On Tue, 2 Jul 2002, James wrote: > > > All, > > > >In my continuing effort to solve other problems on my box I found > > something interesting. for the first time the box had started > > to slow down. Dramatically. So I checked the term window running > > top and sure enough a program that I had running in a tty window was > > now using 98% of my CPU.. > > > > The program .. VI yep it had been up for about 2 hours and was > > slowly consuming all my cpu power. Has anyone else noticed this or > > better yet can anyone else duplicate it. I'd like to know if this > > is a bug or a one off. > > I've had this happen before. It turned out to be a corrupt .vimrc. > > > See further proof that no man is an Island especially if he/she uses Linux. Thanks James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory Leak?
On Tue, 2 Jul 2002, James wrote: > All, > >In my continuing effort to solve other problems on my box I found > something interesting. for the first time the box had started to > slow down. Dramatically. So I checked the term window running top and > sure enough a program that I had running in a tty window was now using > 98% of my CPU.. > > The program .. VI yep it had been up for about 2 hours and was > slowly consuming all my cpu power. Has anyone else noticed this or > better yet can anyone else duplicate it. I'd like to know if this is a > bug or a one off. I've had this happen before. It turned out to be a corrupt .vimrc. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] Memory Leak?
All, In my continuing effort to solve other problems on my box I found something interesting. for the first time the box had started to slow down. Dramatically. So I checked the term window running top and sure enough a program that I had running in a tty window was now using 98% of my CPU.. The program .. VI yep it had been up for about 2 hours and was slowly consuming all my cpu power. Has anyone else noticed this or better yet can anyone else duplicate it. I'd like to know if this is a bug or a one off. James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory leak?
--- David Guntner <[EMAIL PROTECTED]> wrote: > Steve Kieu grabbed a keyboard and wrote: > > > > The VM in the kernel 2.4.x has problems this is a > > _hot_ topic in the LKML; so the kernel in MDK8.1 > > > > >From my experience I use 2.4.13 and it is quite > good The kernel I mentioned is the official 2.4.13; it is quite strange to see and understand why 2.4.13 VM is different from any others, I compiled it and use for a ancient box 486 16Mb RAM and running XFree86 3.0.6; when X is up with fvwm95 the free memory is still 1.2Mb with no swap used !. After starting netscape, swap used around 3Mb But if you try even the latest kernel (2.4.17) the result is different. (worse). You can go to ftp://ftp.kernel.org/ to download. To know the actually kernel version u are running u can use uname -a > [davidg@rhpsfan2 davidg]$ rpm -q -a|egrep kernel > kernel-source-2.4.8-26mdk > kernel-doc-2.4.8-26mdk > kernel-headers-2.4.8-26mdk > kernel-2.4.8-26mdk > [davidg@rhpsfan2 davidg]$ > > Looks like I'm running 2.4.8 (-26?). So I guess an > upgrade is in order. > Thanks for the suggestion. Is that kernel available > in the "updates" > directory for 8.1 at the nearest mirror site? > > --Dave > > > --- David Guntner <[EMAIL PROTECTED]> wrote: > > > > > > I'm running 8.1. > > > > > > After starting my system, I've noted the amount > of > > > memory and swap space > > > being used on a "top" display. After a reboot, > > > there's always 0 swap being > > > used. I've noticed that the longer the system > runs, > > > the more memory > > > resources show up being used, and the bigger the > > > used swap space gets. I > > > came home from a trip recently to find my Linux > box > > > stopped for no apparent > > > reason, and after a reboot, none of the system > logs > > > showed any errors at > > > the point where the system stopped. I've pretty > > > much got the same things > > > running all the time. I'm beginning to think > that > > > *something* has a nasty > > > memory leak, but I don't have a clue as to what. > Is > > > there a way to > > > identify programs that have memory leaks? > Something > > > that can track the > > > memory usage of program running in the system or > > > whatever? > > > > > > Any ideas? > -- > David Guntner GEnie: Just say NO! > http://www.akaMail.com/pgpkey/davidg or key server > for PGP Public key > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > = S.KIEU http://my.yahoo.com.au - My Yahoo! - It's My Yahoo! Get your own! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory leak?
Steve Kieu grabbed a keyboard and wrote: > > The VM in the kernel 2.4.x has problems this is a > _hot_ topic in the LKML; so the kernel in MDK8.1 > > >From my experience I use 2.4.13 and it is quite good > in terms of VM management. Try it first. [davidg@rhpsfan2 davidg]$ rpm -q -a|egrep kernel kernel-source-2.4.8-26mdk kernel-doc-2.4.8-26mdk kernel-headers-2.4.8-26mdk kernel-2.4.8-26mdk [davidg@rhpsfan2 davidg]$ Looks like I'm running 2.4.8 (-26?). So I guess an upgrade is in order. Thanks for the suggestion. Is that kernel available in the "updates" directory for 8.1 at the nearest mirror site? --Dave > --- David Guntner <[EMAIL PROTECTED]> wrote: > > > > I'm running 8.1. > > > > After starting my system, I've noted the amount of > > memory and swap space > > being used on a "top" display. After a reboot, > > there's always 0 swap being > > used. I've noticed that the longer the system runs, > > the more memory > > resources show up being used, and the bigger the > > used swap space gets. I > > came home from a trip recently to find my Linux box > > stopped for no apparent > > reason, and after a reboot, none of the system logs > > showed any errors at > > the point where the system stopped. I've pretty > > much got the same things > > running all the time. I'm beginning to think that > > *something* has a nasty > > memory leak, but I don't have a clue as to what. Is > > there a way to > > identify programs that have memory leaks? Something > > that can track the > > memory usage of program running in the system or > > whatever? > > > > Any ideas? -- David Guntner GEnie: Just say NO! http://www.akaMail.com/pgpkey/davidg or key server for PGP Public key Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Memory leak?
The VM in the kernel 2.4.x has problems this is a _hot_ topic in the LKML; so the kernel in MDK8.1 >From my experience I use 2.4.13 and it is quite good in terms of VM management. Try it first. Regard --- David Guntner <[EMAIL PROTECTED]> wrote: > I'm running 8.1. > > After starting my system, I've noted the amount of > memory and swap space > being used on a "top" display. After a reboot, > there's always 0 swap being > used. I've noticed that the longer the system runs, > the more memory > resources show up being used, and the bigger the > used swap space gets. I > came home from a trip recently to find my Linux box > stopped for no apparent > reason, and after a reboot, none of the system logs > showed any errors at > the point where the system stopped. I've pretty > much got the same things > running all the time. I'm beginning to think that > *something* has a nasty > memory leak, but I don't have a clue as to what. Is > there a way to > identify programs that have memory leaks? Something > that can track the > memory usage of program running in the system or > whatever? > > Any ideas? > > --Dave > -- > David Guntner GEnie: Just say NO! > http://www.akaMail.com/pgpkey/davidg or key server > for PGP Public key > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > = S.KIEU http://my.yahoo.com.au - My Yahoo! - It's My Yahoo! Get your own! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] Memory leak?
I'm running 8.1. After starting my system, I've noted the amount of memory and swap space being used on a "top" display. After a reboot, there's always 0 swap being used. I've noticed that the longer the system runs, the more memory resources show up being used, and the bigger the used swap space gets. I came home from a trip recently to find my Linux box stopped for no apparent reason, and after a reboot, none of the system logs showed any errors at the point where the system stopped. I've pretty much got the same things running all the time. I'm beginning to think that *something* has a nasty memory leak, but I don't have a clue as to what. Is there a way to identify programs that have memory leaks? Something that can track the memory usage of program running in the system or whatever? Any ideas? --Dave -- David Guntner GEnie: Just say NO! http://www.akaMail.com/pgpkey/davidg or key server for PGP Public key Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] "Memory Leak"
Civileme wrote: > > I figured I should share this result from the crashtesters. > > One of our crashtesters installed Traktopel Beta 2 and was running > compilation programs. > > And his memory was used up... his swap was hit hard... and the system > informed him it was out of memory and shutting down bash. > > Reinstall--same technique, same symptom. > > Fortunately the crashtesters have scripts that phone home with configuration > information. > > I spotted a WD and a Maxtor on IDE0 and recommended he separate them--one on > ide1 and one on ide0. He did this. > > Another reinstall -- same technique NO symptom--been reunning well since that > time. > > Timing chatter on the IDE bus Some DVD-ROMs on VIA chipsets can cause > corruption of install-time data on hard disks past kernel 2.2.15. WD and > Maxtor of same speed or a slower WD with a fast Maxtor master will just eat > your data with timing chatter. > > And since WD doesn't do the CRCs necessary to check, you can actually boot > and run on a corrupted system (for a little while, anyway). > > Civileme Well as luck would have it I have a VIA ide controller and a dvd drive My setup is ide0 40GB 5400 rpm fujitsu drive (ata 100 running as ata33) 3GB seagate medalist (slave) ide1 2GB WD Caviar (master) Aopen DVD rom Drive 12x What can I do to cure my problem? Stefaans
Re: [expert] "Memory Leak"
> Timing chatter on the IDE bus Some DVD-ROMs on VIA chipsets can cause > corruption of install-time data on hard disks past kernel 2.2.15. WD and > Maxtor of same speed or a slower WD with a fast Maxtor master will just eat > your data with timing chatter. > > And since WD doesn't do the CRCs necessary to check, you can actually boot > and run on a corrupted system (for a little while, anyway). Am I correct in understanding from your comment, Civilme, that this issue does NOT affect 2.2.15 kernels? Are WD drives not good for running under Linux? Bob
[expert] "Memory Leak"
I figured I should share this result from the crashtesters. One of our crashtesters installed Traktopel Beta 2 and was running compilation programs. And his memory was used up... his swap was hit hard... and the system informed him it was out of memory and shutting down bash. Reinstall--same technique, same symptom. Fortunately the crashtesters have scripts that phone home with configuration information. I spotted a WD and a Maxtor on IDE0 and recommended he separate them--one on ide1 and one on ide0. He did this. Another reinstall -- same technique NO symptom--been reunning well since that time. Timing chatter on the IDE bus Some DVD-ROMs on VIA chipsets can cause corruption of install-time data on hard disks past kernel 2.2.15. WD and Maxtor of same speed or a slower WD with a fast Maxtor master will just eat your data with timing chatter. And since WD doesn't do the CRCs necessary to check, you can actually boot and run on a corrupted system (for a little while, anyway). Civileme
Re: [expert] Memory leak in X after upgrading to 6.1
Hai Vo-Ba wrote: > > > Is anyone else experiencing what seems to be a slow memory leak after > > upgrading from the stock (6.0) XFree rpms to XFree3.3.5? > > I have the same problem since upgrading my Kayak XU to Helios this past > Saturday: X started out at around 13MB and after a couple days has grown > to 143MB. > > --Hai > > > Keith > > -- > > There's ease of use and then there's ease of usefulness. > > Choose usefulness. Choose Linux. > > Maybe it's not the X fault. The new gftp2.03 (comes with 6.1) has a very big memory leak. Sometimes eated 400Mb(!) memory... crazy things. Open a terminal and fingertip on the system ps -e, top. drosh -- "In Theory there is no difference between Theory and Practice, but in Practice there is."
[expert] Memory leak in X after upgrading to 6.1
> Is anyone else experiencing what seems to be a slow memory leak after > upgrading from the stock (6.0) XFree rpms to XFree3.3.5? I have the same problem since upgrading my Kayak XU to Helios this past Saturday: X started out at around 13MB and after a couple days has grown to 143MB. --Hai > Keith > -- > There's ease of use and then there's ease of usefulness. > Choose usefulness. Choose Linux. >