Remix.run Logo
valicord 6 hours ago

> OS page cache can generate writes

Is this a hallucination? What am I missing? Why would heavy reads generate writes?

5 hours ago | parent | next [-]
[deleted]
5 hours ago | parent | prev | next [-]
[deleted]
fallingbananna 5 hours ago | parent | prev | next [-]

Good catch! Disk reads do generate writes to cache. But the cache itself is in RAM, not on disk. So it shouldn’t cause additional wear of SSD.

TacticalCoder 5 hours ago | parent | prev | next [-]

> Is this a hallucination? What am I missing? Why would heavy reads generate writes?

I take it heavy reads means more stuff goes into RAM, meaning other stuff has to be cached?

I've got same question as GP: e.g. is there a way to set moderately fast consumer NVMe SSDs (I've got both a Samsung 990 Pro and a WD SN850X) in a complete read-only mode to prevent "wear"?

onlyrealcuzzo 5 hours ago | parent | prev [-]

Spilling

gcr 5 hours ago | parent [-]

Wouldn’t turning off swap fix this issue?

throwa356262 5 hours ago | parent [-]

Better to just change swapiness?

https://askubuntu.com/questions/103915/how-do-i-configure-sw...