dlt-daemon icon indicating copy to clipboard operation
dlt-daemon copied to clipboard

dlt-system uses a lot of page cache during file transfer

Open jeremiah opened this issue 7 years ago • 2 comments

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.

jeremiah avatar Jan 23 '18 16:01 jeremiah

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.

anoojgopi avatar Jan 24 '18 10:01 anoojgopi

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.

mfukar avatar Jul 12 '19 10:07 mfukar