Disk thrashing -- possible memory issue? RH7.

Disk thrashing -- possible memory issue? RH7.

Post by JNJ » Sat, 07 Apr 2001 12:29:52



I'm running RedHat 7 over here and for some reason this drive is just
thrashing.  I'm on an Athlon Thunderbird 800MHz CPU, originally had 320M RAM
and I've bumped up to 512M.  I have Linux on physical drive 1 (Primary
Slave) which is a 12G Western Digital HDD.  I originally set up a swap space
of 128M however, thinking this may be memory related, turned off swap
altogether.

I'll be the first to admit I'm a bit new to Linux from the admin side of
things -- any suggestions are much appreciated.

James

 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Jacob Kristense » Sat, 07 Apr 2001 13:06:12



> I'm running RedHat 7 over here and for some reason this drive is just
> thrashing.  I'm on an Athlon Thunderbird 800MHz CPU, originally had 320M RAM
> and I've bumped up to 512M.  I have Linux on physical drive 1 (Primary
> Slave) which is a 12G Western Digital HDD.  I originally set up a swap space
> of 128M however, thinking this may be memory related, turned off swap
> altogether.

> I'll be the first to admit I'm a bit new to Linux from the admin side of
> things -- any suggestions are much appreciated.

> James


Step 1: DON'T MULTIPOST
Step 2: Elaborate on "thrashing". As in what/when/how.

Jacob
--

There he goes... One of Gods own prototypes.
A high-powered mutant of some kind,
never even considered for mass production.
Too weird to live, and too rare to die.


 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Melvyn Walke » Sat, 07 Apr 2001 17:27:44



> I'm running RedHat 7 over here and for some reason this drive is just
> thrashing.  I'm on an Athlon Thunderbird 800MHz CPU, originally had 320M RAM
> and I've bumped up to 512M.  I have Linux on physical drive 1 (Primary
> Slave) which is a 12G Western Digital HDD.  I originally set up a swap space
> of 128M however, thinking this may be memory related, turned off swap
> altogether.

> I'll be the first to admit I'm a bit new to Linux from the admin side of
> things -- any suggestions are much appreciated.

> James


Somebody once asked me the similar question. If this only happens after starts
up
it is probably that updatedb is running (used for locate). This is kicked off
using anacron and can be
annoying. Personally I set it to run weekly, rather than daily.
 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by JNJ » Sun, 08 Apr 2001 12:00:05


Quote:> Elaborate on "thrashing". As in what/when/how.

1) Hard drive

2) Especially prevalent right after I start Netscape (which pretty much does
not come up unless I leave the room for a long while) but I've seen it after
using the system a while as well.

3) Not sure there is a "how" answer short of going into drive mechanics.
(????)

Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm afraid
I really do not know where to start troubleshooting this one or really even
where to begin describing the issue in detail.  It has also been suggested
that Linux may not be using the full capacity of the memory.

James

 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Brent B. McCracki » Sun, 08 Apr 2001 13:21:44


Ah... Netscape... with every click it writes to the cache, and it also
thrashes a lot as it maintains the cache.

So, not likely a memory or swap problem, just Netscape's messy cache
maintenance.

-Brent


Quote:> > Elaborate on "thrashing". As in what/when/how.

> 1) Hard drive

> 2) Especially prevalent right after I start Netscape (which pretty much
does
> not come up unless I leave the room for a long while) but I've seen it
after
> using the system a while as well.

> 3) Not sure there is a "how" answer short of going into drive mechanics.
> (????)

> Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm
afraid
> I really do not know where to start troubleshooting this one or really
even
> where to begin describing the issue in detail.  It has also been suggested
> that Linux may not be using the full capacity of the memory.

> James

 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Melvyn Walke » Sun, 08 Apr 2001 18:08:34



> > Elaborate on "thrashing". As in what/when/how.

> 1) Hard drive

> 2) Especially prevalent right after I start Netscape (which pretty much does
> not come up unless I leave the room for a long while) but I've seen it after
> using the system a while as well.

> 3) Not sure there is a "how" answer short of going into drive mechanics.
> (????)

> Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm afraid
> I really do not know where to start troubleshooting this one or really even
> where to begin describing the issue in detail.  It has also been suggested
> that Linux may not be using the full capacity of the memory.

> James

James,
            just wondered if you have confirmed that netscape is the culprit
i.e have you t
tried using the command "top" when the machine is thrashing - it gives a list
of
the most cpu-intensive processes.

Regards,
    Mel.

 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Jean-David Beye » Sun, 08 Apr 2001 20:44:14




> > > Elaborate on "thrashing". As in what/when/how.

> > 1) Hard drive

> > 2) Especially prevalent right after I start Netscape (which pretty much does
> > not come up unless I leave the room for a long while) but I've seen it after
> > using the system a while as well.

> > 3) Not sure there is a "how" answer short of going into drive mechanics.
> > (????)

> > Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm afraid
> > I really do not know where to start troubleshooting this one or really even
> > where to begin describing the issue in detail.  It has also been suggested
> > that Linux may not be using the full capacity of the memory.

> > James

> James,
>             just wondered if you have confirmed that netscape is the culprit
> i.e have you t
> tried using the command "top" when the machine is thrashing - it gives a list
> of
> the most cpu-intensive processes.

Would top show anything useful here? If it is thrashing, Netscape
would not be using much cpu time; it would be waiting for IO. BTW, top
can list the most memory-intensive programs instead by typing "M"
(without the quotes) to it.

Let us ask a few questions first:

How much memory does the O.P. have on his machine? If less than 64
Megabytes, he can expect trouble with a program like Netscape (more
trouble, that is, than with more memory).

How much swap space does the O.P. have for his machine? Is it a file
or a partition?

Does he run any other program(s) using a lot of memory at the same
time?

--
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey     http://counter.li.org
^^-^^ 7:40am up 5 days, 14:30, 4 users, load average: 3.07, 3.08, 2.91

 
 
 

Disk thrashing -- possible memory issue? RH7.

Post by Dave Bro » Sun, 08 Apr 2001 12:43:14


Quote:>Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm afraid
>I really do not know where to start troubleshooting this one or really even
>where to begin describing the issue in detail.  It has also been suggested
>that Linux may not be using the full capacity of the memory.

What does "cat /proc/meminfo" show?  (Or, for that matter, "top"?
(When you start "top", hit "M" and it will list processes in order of
memory usage.)

Maybe your kernel is not recognizing all your installed memory...  

--
Dave Brown  Austin, TX