From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brad Campbell Subject: Re: RAID6 - CPU At 100% Usage After Reassembly Date: Tue, 11 Oct 2016 20:46:14 +0800 Message-ID: References: <20160913174352.GA43576@kernel.org> <20161006235530.GA109312@kernel.org> <63380999-4291-97e9-41e4-363903e5c07b@fnarfbargle.com> <57FCAF93.9040305@youngman.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <57FCAF93.9040305@youngman.org.uk> Sender: linux-raid-owner@vger.kernel.org To: Wols Lists , Francisco Parada Cc: mdraid List-Id: linux-raid.ids On 11/10/16 17:23, Wols Lists wrote: > It strikes me this would be a good addition too - I could probably > manage something of the sort, but do you or anyone have the code to > detect a green, and do that "disable parking and spindown"? It's a pain, > but having a script that deals with all known and common issues with > drives is probably a good thing. > The command to disable head parking is a vendor specific command, is non-volatile and requires a drive power cycle. So it's a one off set and forget when you get the drive. Excerpt from hdparm man page : -J Get/set the Western Digital (WD) Green Drive's "idle3" timeout value. This timeout controls how often the drive parks its heads and enters a low power consumption state. The factory default is eight (8) seconds, which is a very poor choice for use with Linux. Leaving it at the default will result in hundreds of thousands of head load/unload cycles in a very short period of time. The drive mechanism is only rated for 300,000 to 1,000,000 cycles, so leaving it at the default could result in premature failure, not to mention the performance impact of the drive often having to wake- up before doing routine I/O. I just set them to J 0. This applies to the WD Red drives also. I forget how to tackle the spindown command. I think I used hdparm -S every boot, same as the setting scterc timeout. None of the machines I use with RAID arrays are idle long enough to spin down the disks.