Re: [newbie] memory: leaks and fragmentations

2001-12-04 Thread meta

I think so,
check all the service u run. I just use 128Mb, never got like what u got.
I monitor my memory used by gkrellm and open bluefish, opera, netscape, xmms, 
yahoo messenger, prozilla download manager, audio galaxy satellite, and still 
works fine, with not that much of using memory as u did. It's absolutely not 
windoze box!

Well, yeah gnome is good, but kde has too many thing that much more 
interesting, like integration of all kde application. 

Kde is more fancy, but u could use window maker or black box which is lighter.

-m-

On Monday 03 December 2001 18:12, you wrote:
> this has been gone into for ever..but what you are veiwing _Might_ have to
> do with the cache use by linux. I don't think it is a "memory leak" (this
> ain't your win 95 box)
>
> On Monday 03 December 2001 04:08, you wrote:
> > I think my KDE has a memory leak, although I've not been able to find any
> > info on the possibility at kde.org. When I first turn on the computer,
> > KDE is using about 80MB, just now it was using 250MB (ouch!). I got those
> > two numbers from gtop. The memory usage builds up slowly over time.
> >
> > I just shutdown kde and looked at my memory with top, and despite all the
> > kde processes being gone the memory usage didn't drop by much at all. At
> > runlevel 3 with X/kde shutdown, and nothing but top being ran by me
> > directly, I had about 70MB free of my 384MB of memory. That just doesn't
> > sound right. I thought I left memory fragmenting behind with the
> > Macintosh
> >
> > :)
> >
> > Now, coming back into kde, kde is using about 150MB. A big improvement
> > over 250MB, but still more than it seems like it should be using.
> >
> > I am using kde 2.2.1. I had 2.2.2 briefly installed and noted it did the
> > same thing.
> >
> > Searching the net doesn't turn up much. It seems people think Linux
> > handles memory ok :)
> >
> > I think I will start using gnome or iceWM for a while and see if I notice
> > the same thing happening.
> >
> > Matt
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Randy Kramer

Ed Tharp wrote:
> well now... i guess it depends on your dafinition (spelled the way i wanted)
> of what is a memory leak. i would have bet that was abiword "cacheing" the
> documentsand I have noticed the same behaivior with Adobe Photoshop. it does
> make "re-opening" the same file somewhat quicker in my opinion. but I would
> not have called it a "leak' as the mem was returned (for the most part, it is
> a winders program)

It's not a cache.  After each of these steps, check the resources
available in the Resource Meter.  Open AbiWord.  Open an existing
document in AbiWord (which creates a new window).  Close that document. 
Open it, close it, open it, close it, ... After each open close cycle
you will notice that fewer and fewer resources are available.  Is
AbiWord caching the same document multiple times?  (If that is the case,
it is just as good as a memory leak.)

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Ed Tharp

On Monday 03 December 2001 15:47, you wrote:
> > As I understand it a leak is returned to the OS after the program
> > finishes. The problem with leaks is they can cause problems while the
> > program is running.
>
> There were problems with different versions of windows, where the memory
> was NOT returned to the OS when the program exited.  Quality OS eh?  What a
> joke.
yep I remember running a network of win95a computers, we just told everyone 
to turn the box off at night, or reboot every three days, if the "system" 
does not reboot you.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Randy Kramer

Richard Wenninger wrote:
> yes.. but when that process terminates... the memory should be returned to
> the system, right?  in which case... the OS never lost track of it.

Maybe there are different levels of memory leak?  In many cases after
you shut down a Windows program which continued to use more and more
memory, the memory is freed for the OS.

Example: (sadly) the recent versions of AbiWord (for Windows) that I've
tested have a memory leak.  If you invoke AbiWord and then open and
close additional windows for documents, more and more memory is used,
but not freed up until you close the last AbiWord window, at which point
all the memory is restored.  (Note: some memory is restored each time
you close a document (window), but more and more is locked up until you
finally close AbiWord completely.

There seem to be other memory leaks that do not restore the lost memory
until a reboot.  Now that I've written this, I suspect that some of the
memory leaks are in the operating system itself and some are in
applications, thus making the difference.

Maybe Linux (currently) has no leaks in the operating system itself. 
(But, I'll bet some of the development versions have had leaks.)

Speculating,
Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Richard Wenninger

yes.. but when that process terminates... the memory should be returned to 
the system, right?  in which case... the OS never lost track of it.


On Monday 03 December 2001 12:59 pm, you wrote:
> On Monday 03 December 2001 12:17 pm, you wrote:
> > Ed Tharp wrote:
> > > this has been gone into for ever..but what you are veiwing _Might_ have
> > > to do with the cache use by linux. I don't think it is a "memory leak"
> > > (this ain't your win 95 box)
> >
> > I don't think there is anything inherent in Linux which will prevent
> > memory leaks -- it comes down to care and testing by the programmer.
> > AFAIK, memory leaks can be created anywhere C or C++ are used (and
> > probably many other languages).
>
> Yup, I just tested that. Linux does not appear to make any attempt to stop
> memory leaks. I wrote a quick program with an infinite loop that
> dynamically allocated some memory. Watching top, its memory usage climbed
> dramatically.
>
> There's really no way for Linux to know if I really am using that memory or
> not, so I don't see how it could interfere.
>
> Matt
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Matt Greer

On Monday 03 December 2001 12:17 pm, you wrote:
> Ed Tharp wrote:
> > this has been gone into for ever..but what you are veiwing _Might_ have
> > to do with the cache use by linux. I don't think it is a "memory leak"
> > (this ain't your win 95 box)
>
> I don't think there is anything inherent in Linux which will prevent
> memory leaks -- it comes down to care and testing by the programmer.
> AFAIK, memory leaks can be created anywhere C or C++ are used (and
> probably many other languages).
>
Yup, I just tested that. Linux does not appear to make any attempt to stop 
memory leaks. I wrote a quick program with an infinite loop that dynamically 
allocated some memory. Watching top, its memory usage climbed dramatically.

There's really no way for Linux to know if I really am using that memory or 
not, so I don't see how it could interfere.

Matt

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Randy Kramer

Ed Tharp wrote:
> this has been gone into for ever..but what you are veiwing _Might_ have to do
> with the cache use by linux. I don't think it is a "memory leak" (this ain't
> your win 95 box)

I don't think there is anything inherent in Linux which will prevent
memory leaks -- it comes down to care and testing by the programmer. 
AFAIK, memory leaks can be created anywhere C or C++ are used (and
probably many other languages).

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Matt Greer

On Monday 03 December 2001 03:08 am, you wrote:

> I just shutdown kde and looked at my memory with top, and despite all the
> kde processes being gone the memory usage didn't drop by much at all. At
> runlevel 3 with X/kde shutdown, and nothing but top being ran by me
> directly, I had about 70MB free of my 384MB of memory. That just doesn't
> sound right. I thought I left memory fragmenting behind with the Macintosh
> :)

Well I got one answer to this. Linux purposely grabs free memory to use for 
disk write caching and the like. So the fact that my memory is nearly full 
despite most everything being shutdown is not really a concern.

I'm still curious about KDE, though.

Matt

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] memory: leaks and fragmentations

2001-12-03 Thread Ed Tharp

this has been gone into for ever..but what you are veiwing _Might_ have to do 
with the cache use by linux. I don't think it is a "memory leak" (this ain't 
your win 95 box)


On Monday 03 December 2001 04:08, you wrote:
> I think my KDE has a memory leak, although I've not been able to find any
> info on the possibility at kde.org. When I first turn on the computer, KDE
> is using about 80MB, just now it was using 250MB (ouch!). I got those two
> numbers from gtop. The memory usage builds up slowly over time.
>
> I just shutdown kde and looked at my memory with top, and despite all the
> kde processes being gone the memory usage didn't drop by much at all. At
> runlevel 3 with X/kde shutdown, and nothing but top being ran by me
> directly, I had about 70MB free of my 384MB of memory. That just doesn't
> sound right. I thought I left memory fragmenting behind with the Macintosh
> :)
>
> Now, coming back into kde, kde is using about 150MB. A big improvement over
> 250MB, but still more than it seems like it should be using.
>
> I am using kde 2.2.1. I had 2.2.2 briefly installed and noted it did the
> same thing.
>
> Searching the net doesn't turn up much. It seems people think Linux handles
> memory ok :)
>
> I think I will start using gnome or iceWM for a while and see if I notice
> the same thing happening.
>
> Matt
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com