Harddrive Write Cache Disabled.

An update of DSM 4.0 beta includes: VLAN / DHCP Server support, Cloud Station / Surveillance Station enhancements, enrichment Mobile Apps for Windows phone 7 / Android tablets, along with other new feature enhancements.

Re: Harddrive Write Cache Disabled.

Postby joshuah » Fri Mar 09, 2012 1:40 pm

Don't need to wait for synology, I can tell you right now. YES there will be a performance impact. How big of impact? Depends on your IO profile. Read cache is less important than write cache, because to read something you have to get it from the spindel, so you are bound to the medium anyway. On a contrary, a write to the harddrive doesn't mean that data has to be written immediately on the spindle, it can be written to the cache... and then when the hard drive head passes over ( fly by ) an area where data needs to be stored the IO request gets executed, this reduces the hard drive head movement significantly and the stress on the mechanics.
This is the theory and the work on high end storage, don't know if it's the same for SATA hard drives and low end systems.
joshuah
Beginner
Beginner
 
Posts: 22
Joined: Mon Aug 15, 2011 2:31 pm

Re: Harddrive Write Cache Disabled.

Postby microkid » Fri Mar 09, 2012 6:29 pm

crhiles wrote:Looking in /usr/syno/etc.defaults/scemd.xml it appears they added some code to disable write cache on specific drive models. So this appears to be a feature and not a bug.
Code: Select all
<disk_control>
   <disk model="ST9120821A">APM_255</disk>
   <disk model="HTS722020K9SA00">APM_255</disk>
   <disk model="ST980811AS">APM_255</disk>
   <disk model="MHV2060BH">APM_255</disk>
   <disk model="MK6034GSX">APM_254</disk>
   <disk model="ST9100824AS">APM_255</disk>
   <disk model="HM250JI">APM_255</disk>
   <disk model="MK1637GSX">APM_254</disk>
   <disk model="ST9100824AS">APM_255</disk>
   <disk model="ST9120822AS">APM_254</disk>
   <disk model="ST9160821AS">APM_254</disk>
   <disk model="WD2500BEVS-75UST0">APM_254</disk>
   <disk model="HM250JI">APM_254</disk>
   <disk model="WD2500BEVS">APM_254</disk>
   <disk model="WD1600BEVT">APM_255</disk>
   <disk model="HTS543232L9A300">APM_255</disk>
   <disk model="WD1600BEVE">APM_255</disk>
   <disk model="MK2546GSX">APM_254</disk>
   <disk model="MHV2080BHPL">APM_255</disk>
   <disk model="WD1200BEVE">APM_255</disk>
   <disk model="HTS543225L9A300">APM_255</disk>
   <disk model="WD3200BEVT">APM_254</disk>
   <disk model="MK8025GAS">APM_254</disk>
   <disk model="ST9200420AS">APM_254</disk>
   <disk model="WD3200BEVT">APM_254</disk>
   <disk model="HTS543216L9SA00">APM_254</disk>
   <disk model="MK4058GSX">APM_254</disk>
   <disk model="WD6400BEVT">APM_254</disk>
   <disk model="ST32000542AS">APM_255</disk>
   <disk model="ST95005620AS">APM_255</disk>
   <disk model="WD7500BPVT">APM_254</disk>
   <disk model="WD30EZRX">WCACHE_OFF</disk>
   <disk model="WD25EZRX">WCACHE_OFF</disk>
   <disk model="WD20EARX">WCACHE_OFF</disk>
   <disk model="WD15EARX">WCACHE_OFF</disk>
   <disk model="WD10EADX">WCACHE_OFF</disk>
   <disk model="WD7500AARX">WCACHE_OFF</disk>
   <disk model="WD30EZRSDTL">WCACHE_OFF</disk>
   <disk model="WD25EZRSDTL">WCACHE_OFF</disk>
   <disk model="WD20EARS">WCACHE_OFF</disk>
   <disk model="WD15EARS">WCACHE_OFF</disk>
   <disk model="WD10EARS">WCACHE_OFF</disk>
   <disk model="WD8000AARS">WCACHE_OFF</disk>
   <disk model="WD7500AARS">WCACHE_OFF</disk>
   <disk model="WD6400AARS">WCACHE_OFF</disk>
   <disk model="WD20EADS">WCACHE_OFF</disk>
   <disk model="WD15EADS">WCACHE_OFF</disk>
   <disk model="WD10EADS">WCACHE_OFF</disk>
   <disk model="WD8088AADS">WCACHE_OFF</disk>
   <disk model="WD7500AADS">WCACHE_OFF</disk>
   <disk model="WD6400AADS">WCACHE_OFF</disk>
   <disk model="WD5000AADS">WCACHE_OFF</disk>
   <disk model="WD3200AACS">WCACHE_OFF</disk>
   <disk model="ST32000542AS">WCACHE_OFF</disk>
   <disk model="ST31500541AS">WCACHE_OFF</disk>
   <disk model="ST31000520AS">WCACHE_OFF</disk>
   <disk model="ST3500412AS">WCACHE_OFF</disk>
</disk_control>

So, can't we just edit this file and remove the line that contains our particular harddisk type?
DS1010+ | 3 x WD RED 3TB in SHR | DSM 4.2-3202
microkid
Apprentice
Apprentice
 
Posts: 85
Joined: Sun Mar 28, 2010 4:20 pm
Location: Netherlands

Re: Harddrive Write Cache Disabled.

Postby Zouk ! » Fri Mar 09, 2012 6:46 pm

microkid wrote:
crhiles wrote:Looking in /usr/syno/etc.defaults/scemd.xml it appears they added some code to disable write cache on specific drive models. So this appears to be a feature and not a bug.
Code: Select all
<disk_control>
   <disk model="ST9120821A">APM_255</disk>
   <disk model="HTS722020K9SA00">APM_255</disk>
   <disk model="ST980811AS">APM_255</disk>
   <disk model="MHV2060BH">APM_255</disk>
   <disk model="MK6034GSX">APM_254</disk>
   <disk model="ST9100824AS">APM_255</disk>
   <disk model="HM250JI">APM_255</disk>
   <disk model="MK1637GSX">APM_254</disk>
   <disk model="ST9100824AS">APM_255</disk>
   <disk model="ST9120822AS">APM_254</disk>
   <disk model="ST9160821AS">APM_254</disk>
   <disk model="WD2500BEVS-75UST0">APM_254</disk>
   <disk model="HM250JI">APM_254</disk>
   <disk model="WD2500BEVS">APM_254</disk>
   <disk model="WD1600BEVT">APM_255</disk>
   <disk model="HTS543232L9A300">APM_255</disk>
   <disk model="WD1600BEVE">APM_255</disk>
   <disk model="MK2546GSX">APM_254</disk>
   <disk model="MHV2080BHPL">APM_255</disk>
   <disk model="WD1200BEVE">APM_255</disk>
   <disk model="HTS543225L9A300">APM_255</disk>
   <disk model="WD3200BEVT">APM_254</disk>
   <disk model="MK8025GAS">APM_254</disk>
   <disk model="ST9200420AS">APM_254</disk>
   <disk model="WD3200BEVT">APM_254</disk>
   <disk model="HTS543216L9SA00">APM_254</disk>
   <disk model="MK4058GSX">APM_254</disk>
   <disk model="WD6400BEVT">APM_254</disk>
   <disk model="ST32000542AS">APM_255</disk>
   <disk model="ST95005620AS">APM_255</disk>
   <disk model="WD7500BPVT">APM_254</disk>
   <disk model="WD30EZRX">WCACHE_OFF</disk>
   <disk model="WD25EZRX">WCACHE_OFF</disk>
   <disk model="WD20EARX">WCACHE_OFF</disk>
   <disk model="WD15EARX">WCACHE_OFF</disk>
   <disk model="WD10EADX">WCACHE_OFF</disk>
   <disk model="WD7500AARX">WCACHE_OFF</disk>
   <disk model="WD30EZRSDTL">WCACHE_OFF</disk>
   <disk model="WD25EZRSDTL">WCACHE_OFF</disk>
   <disk model="WD20EARS">WCACHE_OFF</disk>
   <disk model="WD15EARS">WCACHE_OFF</disk>
   <disk model="WD10EARS">WCACHE_OFF</disk>
   <disk model="WD8000AARS">WCACHE_OFF</disk>
   <disk model="WD7500AARS">WCACHE_OFF</disk>
   <disk model="WD6400AARS">WCACHE_OFF</disk>
   <disk model="WD20EADS">WCACHE_OFF</disk>
   <disk model="WD15EADS">WCACHE_OFF</disk>
   <disk model="WD10EADS">WCACHE_OFF</disk>
   <disk model="WD8088AADS">WCACHE_OFF</disk>
   <disk model="WD7500AADS">WCACHE_OFF</disk>
   <disk model="WD6400AADS">WCACHE_OFF</disk>
   <disk model="WD5000AADS">WCACHE_OFF</disk>
   <disk model="WD3200AACS">WCACHE_OFF</disk>
   <disk model="ST32000542AS">WCACHE_OFF</disk>
   <disk model="ST31500541AS">WCACHE_OFF</disk>
   <disk model="ST31000520AS">WCACHE_OFF</disk>
   <disk model="ST3500412AS">WCACHE_OFF</disk>
</disk_control>

So, can't we just edit this file and remove the line that contains our particular harddisk type?

Hi,

I think it will be better to try getting an official statement from Synology about this "choice", I guess if they explicitly turned off cache for a bunch of drive, there probably a (good ?) reason which will be interesting to learn before to change anything (it's only an advice).
On the other hand, personally, I always deactivated write cache since they never activated write barrier when cache was on, although it was on DSM3.x I don't think this behavior has change with DSM4.x (but I didn't checked,), well, it's another story, back to thread.

Best Regards,
Zouk !
Once you go black, you never go back / DS508 - 5xST2000DL003-9VT1 / APC Back-UPS BR 900GI
User avatar
Zouk !
Specialist
Specialist
 
Posts: 1027
Joined: Fri Jun 20, 2008 12:13 pm

Re: Harddrive Write Cache Disabled.

Postby microkid » Fri Mar 09, 2012 6:52 pm

Well, it worked fine in 3.2 and I assume the majority of the core programming in 4.0 did not change. So an explanation from Synology would be very welcome indeed. I contacted technical support, now let's see what they can do for us :)
DS1010+ | 3 x WD RED 3TB in SHR | DSM 4.2-3202
microkid
Apprentice
Apprentice
 
Posts: 85
Joined: Sun Mar 28, 2010 4:20 pm
Location: Netherlands

Re: Harddrive Write Cache Disabled.

Postby Metrik » Fri Mar 09, 2012 8:36 pm

We definitely could use an explanation from Synology on this issue.

Before buying my two hard drives for my DS212j, I checked the Synology hard drive compatibility list and SPECIFICALLY PICKED a drive that was fully supported. I also went for a model with a large cache. I feel a bit cheated now. Stupid, even.
User avatar
Metrik
Beginner
Beginner
 
Posts: 22
Joined: Sun Feb 19, 2012 11:20 pm

Re: Harddrive Write Cache Disabled.

Postby jekyll » Fri Mar 09, 2012 8:41 pm

Looks like a change to the Advanced Power Management, Could this be related to LCC?

EDIT: also APM is set at 254 for many drives, could this be related to hibernation?

Found this on my google travels:

The advanced power management appeared as an option in the hard disk drives supporting ATA/ATAPI-4 or higher standard. Change of its value from 1 to 254 allows to regulate the performance of the hard disk drive and, thereby, to save energy of power supplies. Value less than 128 enables the hard disk drive to stop the spindle motor without any commands during certain period time, which allows saving as much energy of the power supply as possible, but leads to the increased deterioration of kinematics and the delay at the waking caused by waiting of magnetic disks spinning up to the necessary speed. The work of the advanced power management implemented in the hard disk drives does not depend on the "sleep" timer of the operating system.


Another EDIT: The cache on the 410 is enabled on all 4 drives. See here
Last edited by jekyll on Fri Mar 09, 2012 8:54 pm, edited 1 time in total.
CS-407 - DSM 2.2-0953 - 4xWD6400AAKS 'RAID5' : APC Smart UPS 750 & AP9619
DS-107 - DSM 2.2-0953 - WD10EADS [Flashed DS101G+]
DS-106 - DSM 2.2-0953 - WD5000AACS [Flashed DS101G+]
USB Station - Dymo 310 USB : Canon IP4200 : APC UPS 350

DES-1016D : Ellion HMR-700A : Netgear MP101 : 4xBL-C1 IP Cams : APC BK 650MI


A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty

| Back soon - waiting for a new connection |
User avatar
jekyll
g33k
g33k
 
Posts: 1817
Joined: Thu Feb 28, 2008 7:55 pm
Location: Low Burnham, Epworth - UK

Re: Harddrive Write Cache Disabled.

Postby Metrik » Fri Mar 09, 2012 8:52 pm

Disabling hibernation won't make the "Enable write cache" stick. I just tried it on my 212j with two WD20EARX. If that's any indication.
User avatar
Metrik
Beginner
Beginner
 
Posts: 22
Joined: Sun Feb 19, 2012 11:20 pm

Re: Harddrive Write Cache Disabled.

Postby jekyll » Fri Mar 09, 2012 8:58 pm

Metrik wrote:Disabling hibernation won't make the "Enable write cache" stick. I just tried it on my 212j with two WD20EARX. If that's any indication.


I think you maybe misunderstood, some users have hibernation issues. I thought with the APM set@254, it may not let the drives hibernate.
CS-407 - DSM 2.2-0953 - 4xWD6400AAKS 'RAID5' : APC Smart UPS 750 & AP9619
DS-107 - DSM 2.2-0953 - WD10EADS [Flashed DS101G+]
DS-106 - DSM 2.2-0953 - WD5000AACS [Flashed DS101G+]
USB Station - Dymo 310 USB : Canon IP4200 : APC UPS 350

DES-1016D : Ellion HMR-700A : Netgear MP101 : 4xBL-C1 IP Cams : APC BK 650MI


A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty

| Back soon - waiting for a new connection |
User avatar
jekyll
g33k
g33k
 
Posts: 1817
Joined: Thu Feb 28, 2008 7:55 pm
Location: Low Burnham, Epworth - UK

Re: Harddrive Write Cache Disabled.

Postby Metrik » Fri Mar 09, 2012 9:06 pm

Ah, I understand now.
User avatar
Metrik
Beginner
Beginner
 
Posts: 22
Joined: Sun Feb 19, 2012 11:20 pm

Re: Harddrive Write Cache Disabled.

Postby Larry » Sat Mar 10, 2012 3:50 am

jekyll wrote:Another EDIT: The cache on the 410 is enabled on all 4 drives. See here

FWIW no problems here enabling the cache with dsm4.0 on my ds410 either. It's running four seagate 2tb ST2000DL003 drives. Hibernation is working ok too.
Larry
Rookie
Rookie
 
Posts: 33
Joined: Sat Nov 06, 2010 3:27 pm

Re: Harddrive Write Cache Disabled.

Postby synGuy » Sat Mar 10, 2012 5:40 am

Odd.
I'm running 2198 and all my write cache's seem to be ok:
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

I'm running 1x WD10EADS, 1x WD15EADS and 3x WD20EARS.
synGuy
Trainee
Trainee
 
Posts: 14
Joined: Sun Oct 23, 2011 11:33 am

Re: Harddrive Write Cache Disabled.

Postby tjkaz » Sat Mar 10, 2012 5:33 pm

After reading this thread, I checked my settings after installing 2198.
I still have check marks for cache writing for both of my drives; wd20ears and wd30ezrs.
Synology DS-211j | DSM 4.1-2636 | 1 x WD20EARS 1 x WD30EZRSDTL
User avatar
tjkaz
Apprentice
Apprentice
 
Posts: 92
Joined: Wed Jan 05, 2011 10:16 pm
Location: US

Re: Harddrive Write Cache Disabled.

Postby joshuah » Sat Mar 10, 2012 6:08 pm

Can you paste the disk section from /usr/syno/etc.defaults/scemd.xml. It appears that the 4.0 firmware has different content for this file for the different models of DS...which if true will be very strange indeed.
joshuah
Beginner
Beginner
 
Posts: 22
Joined: Mon Aug 15, 2011 2:31 pm

Re: Harddrive Write Cache Disabled.

Postby sjeph8je » Sat Mar 10, 2012 6:36 pm

Have been running with the write cache enabled and hibernation enabled with my WD20ears under DSM 3.2.
Now the write cache is disabled :x under DSM 4.0
Synology DS-209 | DSM 4.1-2668 | 2 x WD20EARS (RAID1) (Time Backup | PhpMyAdmin | PhpLdapAdmin | PhpPgAdmin | Mailstation 2 | Svn | Directory server | Syslog server)
  • USB Conceptronic CHD3SU | WD20EARS (Ext-4)
Synology DS-209 | DSM 4.2-3202 | 2 x WD5000AAKS (RAID0) (syslog server)
  • USB Conceptronic CHD3NET | WD5000AAVS (Ext-4)
Corruption wears infinite disguises.
User avatar
sjeph8je
Knowledgeable
Knowledgeable
 
Posts: 324
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands

Re: Harddrive Write Cache Disabled.

Postby Metrik » Sat Mar 10, 2012 8:52 pm

For the sake of proper comparison:

    Does Enable write cache stick: No.
    DS model: DS212j
    Disk(s): 2 x WD20EARX in RAID-1
    OS: DSM_DS212j_2198.pat

/usr/syno/etc.defaults/scemd.xml
Code: Select all
<disk_control>
        <disk model="ST9120821A">APM_255</disk>
        <disk model="HTS722020K9SA00">APM_255</disk>
        <disk model="ST980811AS">APM_255</disk>
        <disk model="MHV2060BH">APM_255</disk>
        <disk model="MK6034GSX">APM_254</disk>
        <disk model="ST9100824AS">APM_255</disk>
        <disk model="HM250JI">APM_255</disk>
        <disk model="MK1637GSX">APM_254</disk>
        <disk model="ST9100824AS">APM_255</disk>
        <disk model="ST9120822AS">APM_254</disk>
        <disk model="ST9160821AS">APM_254</disk>
        <disk model="WD2500BEVS-75UST0">APM_254</disk>
        <disk model="HM250JI">APM_254</disk>
        <disk model="WD2500BEVS">APM_254</disk>
        <disk model="WD1600BEVT">APM_255</disk>
        <disk model="HTS543232L9A300">APM_255</disk>
        <disk model="WD1600BEVE">APM_255</disk>
        <disk model="MK2546GSX">APM_254</disk>
        <disk model="MHV2080BHPL">APM_255</disk>
        <disk model="WD1200BEVE">APM_255</disk>
        <disk model="HTS543225L9A300">APM_255</disk>
        <disk model="WD3200BEVT">APM_254</disk>
        <disk model="MK8025GAS">APM_254</disk>
        <disk model="ST9200420AS">APM_254</disk>
        <disk model="WD3200BEVT">APM_254</disk>
        <disk model="HTS543216L9SA00">APM_254</disk>
        <disk model="MK4058GSX">APM_254</disk>
        <disk model="WD6400BEVT">APM_254</disk>
        <disk model="ST32000542AS">APM_255</disk>
        <disk model="ST95005620AS">APM_255</disk>
        <disk model="WD7500BPVT">APM_254</disk>
        <disk model="WD30EZRX">WCACHE_OFF</disk>
        <disk model="WD25EZRX">WCACHE_OFF</disk>
        <disk model="WD20EARX">WCACHE_OFF</disk>
        <disk model="WD15EARX">WCACHE_OFF</disk>
        <disk model="WD10EADX">WCACHE_OFF</disk>
        <disk model="WD7500AARX">WCACHE_OFF</disk>
        <disk model="WD30EZRSDTL">WCACHE_OFF</disk>
        <disk model="WD25EZRSDTL">WCACHE_OFF</disk>
        <disk model="WD20EARS">WCACHE_OFF</disk>
        <disk model="WD15EARS">WCACHE_OFF</disk>
        <disk model="WD10EARS">WCACHE_OFF</disk>
        <disk model="WD8000AARS">WCACHE_OFF</disk>
        <disk model="WD7500AARS">WCACHE_OFF</disk>
        <disk model="WD6400AARS">WCACHE_OFF</disk>
        <disk model="WD20EADS">WCACHE_OFF</disk>
        <disk model="WD15EADS">WCACHE_OFF</disk>
        <disk model="WD10EADS">WCACHE_OFF</disk>
        <disk model="WD8088AADS">WCACHE_OFF</disk>
        <disk model="WD7500AADS">WCACHE_OFF</disk>
        <disk model="WD6400AADS">WCACHE_OFF</disk>
        <disk model="WD5000AADS">WCACHE_OFF</disk>
        <disk model="WD3200AACS">WCACHE_OFF</disk>
        <disk model="ST32000542AS">WCACHE_OFF</disk>
        <disk model="ST31500541AS">WCACHE_OFF</disk>
        <disk model="ST31000520AS">WCACHE_OFF</disk>
        <disk model="ST3500412AS">WCACHE_OFF</disk>
</disk_control>
Last edited by Metrik on Sat Mar 10, 2012 11:24 pm, edited 1 time in total.
User avatar
Metrik
Beginner
Beginner
 
Posts: 22
Joined: Sun Feb 19, 2012 11:20 pm

PreviousNext

Return to DiskStation Manager 4.0 - 2197/2198

Who is online

Users browsing this forum: No registered users and 1 guest