|
|
Subscribe / Log in / New account

Volatile ranges with fallocate()

Volatile ranges with fallocate()

Posted Jun 8, 2012 7:01 UTC (Fri) by kugel (subscriber, #70540)
Parent article: Volatile ranges with fallocate()

Now I wonder if this is useful for Google in order to mainline ashmem. Did Robert Love (or another Googler) comment on that?


to post comments

Volatile ranges with fallocate()

Posted Jun 8, 2012 18:25 UTC (Fri) by jstultz (subscriber, #212) [Link]

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.


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