not relevant code
at least got madvise and write working