Re: [SLE] empty the swap partition? slow internet
On Sunday 24 April 2005 06:14, you wrote:
John Sowden wrote:
I am running a 48MB 133Mhz machine with Suse 8.0 It has worked fine on the net until today. The spped slowed down often to less than 100 bytes per second, and the hard drive thrashed for hours.
Questions: Should the swap partition be empty upon cold boot? If so what is the command to test it to see how full it is, and to empty it, and in which boot file should it go?
It took me 8 hours to look at about 30 web pages of a ecommerce site. I never was able to make my purchases. Sometimes, it would take 15 minutes to bring a page up. more ram is an easy answer, but this is an old machine, and 48MB is overkill for other work. what has changed?
Swap is normally managed transparently, so you don't have to do anything. I'd suspect your problem lies elsewhere. What does "cat /proc/meminfo" show?
cat /proc/meminfo reads: total: used: free: shared: buffers: cached: Mem: 46915584 45912064 1003520 0 2072576 20795392 Swap: 123367424 26206208 97161216 MemTotal: 45816 kB MemFree: 980 kB MemShared: 0 kB Buffers: 2024 kB Cached: 16228 kB SwapCached: 4080 kB Active: 25036 kB Inactive: 12892 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 45816 kB LowFree: 980 kB SwapTotal: 120476 kB SwapFree: 94884 kB mem.info lines 1-17/17 (END) --- John Sowden American Sentry Systems. Inc. 1221 Andersen Drive San Rafael, CA 94901 U.L. Listed Central Station Alarm Service Serving the San Francisco Bay Area Since 1967 mail@americansentry.net http://www.americansentry.net
John Sowden wrote:
On Sunday 24 April 2005 06:14, you wrote:
John Sowden wrote:
I am running a 48MB 133Mhz machine with Suse 8.0 It has worked fine on the net until today. The spped slowed down often to less than 100 bytes per second, and the hard drive thrashed for hours.
Questions: Should the swap partition be empty upon cold boot? If so what is the command to test it to see how full it is, and to empty it, and in which boot file should it go?
It took me 8 hours to look at about 30 web pages of a ecommerce site. I never was able to make my purchases. Sometimes, it would take 15 minutes to bring a page up. more ram is an easy answer, but this is an old machine, and 48MB is overkill for other work. what has changed?
Swap is normally managed transparently, so you don't have to do anything. I'd suspect your problem lies elsewhere. What does "cat /proc/meminfo" show?
cat /proc/meminfo reads: total: used: free: shared: buffers: cached: Mem: 46915584 45912064 1003520 0 2072576 20795392 Swap: 123367424 26206208 97161216
The above shows you're using little more than 1/5th of your swap space, so that's not your problem. Top can show what processes are using the most CPU resources. Also bear in mind that a 133 MHz 48 MB system is not going to be fast, if you're running KDE or Gnome.
The Sunday 2005-04-24 at 10:56 -0700, John Sowden wrote:
cat /proc/meminfo reads: total: used: free: shared: buffers: cached: Mem: 46915584 45912064 1003520 0 2072576 20795392 Swap: 123367424 26206208 97161216
MemTotal: 45816 kB
You have 45 mb real memory, and 97 mb of swap in use. More swap than real memory --> thus slow system. -- Cheers, Carlos Robinson
On Mon, 2005-04-25 at 02:56 +0200, Carlos E. R. wrote:
The Sunday 2005-04-24 at 10:56 -0700, John Sowden wrote:
cat /proc/meminfo reads: total: used: free: shared: buffers: cached: Mem: 46915584 45912064 1003520 0 2072576 20795392 Swap: 123367424 26206208 97161216
MemTotal: 45816 kB
You have 45 mb real memory, and 97 mb of swap in use. More swap than real memory --> thus slow system. Actually (I lined up the amounts better) 45 MB mem, 26 Mb swap. Still not enough to run with KDE at least not efficiently.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
The Sunday 2005-04-24 at 22:45 -0400, Ken Schneider wrote:
On Mon, 2005-04-25 at 02:56 +0200, Carlos E. R. wrote:
The Sunday 2005-04-24 at 10:56 -0700, John Sowden wrote:
cat /proc/meminfo reads: total: used: free: shared: buffers: cached: Mem: 46915584 45912064 1003520 0 2072576 20795392 Swap: 123367424 26206208 97161216
MemTotal: 45816 kB
You have 45 mb real memory, and 97 mb of swap in use. More swap than real memory --> thus slow system. Actually (I lined up the amounts better) 45 MB mem, 26 Mb swap. Still not enough to run with KDE at least not efficiently.
Oops! I was to fast, you are right. Yes, the above must be before he really started, I think. I remember higher numbers on my old system, like a hundred Mb or more for my 32Mb Ram! gnome would be a bit better, but I would use fwmn or similar. Kde is nearly unusable with that memory. -- Cheers, Carlos Robinson
participants (4)
-
Carlos E. R.
-
James Knott
-
John Sowden
-
Ken Schneider