Average writes to Disk
-
@stephenw10 said in Average writes to Disk:
There was a bug at one time that was not mounting root as noatime
I looked, as we have some older routers, and found a few.
/dev/gptid/4eca01a4-9c0d-11e7-bbd9-0008a20cdf70 / ufs rw 1 1
devfs /dev devfs rw 0 0
/dev/md0 /var/run ufs rw 2 2
devfs /var/dhcpd/dev devfs rw 0 0Just change rw to rw,noatime in /etc/fstab, and reboot?
-
@steveits said in Average writes to Disk:
Just change rw to rw,noatime in /etc/fstab, and reboot?
In /etc/fstab there is only that:
"# Device Mountpoint FStype Options Dump Pass#
/dev/ada0p2 none swap sw 0 0"And if you look in the beginning of the thread there is the output of mount -p - most every FS is mounted noatime.
-
Yup, exactly, just edit the fstab if you have some that were created at that time.
ZFS does write to the drive more than UFS by design. I'm not sure what might be done there.
Enabling RAM disks reduces it significantly but you wouldn't want to do that with Snort and pfBlocker running.
Steve
-
@fireodo said in Average writes to Disk:
In /etc/fstab there is only that:
Because you're running ZFS which doesn't use the fstab.
-
@stephenw10 said in Average writes to Disk:
Enabling RAM disks reduces it significantly but you wouldn't want to do that with Snort and pfBlocker running.
That was my idea too but as you say - no way with snort&pfblockerNG ...
-
@stephenw10 said in Average writes to Disk:
ZFS does write to the drive more than UFS by design.
Do you think that could be from ZFS? Because I have stopped most every service that can be stopped but the writings go on ...
On the other hand - is my installation so particular?
-
@fireodo what ssd are you using? Modern SSD even with 20GB a day you should still be like a 10 year lifespan..
I just looked up a shit $20 128GB ssd from lexar the ns100, and it lists 60TB write life.. at 20GB a day your still looking at 8 some years..
Off the cuff 20GB a day does seem like a lot... But even at that you should get decent life out of the SSD..
-
@johnpoz said in Average writes to Disk:
what ssd are you using?
See my signature :-)
I already ordered some spare for ... just in case ;-)
-
@fireodo I don't see anything listed for 16GB size.. But the 64 is listed as
36.5TBW (64GB)
So you have to assume lower than that.. So yeah, prob not the best drives for lots of writes..
Lets call it half that.. Your looking at like 2.5 years only..
-
@johnpoz said in Average writes to Disk:
@fireodo I don't see anything listed for 16GB size.. But the 64 is listed as
36.5TBW (64GB)
So you have to assume lower than that.. So yeah, prob not the best drives for lots of writes..
Lets call it half that.. Your looking at like 2.5 years only..
Of course this all sounds reasonable but for me its strange that a older APU (that I have as quick replacement in case of hardware failure - i do much HomeOffice) with 2.4.5 shows insignificant writes to disk (also ZFS) far far away from 20GB/day.
-
Extra space will get longer life, more room for TRIM to work with and at todays prices it is worth the investment IMHO.
-
@andyrh said in Average writes to Disk:
Extra space will get longer life, more room for TRIM to work with and at todays prices it is worth the investment IMHO.
I understand that all very well - its the Researcher in me that wants to find out what the real cause of all that is! Eliminating the symptoms dont eliminate the ill (if it is one) ;-)
-
@fireodo said in Average writes to Disk:
its the Researcher in me that wants to find out what the real cause of all that is!
Agreed.
Not everyone does that. I like to know how it works too. -
@johnpoz Is this process telling you (or somebody else) something?
zpool-zroot{txg_thread_enter}
This process is doing very much writing when I use
top -SH -o write (and after that "m") -
I see that pop up every few seconds on mine as well
But I have no idea what it is or does to be honest..
Maybe a zfs guru will chime in - that sure isn't me ;)
-
@johnpoz said in Average writes to Disk:
But I have no idea what it is or does to be honest..
I googled about it but I did not find anything concludent - that's why I was asking.
Would you show me your output of iostat -d 5 6 ?
-
here you go - but I don't have a ssd, this is on a netgate sg4860
-
@johnpoz said in Average writes to Disk:
here you go - but I don't have a ssd, this is on a netgate sg4860
Thanks a lot - your values are similar to mine! You have also ZFS?
-
Yeah zfs.. Like I said I agree that 20GB a day seems like a lot - if your doing your math right, etc. But even at that your typical ssd should have a long life anyway..
My desktop model sg4860 has eMMC not ssd.. Which also have limited life writes..
-
@johnpoz said in Average writes to Disk:
My desktop model sg4860 has eMMC not ssd.. Which also have limited life writes..
Is that eMMC replaceable?