LWN.net Logo

Optimizing stable pages

Optimizing stable pages

Posted Dec 10, 2012 16:51 UTC (Mon) by butlerm (subscriber, #13312)
Parent article: Optimizing stable pages

Given the incredibly severe performance issues the use of the stable pages feature may incur, it seems like the optimal long term solution would be to add copy on write capability for pages that are under writeout.

Meaning that when a thread attempts to modify such a page, a duplicate physical page is created, the page structure and PTE are updated accordingly, and ownership of the physical page under writeout is transferred to the fs or device doing the writeout, for reclamation when the writeout completes. That would be far superior in most cases than stalling a thread for an arbitrary period in the meantime, something that is the death of anything resembling real time response.

It would also be markedly superior to a copy-always policy by the FS or storage layer concerned. The best of both worlds, essentially.


(Log in to post comments)

Optimizing stable pages

Posted Dec 10, 2012 17:27 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

CoW using VM tricks is quite often _inferior_ in speed to simple copying.

Optimizing stable pages

Posted Dec 10, 2012 18:11 UTC (Mon) by dlang (✭ supporter ✭, #313) [Link]

> CoW using VM tricks is quite often _inferior_ in speed to simple copying.

COW is slower if the copy actually needs to take place, but faster if the copy is never needed.

The question is how likely are you to need to do the copy.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds