dlt-daemon
dlt-daemon copied to clipboard
dlt-system uses a lot of page cache during file transfer
dlt-system reads file content block by block only once and sends it to the dlt library. The file content is never read again, thus file access could be done in O_DIRECT mode without consuming as much memory resources.
May be we shall change the subject of the ticket as "dlt-system uses a lot of page cache during file transfer", which make more sense.
posix_fadvise with an appropriate hint (e.g. POSIX_FADV_SEQUENTIAL) is best, O_DIRECT has other implications which are orthogonal to the problem described.