* Slowdown problems @ 2000-03-28 5:00 Dave Thiery 2000-03-29 5:00 ` YamYam 0 siblings, 1 reply; 4+ messages in thread From: Dave Thiery @ 2000-03-28 5:00 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Slowdown problems 2000-03-28 5:00 Slowdown problems Dave Thiery @ 2000-03-29 5:00 ` YamYam 2000-03-29 5:00 ` Dave Thiery 0 siblings, 1 reply; 4+ messages in thread From: YamYam @ 2000-03-29 5:00 UTC (permalink / raw) 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 <process_id>" 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Slowdown problems 2000-03-29 5:00 ` YamYam @ 2000-03-29 5:00 ` Dave Thiery 2000-03-30 5:00 ` Tony Hammitt 0 siblings, 1 reply; 4+ messages in thread From: Dave Thiery @ 2000-03-29 5:00 UTC (permalink / raw) 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 > <process_id>" 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Slowdown problems 2000-03-29 5:00 ` Dave Thiery @ 2000-03-30 5:00 ` Tony Hammitt 0 siblings, 0 replies; 4+ messages in thread From: Tony Hammitt @ 2000-03-30 5:00 UTC (permalink / raw) 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 <stdlib.h> #include <stdio.h> /* 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 <dim1> <dim2>\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<d1; i++) mat[i] = mat[i-1]+d2; for(k=0; k<10; k++) for(i=0; i<d1; i++) for(j=0; j<d2; j++) mat[i][j] = (unsigned long)rand()+k; return 0; } Remember when giving this it's arguments that unsigned long on an alpha is 8 bytes and you should leave about 20MB for the system. Regards, Tony Hammitt Dave Thiery wrote: > > 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 > > <process_id>" 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-03-30 5:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-03-28 5:00 Slowdown problems Dave Thiery 2000-03-29 5:00 ` YamYam 2000-03-29 5:00 ` Dave Thiery 2000-03-30 5:00 ` Tony Hammitt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox