[CRIU] [PATCH RFC 0/2] page-read: use in-memory PagemapEntry's

Mike Rapoport rppt at linux.vnet.ibm.com
Tue Jun 7 05:35:04 PDT 2016


On Tue, Jun 07, 2016 at 02:55:30PM +0300, Pavel Emelyanov wrote:
> pagemap.img-s use bfd engine to cache reads from images. Your
> patch creates double buffering for them ;)

Well, yes. But no :)
The bfd caches raw protobuf data, while the in-memory pagemap caches
unpacked PagemapEntrie's. There's indeed some duplication, but you anyway
have to go through 'bread -> unpack' to use pagemap.

> Any ideas how to handle it?

We read the entire pagemap and then close the image? ;-)
 
> -- Pavel
> 



More information about the CRIU mailing list