Write to tmpfs increase Sector Writes counters

Hi,

I have created tmpfs disk for log storage but every time OS writes to log on tmpfs I`ve noticed increasing in "Sector Writes Since Reboot" and "Total Sector Writes" counters. Is it normal bahavior? I am worry of wearing 16MB internal OS flash.

hadrware: D53G-5HacD2HnD&FG621-EA
Mikrotik OS: 7.19.4 (stable) & 7.23.2 (stable)

/P

Normal, yes, I would say.
Unless you use ROSE package (which can create RAM disk), storage is flash.
But with 16Mb main storage, I don't think it would be a good idea to add that package only for that purpose.

You can also use that USB port on your device to add storage ?

He said he uses a tmpfs disk. That IS a RAM disk.

Indeed, I overlooked you can also use normal DISK functions to make it.
Then it should only be some pointers/statistics being written to flash.
Normal OS stuff.

I don't think it is right that flash counters increase when another filesystem (mounted under that flash) is accessed...

The question is if the counters are wrong (they include writes to directories mounted) or the count is right and the flash is written for some reason.

I`ve checked that uploading files to tmpfs ram disk via "Files" window do not increase these counters.
/P

No such issue on 7.21.5, checked when writing file to flash, mounted USB drive and tmpfs, only writing to flash rises sector writes.

On 7.21.5 (long-term) seems to be OK. After 4 hours of working I see only few written sectors manily because configuration changes. Yesterday after 2 hours was 10k+ writes.

To claryfy (maybe its important) this issue comes from loging webproxy app:

/system/logging
rule: topics=web-proxy,account prefix="" regex="" action=webproxy
action: name="webproxy" target=disk disk-file-name="tmp1/proxy" disk-lines-per-file=10000 disk-file-count=200 disk-stop-on-full=no

could anyone check this and veify?

I still going to observe this behavior on diffrent versions. In few days I should report back.

thx

/P