On 8/3/21 8:39 PM, Ming Lei wrote: > On Tue, Aug 03, 2021 at 11:23:03AM -0700, Bart Van Assche wrote: >> We noticed that the user interface of Android devices becomes very slow >> under memory pressure. This is because Android uses the zram driver on top >> of the loop driver for swapping, because under memory pressure the swap >> code alternates reads and writes quickly, because mq-deadline is the >> default scheduler for loop devices and because mq-deadline delays writes by > > Maybe we can bypass io scheduler always for request with REQ_SWAP, such as: I don't think that's a good idea at all, what happens if you have a mixed swap in/out on a rotating drive? -- Jens Axboe