On Wed, Sep 5, 2018, 11:55 AM D. Hugh Redelmeier via talk <
talk@gtalug.org> wrote:
| From: Russell Reiter via talk <talk@gtalug.org>
| Desktop freezing can be an issue if you don't get the ratios in line with
| the hw.
Really? swappiness values (except for 0) should only affect
performance. Not something binary like freezing. Of course really
really really bad performance can appear to be freezing.
Perhaps I should have said stuttering instead.
Evans question was coined in some general observations, albeit as related to apparent latency issues and some apparently negative effects. I assumed some bad performance there and also perhaps incorrectly assumed an onboard video card which draws down on system ram.
Evans question was simple enough. "I have a desktop that, to me, seems like it's running to swap just a little to often and coming back to RAM just a little slower than I'd like. What are the ill effects, on a desktop, of lowering swappiness down from the default of 60?"
There wasn't much helpful commentary about those perceived issues, so I answered with one link which I thought to be, if not absolutely true, perhaps demonstratively so, however anecdotal or subjective.
It's always helpful to know the exact hw in use however vague specifications in questions do lead to vague speculations, like mine.
| I've been considering this a bit for my own desktop. In order to mitigate
| possible write amplification issues on my SSD running RH F27, at this time
| I have 8gib ram with a 4gib swap.
swappiness should not have a direct effect on write amplification.
The obvious way of affecting write amplification is by
overprovisioning (as we've discussed before).
I did provide some, not unsubstantial unallocated space as you described in that previous thread. 15gib on a 512gib SSD. The Fedora automatic installer only allowed 56mb on the M.2 install. I scheduled an fstrim for once a week based on the info you posted.
swappiness could and would change the number of writes. Except in
pathological cases I would not expect swap to challenge the lifetime
of an SSD.