Not proved! This is all quite complex. But it looks that way.
That sounds a good plan to me.
Thank you; and please accept my apology for not Cc'ing you on
the patches - I had intended to, but forgot just when sending.
These things can work out so differently in practice than one would
expect. Tests seem to be chugging along okay with the change in,
but I haven't explicitly tested performance with and without.
It just seems a sensible starting point to have the global and
memcg views in synch: if departing from that proves to work better,
then we should do so later.
I've no view yet on the performance characteristics of any of this,
just focussed on getting tmpfs working correctly again. The notion
of keeping unevictable pages away from the regularly scanned lists
seems an obvious gain; but the swapbacked/filebacked distinction
is not so obvious to me (and particularly problematic for tmpfs).
Hugh
--