On 03/07/2020 07:01, Lloyd via Boost-users wrote:

> Does boost iostreamĀ mapped_file_source support concurrent read from
> multiple threads? What is the best way to implement concurrent read on a
> performance sensitiveĀ application?
> 
> The file is a read only one and its size is in gigabytes/terabytes

For memory mapped files in general, reads served from kernel cache will
parallelise at CPU concurrency level, whereas reads served from the
storage layer will parallelise at device concurrency level. This means
that i/o which is not served from cache will synchronise CPUs during i/o
submission and completion.

Niall
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply via email to