RE: OOPS in do_try_to_free_pages with VERY large software RAID array

From: Rechenberg, Andrew (ARechenberg@shermanfinancialgroup.com)
Date: Tue Mar 11 2003 - 14:38:30 EST


Thanks for the help Martin. It looks like that was the problem. The
kernel mdstat statistics must have been overwriting some other kernel
memory and giving me my panics. With the help of Kevin's 2.5 patch I
patched the Red Hat 2.4.18-26 md code to use seq_file and now my big
RAID arrays are syncing and I haven't had a panic yet :D

Thanks again to everyone for the help. I'll submit the patch to the
linux-raid list as md-seq_file-2.4.18-26.7.x.patch if anyone's
interested.

Regards,
Andy.

-----Original Message-----
From: Martin J. Bligh [mailto:mbligh@aracnet.com]
Sent: Monday, March 10, 2003 2:28 PM
To: Rechenberg, Andrew; linux-kernel@vger.kernel.org
Subject: Re: OOPS in do_try_to_free_pages with VERY large software RAID
array

> Can anyone help me out please? I'm trying to create a monster
> software RAID array and the kernel is not behaving. On some test
> hardware I can get 17 RAID1 arrays to begin syncing and will sync with

> /proc/sys/dev/raid/speed_limit_max set to 100000 (the max allowed)
> with no problem.
>
> We wanted to use 26 RAID1 arrays and then stripe across them to get
> very high performance. When I tried to do that this weekend on our
> production box we started getting kernel panics when the RAID1 arrays
> started syncing. This was with speed_limit_max set to 10000 so the
> rate wasn't very high. Since we knew 34 disks worked we decided to
> put the box in to production with just 13 RAID1 arrays and striping
> across those. The performance is great compared to our hardware RAID,

> but I would like to get all the disks we purchase for this system
> working.
>
> This morning I connected 56 disks to our test hardware and tried to
> reproduce the problem. With the test hardware, the 26 RAID1 arrays
> were working OK at speed_limit_max 10000 however the kernel OOPSed
> when I 'less'ed /proc/mdstat. It wasn't a hard crash because I could
> still work. However when I upped the speed_limit_max to 30000 there
> was a hard crash.

At a wild guess (OK, I only looked for about 1 minute),
md_status_read_proc is generating more than 4K of information, and
overwriting the end of it's 4K page. Throw some debug in there, and get
it to printk how much of the buffer it thinks it's using (just printk sz
every time it changes it). If it's > 4K, convert it to the seq_file
interface.

May not be it, but it seems likely given the unusual scale of what
you're doing, and it's easy to check.

M.

-
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/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:27 EST