RAID stripe size

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
Andyrh
Posts: 281
Joined: Sat Oct 28, 2017 3:55 am

RAID stripe size

Post by Andyrh »

I am about to rebuild my RAID group. Is there a stripe size that would be better?
Does ZM write events in any particular chunks?
For instance, MS SQL reads and writes in 64k blocks, so aligning the file system and stripe size to 64k makes a difference.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RAID stripe size

Post by iconnor »

No we don't. We write out in whatever size the packets are, which generally are much smaller than 64k. We rely on the OS to cache and do the right thing.

Optimising the db is def a good idea, but I wouldn't worry too much about video storage. It would actually make sense to write to a ramdisk first, then copy to disk. Because we write the data out, then go back to write the table of contents at the beginning.

ONe of the reasons I recommend if you are going to use NAS is to write local, then move to NAS in background.
User avatar
Andyrh
Posts: 281
Joined: Sat Oct 28, 2017 3:55 am

Re: RAID stripe size

Post by Andyrh »

I suspected there was not a "good" size, but asking is better than guessing.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Post Reply