linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cpu consumption
@ 2006-01-23 22:28 Gilberto Diaz
  2006-01-23 22:40 ` Gordon Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gilberto Diaz @ 2006-01-23 22:28 UTC (permalink / raw)
  To: linux-raid

Hello Everybody

   I have checked the list archive but I could not find any message that
help. So I'm asking for help here. I have a Sun storege with 12 sata
hard disks connected to a normal PC using a QLogic ISP2300 host adapter
card. I have configured 6 raid1, (2 hard disk each). I excecuted the
following commands to create all of the them

mdadm --create --verbose /dev/md1 --level=raid1 --raid-devices=2
/dev/sda /dev/sdb
mdadm --create --verbose /dev/md2 --level=raid1 --raid-devices=2
/dev/sdc /dev/sdd
mdadm --create --verbose /dev/md3 --level=raid1 --raid-devices=2
/dev/sde /dev/sdf
mdadm --create --verbose /dev/md4 --level=raid1 --raid-devices=2
/dev/sdg /dev/sdh
mdadm --create --verbose /dev/md5 --level=raid1 --raid-devices=2
/dev/sdi /dev/sdj
mdadm --create --verbose /dev/md6 --level=raid1 --raid-devices=2
/dev/sdk /dev/sdl

Here is my /etc/mdadm/mdadm.conf file

DEVICE /dev/sd[abcdefghijkl] /dev/md1 /dev/md2 /dev/md3 /dev/md4
/dev/md5 /dev/md6
ARRAY /dev/md1 devices=/dev/sda,/dev/sdb
ARRAY /dev/md2 devices=/dev/sdc,/dev/sdd
ARRAY /dev/md3 devices=/dev/sde,/dev/sdf
ARRAY /dev/md4 devices=/dev/sdg,/dev/sdh
ARRAY /dev/md5 devices=/dev/sdi,/dev/sdj
ARRAY /dev/md6 devices=/dev/sdk,/dev/sdl

   The problem is that the following proccesses are using a lot of cpu
time.

    md1_raid1
    md1_resync
    ......
    md6_raid1
    md6_resync

    Here is a sample of the uptime command

17:54:16 up  5:48,  2 users,  load average: 5.02, 5.05, 5.26

    Does anybody have an idea what is the problem? Thank a lot in advance

Best regards
Gilberto Diaz

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cpu consumption
  2006-01-23 22:28 cpu consumption Gilberto Diaz
@ 2006-01-23 22:40 ` Gordon Henderson
  2006-01-24 12:13   ` Gilberto Diaz
  2006-01-23 23:08 ` Guy
  2006-01-24  3:05 ` Neil Brown
  2 siblings, 1 reply; 6+ messages in thread
From: Gordon Henderson @ 2006-01-23 22:40 UTC (permalink / raw)
  To: Gilberto Diaz; +Cc: linux-raid

On Mon, 23 Jan 2006, Gilberto Diaz wrote:

>    The problem is that the following proccesses are using a lot of cpu
> time.
>
>     md1_raid1
>     md1_resync
>     ......
>     md6_raid1
>     md6_resync
>
>     Here is a sample of the uptime command
>
> 17:54:16 up  5:48,  2 users,  load average: 5.02, 5.05, 5.26
>
>     Does anybody have an idea what is the problem? Thank a lot in advance

to me, it looks like the "problem" is that the RAID system is still
creating the array and syncing all the partitions up. Once it's finished
your system will be idle.

I bet it's stopped doing it by the time you get this email... What does
the output of

  cat /proc/mdstat

look like?

Gordon

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: cpu consumption
  2006-01-23 22:28 cpu consumption Gilberto Diaz
  2006-01-23 22:40 ` Gordon Henderson
@ 2006-01-23 23:08 ` Guy
  2006-01-24  3:05 ` Neil Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Guy @ 2006-01-23 23:08 UTC (permalink / raw)
  To: 'Gilberto Diaz', linux-raid



} -----Original Message-----
} From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
} owner@vger.kernel.org] On Behalf Of Gilberto Diaz
} Sent: Monday, January 23, 2006 5:28 PM
} To: linux-raid@vger.kernel.org
} Subject: cpu consumption
} 
} Hello Everybody
} 
}    I have checked the list archive but I could not find any message that
} help. So I'm asking for help here. I have a Sun storege with 12 sata
} hard disks connected to a normal PC using a QLogic ISP2300 host adapter
} card. I have configured 6 raid1, (2 hard disk each). I excecuted the
} following commands to create all of the them
} 
} mdadm --create --verbose /dev/md1 --level=raid1 --raid-devices=2
} /dev/sda /dev/sdb
} mdadm --create --verbose /dev/md2 --level=raid1 --raid-devices=2
} /dev/sdc /dev/sdd
} mdadm --create --verbose /dev/md3 --level=raid1 --raid-devices=2
} /dev/sde /dev/sdf
} mdadm --create --verbose /dev/md4 --level=raid1 --raid-devices=2
} /dev/sdg /dev/sdh
} mdadm --create --verbose /dev/md5 --level=raid1 --raid-devices=2
} /dev/sdi /dev/sdj
} mdadm --create --verbose /dev/md6 --level=raid1 --raid-devices=2
} /dev/sdk /dev/sdl
} 
} Here is my /etc/mdadm/mdadm.conf file
} 
} DEVICE /dev/sd[abcdefghijkl] /dev/md1 /dev/md2 /dev/md3 /dev/md4
} /dev/md5 /dev/md6
} ARRAY /dev/md1 devices=/dev/sda,/dev/sdb
} ARRAY /dev/md2 devices=/dev/sdc,/dev/sdd
} ARRAY /dev/md3 devices=/dev/sde,/dev/sdf
} ARRAY /dev/md4 devices=/dev/sdg,/dev/sdh
} ARRAY /dev/md5 devices=/dev/sdi,/dev/sdj
} ARRAY /dev/md6 devices=/dev/sdk,/dev/sdl
} 
}    The problem is that the following proccesses are using a lot of cpu
} time.
} 
}     md1_raid1
}     md1_resync
}     ......
}     md6_raid1
}     md6_resync
} 
}     Here is a sample of the uptime command
} 
} 17:54:16 up  5:48,  2 users,  load average: 5.02, 5.05, 5.26

What is the CPU load?  The above does not reflect CPU usage.
I beleve it reports on average outsanding IOs.  With 6 arrays syncing, I
would have expected 6 or 12.

Run "top", or "sar -u 10 10" to see CPU usage.

Guy
} 
}     Does anybody have an idea what is the problem? Thank a lot in advance
} 
} Best regards
} Gilberto Diaz
} -
} To unsubscribe from this list: send the line "unsubscribe linux-raid" in
} the body of a message to majordomo@vger.kernel.org
} More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cpu consumption
  2006-01-23 22:28 cpu consumption Gilberto Diaz
  2006-01-23 22:40 ` Gordon Henderson
  2006-01-23 23:08 ` Guy
@ 2006-01-24  3:05 ` Neil Brown
  2006-01-24  6:03   ` Mitchell Laks
  2 siblings, 1 reply; 6+ messages in thread
From: Neil Brown @ 2006-01-24  3:05 UTC (permalink / raw)
  To: Gilberto Diaz; +Cc: linux-raid

On Monday January 23, gilberto@ula.ve wrote:
> 
> Here is my /etc/mdadm/mdadm.conf file
> 
> DEVICE /dev/sd[abcdefghijkl] /dev/md1 /dev/md2 /dev/md3 /dev/md4
> /dev/md5 /dev/md6
> ARRAY /dev/md1 devices=/dev/sda,/dev/sdb
> ARRAY /dev/md2 devices=/dev/sdc,/dev/sdd
> ARRAY /dev/md3 devices=/dev/sde,/dev/sdf
> ARRAY /dev/md4 devices=/dev/sdg,/dev/sdh
> ARRAY /dev/md5 devices=/dev/sdi,/dev/sdj
> ARRAY /dev/md6 devices=/dev/sdk,/dev/sdl

This is a poor choice for an mdadm.conf file.
The device names of 'SCSI' devices are prone to change with changing
system configuration.  If something disappears or is added, all the
names could change, and this will cease to work.
I would strongly recommend putting UUIDs in there.

  echo 'DEVICE /dev/sd[a-l]' > /etc/mdadm/mdadm.conf
  mdadm -Ds | grep -v devices >> /etc/mdadm/mdadm.conf

NeilBrown

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cpu consumption
  2006-01-24  3:05 ` Neil Brown
@ 2006-01-24  6:03   ` Mitchell Laks
  0 siblings, 0 replies; 6+ messages in thread
From: Mitchell Laks @ 2006-01-24  6:03 UTC (permalink / raw)
  To: linux-raid

On Monday 23 January 2006 10:05 pm, Neil Brown wrote:

>
> This is a poor choice for an mdadm.conf file.
> The device names of 'SCSI' devices are prone to change with changing
> system configuration.  If something disappears or is added, all the
> names could change, and this will cease to work.
> I would strongly recommend putting UUIDs in there.
>
>   echo 'DEVICE /dev/sd[a-l]' > /etc/mdadm/mdadm.conf
>   mdadm -Ds | grep -v devices >> /etc/mdadm/mdadm.conf
This last line gives nothing because  -v switch selects lines not having 
devices, but the other line has num-devices which also matches:
ie
C1:~# mdadm -Ds
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=209ab7c8:d37fee49:3a63af71:99193e75
   devices=/dev/sde1
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=03dc44fa:606063e2:83e69037:50d00eb5
   devices=/dev/sdd1
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=88433668:ffa6265d:5ed3569b:9ef1d0f8
   devices=/dev/sdc1
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=5f001583:253365c1:1092ccdf:b052e938
   devices=/dev/sdb1,/dev/sda1

thus 
C1:~# mdadm -Ds|grep -v devices
C1:~#   

while you must want
C1:~# mdadm -Ds |grep  num-devices
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=209ab7c8:d37fee49:3a63af71:99193e75
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=03dc44fa:606063e2:83e69037:50d00eb5
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=88433668:ffa6265d:5ed3569b:9ef1d0f8
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=5f001583:253365c1:1092ccdf:b052e938

(excuse the  line wrap by kmail)

thanks
Mitchell Laks




>
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cpu consumption
  2006-01-23 22:40 ` Gordon Henderson
@ 2006-01-24 12:13   ` Gilberto Diaz
  0 siblings, 0 replies; 6+ messages in thread
From: Gilberto Diaz @ 2006-01-24 12:13 UTC (permalink / raw)
  To: Gordon Henderson; +Cc: linux-raid

Thanks Gordon, Guy, Michel and Neil, your advises were very useful.

    Gordon was right, all raids are still syncing (Bellow part of the
/proc/mdstat file).  Guy you were right too, the command "uptime" does
not display the cpu load directly, sorry about that.


Best regards
Gilberto

----------------------------------------------------------------------------------------------------------------------------------------------------
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6]
[raid10] [faulty]
 
md6 : active raid1 sdk[0] sdl[1]
      244190144 blocks [2/2] [UU]
      [================>....]  resync = 83.4% (203849152/244190144)
finish=5.0min spee
d=131933K/sec
     
md5 : active raid1 sdi[0] sdj[1]
      244190144 blocks [2/2] [UU]
      [================>....]  resync = 83.8% (204684480/244190144)
finish=5.1min spee
d=127124K/sec
     
.
.
.

--------------------------------------------------------------------------------------------------------------------------------------------------------------


Gordon Henderson wrote:

>On Mon, 23 Jan 2006, Gilberto Diaz wrote:
>
>  
>
>>   The problem is that the following proccesses are using a lot of cpu
>>time.
>>
>>    md1_raid1
>>    md1_resync
>>    ......
>>    md6_raid1
>>    md6_resync
>>
>>    Here is a sample of the uptime command
>>
>>17:54:16 up  5:48,  2 users,  load average: 5.02, 5.05, 5.26
>>
>>    Does anybody have an idea what is the problem? Thank a lot in advance
>>    
>>
>
>to me, it looks like the "problem" is that the RAID system is still
>creating the array and syncing all the partitions up. Once it's finished
>your system will be idle.
>
>I bet it's stopped doing it by the time you get this email... What does
>the output of
>
>  cat /proc/mdstat
>
>look like?
>
>Gordon
>
>  
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-24 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-23 22:28 cpu consumption Gilberto Diaz
2006-01-23 22:40 ` Gordon Henderson
2006-01-24 12:13   ` Gilberto Diaz
2006-01-23 23:08 ` Guy
2006-01-24  3:05 ` Neil Brown
2006-01-24  6:03   ` Mitchell Laks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).