|
|
|
|
|
by jdsully
2515 days ago
|
|
Why can’t a user make QoS decisions for their own pages? Root controlled pages should obviously have higher priority. The kernel could still “fairly” evict pages across users - just letting them choose which N pages they prefer to go first. |
|
Because then you just get everyone asking for maximum QOS / don't-page-me-out on everything they can.
The pages in the page cache are not owned by a particular user, they're shared. If there's three users running /usr/bin/firefox, they'll all have have shared read-only executable mappings of the same page cache pages. If you do a buffered read of a file immediately after I do the same, we both get our data copied from the same page cache page. So it's not at all clear how you'd do the accounting on this to implement that user-based fairness criterion.