added mmap() support for all data, so that netdata can be restarted and continue with all data
fflush() earlier