LWN.net Logo

Volatile ranges with fallocate()

Volatile ranges with fallocate()

Posted Jun 8, 2012 18:25 UTC (Fri) by jstultz (subscriber, #212)
In reply to: Volatile ranges with fallocate() by kugel
Parent article: Volatile ranges with fallocate()

I can't speak for Google, but I have a patch I'll be sending out in my next iteration that removes the ashmem unpinned range management code and replaces it with fallocate() calls (killing ~320 lines in ashmem).

Ashmem also serves a separate purpose to Android, which is to provide a way to create atomically unlinked tmpfs files that can be shared between applications. This avoids having applications accidentally leave tmpfs files that take memory even if on one is using them.

For this purpose, the ashmem driver still is useful, but can be submitted and reviewed independently without tangling the pin/unpin functionality into the discussion.


(Log in to post comments)

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