lkml.org 
[lkml]   [2001]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: high cpu load with sw raid1
On Thu, Sep 20, 2001 at 11:23:42AM +0200, David Hajek wrote:
> Inlined.
>
> On Thu, Sep 20, 2001, Jakob Rstergaard wrote:
> > On Thu, Sep 20, 2001 at 10:26:16AM +0200, David Hajek wrote:
> > > Hi,
> > >
> > > I have linux box with 70GB SW Raid1. This box runs for half
> > > a year without problems but now I meet the high cpu load
> > > problems. I suspect that it can be caused by not enough
> > > free disk space on this md device. I see following:
> > >
> > > 1 GB free - load > 5
> > > 5 GB free - load < 1
> >
> > RAID does not know about "free space" (that is a filesystem thing), so that
> > would be either some strange interaction between the filesystem and lower
> > layers, or a measurement error - I guess.
> >
> > High fragmentation could lead to extra filesystem activity, but that's not
> > really something the RAID can influence.
>
> Why not? I do not say that it is cause be the RAID. It can be caused
> by filesystem. Do you think that fsck helps to defrag filesystem?

Ok, I was just trying to rule out the RAID.

I know for a fact that fsck does not defrag the filesystem. However, if you
do run fsck, it will tell you how much is fragmented.

A few percent shouldn't matter. But see what the fragmentation is when you
have only one gig available, compared to when you have five.

...
>
> I use SCSI disks for this raid. Here is the output:
>
> [root@marvin /root]# hdparm /dev/sda
>
> /dev/sda:
> readonly = 0 (off)
> geometry = 8924/255/63, sectors = 143374738, start = 0
> [root@marvin /root]# hdparm -t /dev/sda
>
> /dev/sda:
> Timing buffered disk reads: 64 MB in 1.87 seconds = 34.22 MB/sec
> [root@marvin /root]#

Oh, silly me. I'm mixing up mails here... Sure, with SCSI you'll be fine.

>
> I think disk speeds are ok - it works for really fine for half a year.

Yep.

If everything is slowed down by disk seeks due to high fragmentation, you
should actually be able to hear your disks seek like mad when the load is high.
Throughput doesn't matter much in that case - have you noticed the sound of
disk-heads (sonic booms, heads catching on fire, etc.) ?

--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.060 / U:2.100 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site