Subject: RE: RAIDFrame and RAID-5
To: 'Greg Oster' <oster@cs.usask.ca>
From: Thomas Hertz <thomas@hz.se>
List: current-users
Date: 09/10/2003 17:11:53
> > I've recompiled with KMEMSTATS and really don't know what 
> to look for. 
> > During normal use (no parity rewrite, no reconstruction) vmstat -m 
> > tells me that raidframe is using up to 515k memory, which sounds 
> > reasonable. I then tried failing a component (raidctl -f), 
> and noticed 
> > that suddenly RAIDframe started using one 524288 byte size 
> bucket in 
> > addition to the 64k buckets during normal operation. Also, 
> RAIDframe 
> > uses up well over 30 megs of kernel memory (instead of the earlier 
> > 515k).
> 
> Yikes!!!!! 
> 
> > But then again, I don't know what's reasonable. :)
> 
> It sounds quite high...  but the more components, the more 
> "OUTSTANDING" IO's allowed, and the larger the stripe width, the more 
> memory it will use... 
> 

I've limited RAIDOUTSTANDING to 3, so I guess the memory usage would be
even higher.
But I really can't understand how it could possible use up over 30 megs.
I'm only using four disks with a sectPerSU of 32.

Here's a line from vmstat -m:

Type      InUse MemUse HighUse   Limit Requests Limit Limit Size(s)
RAIDframe   566 29929K  30308K 157287K   703454    0     0
16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,524288

// Thomas Hertz