From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3477f938589b47f4 X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: Slowdown problems Date: 2000/03/30 Message-ID: <38E39ECA.B88ACBDA@kc.rr.com>#1/1 X-Deja-AN: 604451702 Content-Transfer-Encoding: 7bit References: <38E10F15.8BDAC2FF@home.com> <38E22059.29B58720@home.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon2.kc.rr.com 954441418 24.94.177.44 (Thu, 30 Mar 2000 12:36:58 CST) MIME-Version: 1.0 Reply-To: thammitt@kc.rr.com NNTP-Posting-Date: Thu, 30 Mar 2000 12:36:58 CST Newsgroups: comp.os.linux.alpha That's because 'ps ax' isn't going to help. Try using 'ps aux' which actually shows memory usage. Also, try typing 'free' before and after. It will show you how much memory and swap you are using. Finally, even if nothing is necessarily leaking, using lots of different programs can lead to a situation where the memory that has been allocated later in the user session is in smaller chunks than it has requested because of having to work around all of the other chunks that are in use. This is called memory fragmentation and it slows the computer down just the same way that hard drive fragmentation does. It is typically a result of having less system memory than would be optimal for your uses. The cure is to buy more memory. There isn't really any way for you to determine if you have this problem, but your symptoms are a good indicator. One of the things that can help is using a program that uses so much memory that it causes your computer to swap, then exits. This will cause all of the pages used by background and sleeping programs to be swapped and will flush out your buffer cache. Here's the one I use; I have 256MB please adjust accordingly: #include #include /* to smash 235MB: gcc memsmash.c -o memsmash -Wall strip memsmash memsmash 3000 10000 */ int main( int argc, char *argv[] ) { unsigned long **mat; size_t d1, d2; int i, j, k; if( argc < 3 ) { fprintf( stderr, "Usage: memsmash \n" ); exit(1); } d1 = (size_t)atol( argv[1] ); d2 = (size_t)atol( argv[2] ); mat= (unsigned long **)malloc( d1 * sizeof(long *) ); mat[0] = (unsigned long *)malloc( (d1*d2) * sizeof(long) ); for (i=1; i > Well, I took your advice and compared the ps ax output when it was slow and after I > relogged on and both were the exact same?!?! This would lead me to believe a memory > leak in something, but I'm just not sure. > > YamYam wrote: > > > I suggest that u compare the processes which are running while ur system is O.K. and > > while it is slowdown. By simply writing "ps ax" in the console -without double > > qoutes- at the two different periods, to realize what is going on at that specific > > part of the time. > > When u see some strange processes list that are displayed after invoking "ps ax", u > > can play around the problem by trying to kill the process with "kill -9 > > " command. > > > > Note!: U have to be careful about the system processes to not kill them, otherwise > > ur system may crash. So, u can login as a guest user and try the whole story when u > > leave ur system for some days. > > > > Best Wishes, > > -YamYam. > > > > Dave Thiery wrote: > > > > > > I have a PC164SX with a 533MHz 21164 and 256MB of RAM running Redhat > > > 6.1. I usually keep my account logged in and just turn off the monitor > > > when not in use. My problem is that every few days or so the systems > > > seems to slow down. It's easily fixed by logging out and logging back > > > in(not rebooting) But is still annoying. Anybody have any ideas why it > > > would do this and how to fix it?? The only things I leave running on it > > > when I'm not using it is the distributed.net client and an xterm window. > > > > > > Dave > > > > > > > > > > -- > > Posted via CNET Help.com > > http://www.help.com/